Read about OpenEMR's Response to the COVID-19 Pandemic at https://www.open-emr.org/covid19/

Need help laying out fields

fkasmani wrote on Saturday, January 19, 2013:

Hello,

I’m adding some new groups to the demographics and am facing an issue with laying out of the fields. The fields are like all over the screen in a confusing manner. I’ve placed a snapshot at http://i49.tinypic.com/w42s6.png

The LBV forms page on the OpenEMR wiki says

Label Cols: The number of table columns in the form dedicated to the field’s label. Usually this is 1, but might be 0 to indicate that the label (if any) is to appear in the previous column. Note the labels and data are currently arranged into a total of 4 columns.
    Data Cols: Similar to Label Cols, but for the field’s input area. Usually 1 or 3, sometimes 0.

and based on this I’ve tried changing the “Data Cols” and “Label Cols” for field in an attempt to get this sorted, but I don’t seem to be getting it right.

Looking at the first line on the snapshot I’ve linked above, lets say I wanted to put ‘Vn- R.E.’ ‘Vn- L.E.’ ‘Vn- Bino’ in one row next to eachother; then have in the next row: ‘Nr.Vn R.E.’ ‘Nr. Vn L.E.’ ‘Nr.Vn Bino’
How do I get  ‘Nr.Vn R.E.’ ‘Nr. Vn L.E.’ ‘Nr.Vn Bino’ to come in the next row instead of clustering up in the first. Just in case it may help, a snapshot of the settings I  have made in Administration >> Layouts >> Demographics
can be viewed at http://i49.tinypic.com/n4tlja.jpg

Thanks.

bradymiller wrote on Tuesday, January 22, 2013:

Hi,

Hopefully our LBF guru, Pimm, can weigh in here. Guessing related to setting one of the data columns to 10.

-brady
OpenEMR

blankev wrote on Sunday, January 27, 2013:

Sorry, but my experience with LBF forms is of little help. I think you have to contact Rod who developed this feature or via Mi2Square who had a web meeting over LBF features a couple of month’s ago. I missed that session and would have loved to hear about others and solutions of problems.What you discover for LBF forms please donate some relevant info on the Wiki pages or send me a rough concept and I will try to make it into some Wiki info for LBF-forms.

blankev wrote on Sunday, January 27, 2013:

My experience is one of trial and mostly of ERROR in capitals. And too long ago to remember what errors I encountered. My latest efforts were base on OpenEMR forms, to discover what field column etc were used and try to implement these into something like what you did for eye-specialisation.

Remember that all LBF-form implementations have to be reinstalled after any new install of the OpenEMR and Database so make frequent back-ups. Most changes happen in directories and files changed and DB-Tables relevant to your LBF-forms

fkasmani wrote on Sunday, January 27, 2013:

Thanks, Pimm.

Would Mi2Square have a recorded version of their meeting for us to view - maybe get some tips from there?

If only there was a bit of detailed info with examples on the “Label Cols” and “Data Cols” in the WikI for LBV Forms.

I wonder if somehow it is possible to design the form in a web development app like Dreamweaver and export to XML?

Regards.

blankev wrote on Sunday, January 27, 2013:

Could be, but I never got an updat as accomplished when I asked the same question.

BTW I changed zhportal password back to the name as suggested in the Demo page.

blankev wrote on Sunday, January 27, 2013:

Or are you having problems when you lobin via Patient Portal of ZHPORTAL? I did not try this for odd-results, but came up as a possible difference in whatever.

bgregg wrote on Monday, January 28, 2013:

Can you export and link an SQL file for all related LBF fields in the layout_options table? I’ll see what I can do in my free time over the next few days.

Brad Gregg
http://www.mi-squared.com/

mangaleshjoshi wrote on Wednesday, January 30, 2013:

Keep first object as Label Col: 1 and Data Col: 1 while rest all in the same row as 0 and 0 except the last one; last one will be 1 and 6. This will start the new line.

1 Like

blankev wrote on Wednesday, January 30, 2013:

I included the comment of mangaleshhjoshi to the WIKI-pages.

Please review:

http://www.open-emr.org/wiki/index.php?title=LBV_Forms&action=submit

under LBV- forms (don’t forget to let me know if I included the wrong information at the wrong place)

