Sections Not showing after saving a form in encounter summary & reports

arnabnaha wrote on Tuesday, April 29, 2014:

JUST PLACED A BUG CHECK WHILE TESTING…PLEASE HELP

Hi…
Was checking out and testing again…Found a wierd behaviour…Forms created with xmlformgen works flawlessly but if the form has sections in it like Blood investigations under which 1.2…3… and then next section Radiological Investigations under which 1…2…3… then filling them out and on saving them, they dont show the title Blood Investigations and radiological Investigations any more…directly it shows 1…2…1…(1 & 2 for blood investigations and the last 1 for radiological investigations). It makes no sense…its happening with all the other xmlformgen forms too…can you please check…As far as i remember…it used show sections in the encounter summary before…also the same thing is represented in reports…which is looking wierd.

arnabnaha wrote on Thursday, May 01, 2014:

Any thing on this???

bradymiller wrote on Saturday, May 03, 2014:

Hi Arnab,

Likely hard for folks to test this since not on the demos and it requires ability to use the xmlformgen script. What may help here is to post on github a branch, which has the form(s) expanded and placed in interface/forms directory (also based on most recent codebase). Then it could be more easily tested by others and I could even direct one of the UP FOR GRABS demos to that branch to allow easy testing for all.

-brady
OpenEMR

arnabnaha wrote on Thursday, May 08, 2014:

I will be creating a branch and will notify you here.

arnabnaha wrote on Thursday, May 08, 2014:

here is the branch…Please brady take a look

bradymiller wrote on Friday, May 09, 2014:

Hi,

Pointed the the following “UP FOR GRABS” demo to your github branch:
http://open-emr.org/wiki/index.php/Development_Demo#192.168.1.135

Now everyone can test away :slight_smile:

-brady
OpenEMR

arnabnaha wrote on Friday, May 09, 2014:

Thanks Brady…created a patient in that demo with an encounter and used the form investigation orders. Please check…there is no subheading in the form…everything is i.2.3.1.2 like that…this looks wierd…

bradymiller wrote on Sunday, May 11, 2014:

Hi,
Next step would be to test your commit on 4.1.2 and 4.1.1 releases to see if they weren’t working then also.
-brady
OpenEMR

arnabnaha wrote on Monday, May 12, 2014:

Hi…any progress into this brady?

bradymiller wrote on Friday, May 16, 2014:

Hi Arnab,
No time yet to work on this. My recommendation is to try your “testing” commit on code from the 4.1.1 and 4.1.2 branches to confirm that it worked fine in those releases.
-brady
OpenEMR

arnabnaha wrote on Saturday, May 31, 2014:

Hi Brady…
Just checked the forms on both openemr 4.1.1 and on openemr4.1.2…both the openemr versions are having similar issues. No luck!..Please help

arnabnaha wrote on Tuesday, June 03, 2014:

Any help on this brady?

arnabnaha wrote on Wednesday, June 04, 2014:

Any help brady??

bradymiller wrote on Thursday, June 05, 2014:

Hi,

Since it is something that never “worked” means it will require code development. The reason the LBF forms works (interface/forms/LBF/report.php) is because they leverage the layout stuff (in library/options.inc.php). Since the sections are not stored in the database (as they are for the LBF stuff, this will not be straightforward to support); for example note that the report.php scripts for your forms just list the items stored in the database(there is no code which breaks it into sections).

-brady
OpenEMR

bradymiller wrote on Thursday, June 05, 2014:

Actually,

I was looking at the wrong report.php for your form. If look in https://github.com/arnabnaha/openemr/blob/f4024fda06b8371189f3f4d22a90752feb2ae095/interface/forms/lab_form/report.php it does appear that is does begin to leverage the library/options.php mechanism for the printout. But does not appear that “sections” are dealt with. So coding will still be needed to support this; probably a new function in options.inc.php that can do what display_layout_rows() function does with just a structured array.

-brady
OpenEMR

bradymiller wrote on Thursday, June 05, 2014:

You could make it much more clear by giving them labels (rather than numbers) in lines 132-187 of:https://github.com/arnabnaha/openemr/blob/f4024fda06b8371189f3f4d22a90752feb2ae095/interface/forms/lab_form/report.php

(for example the review of systems form has sections, but the labels are labeled so sections are not required on the report.php output).

-brady
OpenEMR

arnabnaha wrote on Thursday, June 05, 2014:

Thanks brady for the input…can you plz guide me where to change code or how to change amd what to put…that will be helpful…

bradymiller wrote on Thursday, June 05, 2014:

Let me know if need more details than my post above (guessing we posted to forum at the same time)

arnabnaha wrote on Thursday, June 05, 2014:

Yup…that can be done…it will show up nicely…but thats a temporary solution…it will always be better if we can build a nice lookover for the forms…

bradymiller wrote on Thursday, June 05, 2014:

I didn’t build the xmlformgen, but I am guessing that you were able to configure the labels in the xml file.