In the patient report area, if multiple datasets exist in one encounter, OpenEMR allows you to submit any number and combination of datasets and generate a second window for printing. I wonder what factor determines the sequence by which the datasets show on the printout and if that sequence can be altered.
I am experimenting to generate an H & P by using various templates, history, physical, etc. the print out always shows physical exam first.
I’m working on recoding most of the patient reporting screens. I can understand the confusion of the reports and find it odd that you can choose to print some Forms of Encounters *without* the encounter itself. This is an area that will be getting a lot of attention from me as my users will be using the system with minimal training. Everything needs to be self explanatory.
The code for the reports is not straightforward and pulls in a number of different PHP files. The order of the Forms printed on the report is dictated, I believe, by the original SQL query that gets the list of Forms associated with an encounter. Then, of course, if you’re pulling Forms from different encounters you need to pay attention to the date of the encounters as they are ordered by date. This too can be changed if a customized PHP file is written.
hi
the sequence is determined by the priority given to the different forms. so you give higher priority to the forms/dataset you want displayed first.
where 1 is a higher priority than 2
I’ve been working through the code for patient reporting and haven’t seen anything about Form priority. Have I overlooked something?
Specifically I’m looking at openemr/interface/patient_file/reports/custom_report.php
In the section of that code pulls up the forms associated with an encoutner, they are ordered simply by Form ID. That’s the internal unique identifier. But it would be interesting to have a priority database field in there to help arrange them.
Hui,
Is the physical exam form the first one entered in each of your encounters?
Hi
login into opemr as admin and navigate to Admin—>Forms---->and set the priority of the enabled forms according to how you would want them to appear on the report from 1< and the custom report would pull the forms according to the priority set there
I followed the instruction of Dominic and it worked well. As in Dominic’s post, the form priority is entered in the OpenEMR’s user interface under form, and the default value is 0 with a fresh install, and any other form you build up also get the 0 value by default.
I found the dataset sequence in the encounter screen (bottom half) is determined by the sequence the dataset is actually entered–I think the last one goes to the first place. However, when I click the report tab, the sequence changes. I thought it might be something to do with the actual name of the dataset, so I tried putting prefix such as "a, b. c" in the name, changing the actual name, capital vs small letters, etc. sometimes it does change the sequence, often times not. So it must be some other things.–That is before I change the priority value.
I also found the forms can be grouped by categories, then they will show nicely in groups at the upper left corner of the encounter screen.
Thank you all, Dominic and Jason, that is very helpful. I have been pulling hairs for 2 days, the fix is so quick and easy–well, it is never easy unless you know it.
You are doing it the correct way, with priority numbers and categories.
In the same section, you can also create ‘nicknames’ for the forms. This feature is incomplete. The drop down menus where you select forms in an encounter will show the nickname, but the reports page will still show the original form name. This is an area that could use some developer attention.
Now I have more questions regarding patient report printout. I noticed the "print view" page, the letterhead was already generated, by default it uses the billing address and busness entity name. How can I customize this to be the location of the clinic? Please comment, thank you, hui
This same thing has been requested by my users. I intend to work on a solution in the coming months. To get a better feel for what you’re asking could you elaborate a little bit?
Do you want the name & address of the facility where the report was printed? Thus the information comes from the logged in user/provider.
Do you want the name & address of the facility from the patient encounters?
Or something else?
At the moment the printed report looks at the first facility, in the list of all facilities ordered by their billing location. Not a very clever logic but it works for most people. I guess.
Sorry for the late response–I somehow missed your posting completely till now, when I revisited some of old postings while testing the new 3.0 version.
In my case, since I use OpenEMR for billing, I have to enter a PO Box address for billing purpose. This address is carried over to be the letterhead if I use the generate report function. I think it would be much better if the address is the main physical address of the facility where patient is seen.
I tried the new 3.0 version and noticed there are a few more choices for printing CAMOS contents: other than printing four panel prescriptions, it can also generate pdf files for the patient encounter note, which I entered with CAMOS function. The best seems to be with the button: "Print This Encounter". Here I have a few things to improve: 1) there is no letter head of any kind at all; 2) the note has a title: "Other", which is confusing and not necessary. 3) everything in the note become ONE WHOLE paragraph, it does not have the original formatting any more. For example, if a SOAP note is entered in four separate paragraphs, it will come out to be one single paragraph–everything together.
Nothing major, but I think it could make the software better.