Pimm

drkay wrote on Thursday, January 31, 2013:

While we’re on the subject of layout based forms, I have a related question.  On my Encounter Summary page, there are menus for the following types of forms: “Miscellaneous”, “Administrative”, “Clinical”, and “Layout Based”. Why must forms created with the built-in layout maker be listed on the Encounter Summary page as “Layout Based”? Why is there a separate category of form based only on how the form was created? The user doesn’t care how the form was made. If I create a layout-based form that is clinical, why can’t it go under the “Clinical” menu?

tmccormi wrote on Thursday, January 31, 2013:

Dr Kay,
   That is indeed a flaw and I have a custom code patch to fix that.  It’s a bit too kludgy for me to want to share it in pubic, but it works and lets you add LBF form to any menu and in order you want them.    It would only take a couple of hrs to make it public worthy I think.
-Tony

blankev wrote on Thursday, January 31, 2013:

HISTORY! Rod volunteered to make this option feasible. Till now not much comment only the one’s commenting the difficulty to comprehend and make them work.

Most probably Rod will, help with (or without ;-)) reasonable fee to make it, as you suggest. To me it is an improvement, but I do not have the knowledge to change this part of the software, nor the financial support to help you to convince Rod.

You could rename Layout Based Forms into something more meaningful in language translations, but than you are stuck with the same extra tab with only a different name, but could rename it into something like Special Forms.

sunsetsystems wrote on Thursday, January 31, 2013:

I felt my ears burning.  :slight_smile:

Yes I have a fix like that done for an older/customized version of OpenEMR.  I’ll port it over if when I get a bit of free time, if Tony doesn’t get to it first.

They way it works is you can assign a category name to each layout-based form, and if it matches a category for conventional forms then it goes into the same drop-down.

Rod
www.sunsetsystems.com

fkasmani wrote on Thursday, January 31, 2013:

Keep first object as Label Col: 1 and Data Col: 1 while rest all in the same row as 0 and 0 except the last one; last one will be 1 and 6. This will start the new line.

Mangalesh, thanks for the tip. This helped me get them into different rows as needed.

However, the last field in the row keeps a big gap from the previous field. As can be seen from the screenshot I’ve placed at http://i50.tinypic.com/2ibkkjq.jpg it looks as though they want to align themselves to the furthest column on the page.

Another thing I wanted was, to be able to have some blank row(s) in certain places on the page, to make the layout more understandable and separate different things. It looks pretty confusing at the moment, and would be easier to fill in if it were separated into blocks, eg, to separate Old Rx: from what is above it.

Incase it may help, I’ve attached a screenshot of the backend of the Demographics form to show the layout seetings I’ve made. The snapshot can is viewable at http://i45.tinypic.com/2dhi5j9.jpg

Would really appreciate some help on this, pls.

Regards.

1 Like

mangaleshjoshi wrote on Thursday, January 31, 2013:

Sorry guys! My mistake…F. Kasmani, Keep all the object as 1 and 1 and last one 1 and 6. I guess this should resolve the issue. Please update after testing so that Pieter B or somebody can modify in the WIKI page.

For blank row, there is a trick I do but not sure whether that is the right way…previous line, keep 1 and 6. On next line, create a new field. Keep period “.” in the Label field. Select Static Text as a data type. Keep comments blank. Save the new field. Now delete the period from Label and save the form. I suppose this should work. Please try out and let us know.

Thanks,
MJ :slight_smile:

mangaleshjoshi wrote on Thursday, January 31, 2013:

If 1 and 1 doesn’t work, try keeping all 0 and 0 while last 0 and 6.

MJ :slight_smile:

mangaleshjoshi wrote on Thursday, January 31, 2013:

Basically 6 in Data Cols creates next line is for sure. Rest all needed to be experimented.
MJ

drkay wrote on Thursday, January 31, 2013:

Great. Thanks Tony and/or Rod!

I noticed that one of the forms I am using from contrib is listed under “Miscellaneous”. Is there any way to move that to “Clinical”, or is that a different issue?

mangaleshjoshi wrote on Thursday, January 31, 2013:

Another suggestion is try 1 and 6 in first object while all other objects on the same row as 0 and 0.
MJ :slight_smile: