Referred by in issue as drop down list

ijaraho wrote on Sunday, May 12, 2013:

hi,
I have two problems:

  1. I want to make “Referred by” field when adding issue as drop down list, not as free text.
  2. I want to appear the field “comments” when adding issue
    can any one tell me how? thanks

fsgl wrote on Sunday, May 12, 2013:

  1. Go->Administration->Layouts->Referrals.
    “Refer by” presently has “Providers” as Data Type. Which field are you alluding to? “Reason” with Textarea as Data Type can be changed to Listbox. You will probably need to create a new list for this drop down menu if available lists are unsuitable.
    Go->Administration->Lists to create a new list, then choose the new list from the List column in Layouts->Referrals.
  2. Click the Add Field button and use Textbox or Textarea for “Comments”. Follow previous examples for Size, Label Columns and Data Columns. Trial and error of Size will get “Comments” to line up with other fields in the second column.

Use the Demo for experimentation to avoid messing up your installed copy of OpenEMR.

ijaraho wrote on Tuesday, May 14, 2013:

thank you for response,
but I don’t mean the “Referred by” in “Transactions” but in “Issues” then “Medical Problems” or “Surgeries”…
and also I mean the “Comments” in the same place (it is in database but doesn’t appear in interface)
thanks

visolveemr wrote on Tuesday, May 14, 2013:

Hi,

I guess this can be accomplished by making minor change in the code <<interface/patient_file/summary/add_edit_issue.php >>. This converts the ‘Referred by’ textarea field to a dropdown and thus populated with referring physicians.

Also the ‘Comments’ field (with values) will be visible only during ‘Edit’. If the field doesn’t contain values, then it will not be visible during ‘Edit’ also and here the issue is how to post values to the ‘Comments’. If you want the comment field to be displayed by default, do the following change to the code
(i) Change the variable “revdisp” to “comdisp” in the line
document.getElementById(‘row_comments’ ).style.display = (f.form_comments.value ) ? ‘’ : revdisp;
in function newtype(index) in file mentioned above.

Hope this helps.

Thanks
ViSolve
services@visolve.com

fsgl wrote on Tuesday, May 14, 2013:

You are welcome, Issam. In trying to help, one learns new things everyday.

Thank you, Devi(?).

ijaraho wrote on Tuesday, May 14, 2013:

It success the both drop down list in ‘Referred by’ and ‘comments’
than to you very much

ijaraho wrote on Tuesday, May 14, 2013:

As I told it success, but there is small problem:
when do hard code in the file “add_edit_issue” to add drop down list from “Lists”, when I add list consist of two words, it doesn’t appear (for example “Clinical Plans”), it accept only the lists that consist of one word (for example “Country”)
thanks for you help

ijaraho wrote on Tuesday, May 14, 2013:

hi,
I also solve the last problem: by write _ between the two word (for example: “Clinical_Plans”)
thanks