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.
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.
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…
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
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).
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.