Graph or table data type for LBV forms

tzirtzipik wrote on Thursday, March 06, 2014:

Hello,
i would like to know if i can make or if there is a similar data type that can help me make a field in my form that is a graph chart or a table. More specifically i would like to represent this data as it’s shown on the image attachment.
Thank you

tzirtzipik wrote on Thursday, March 06, 2014:

I need to have a field that could represend this.

fsgl wrote on Thursday, March 06, 2014:

There is an option G in LBV forms for graphable. Pimm or Rod will have to elaborate as to whether this option can be used.

In the meantime have a look at the codes for Vitals to see how the growth charts are constructed.

blankev wrote on Thursday, March 06, 2014:

You could use Vitals as an example. The graphs of Vitals can be anything. The dates can be hours and another field can be cm.

Lots of fine tweaking, but our man who helped to create the CDC graph’s might have a bit more inside info on how to tweak the input with the graph.

You could use the Vital form and leave out the non-issues for your project or you can create another Vitals form and make it suitable for your project.

I do not know anything about G in LBV forms. Could be what you are looking for or could be something as a graphics that can be displayed, jpg, png, bmp, etc…

blankev wrote on Thursday, March 06, 2014:

See my commit a bit further down for another answer to this question.

Another option would be to use the Pain graph and make your modifications.

Go to Demo, Administration, Form and activate and implement the Pain graph. The hard part will be to change your document and use it for your own graph points. But yes you can change the graphs of the body in anything else. But I only can do it through my webbrowser and managing files. (Not directly as I understand you want to do.)

Change Documents put the points in and change to next document or changes to be made whenever a different document needs to be reviewed.

tzirtzipik wrote on Saturday, March 08, 2014:

I used the option G and it worked out! Thanks for your help

blankev wrote on Saturday, March 08, 2014:

Would you be so kind to share the steps you made to accomplish your feat? I am intetested and would like to add it in the LBV Form WIKI.

visolveemr wrote on Monday, March 10, 2014:

Hi,

To use the graph feature available in the LBV forms follow the below steps,

  1. Create a new LBV form from Administration->Lists->Layout-Based Visit Forms section.
  2. Select the LBV form from Administration->Layouts section.
  3. Add a new group if no group is already created.
  4. Use the Add Field button to create a new input field.
  5. Specify all the relevant information for the new field with datatype option as ‘Textbox’ and Options field as ‘G’. Also for properly displaying the graph, make sure that the value entered for ID is not a numeric value and is a text value. Then save the field using, ‘Save New Field’ button.
  6. Then select the newly created LBV form from Patient/Client->Visit Forms and enter the value for the form fields and save it.
  7. On selecting any LBV form that contains a field created with ‘G’ option, ‘Show Graph’ button will be visible in the LBV form.
  8. Click on the ‘Show Graph’ button from the LBV form and then a list of all the available fields of the LBV form will be displayed.
  9. If the user knows which form field is configured with graph (i.e. with option ‘G’), then the user can simply click on the specific field from the displayed list of form fields. Also if the user hovers over the available list of fields, the fields that are configured with the graph option will be highlighted with ‘Red’ text color.
  10. On clicking the form field with graph option, the user can view the graph with the date values on the Y-axis and X-axis with numbers based on the values saved in the graph based input field.

Note : The graph will be visible only if the LBV form is saved at least twice with values provided for the graph based input field, i.e. there should be a minimum of 2 entries of the LBV form for a patient with values available for the graph based input field. Only then the graph can be generated by comparing the two values.

Thanks
OpenEMR Customization/Support provider,
ViSolve Inc
services@visolve.com

blankev wrote on Monday, March 10, 2014:

ViSolve,

great explanation. I think this is a complete version for explanation ready to put in the WIKI pages. Can you do this or do you want me to make a copy => paste?

For sure I will start experimenting with your info and I see a lot of potential!

Tnx

visolveemr wrote on Monday, March 10, 2014:

Hi,

We have updated the WIKI page with the steps for using graph feature in LBV forms.

Link : http://www.open-emr.org/wiki/index.php/LBV_Forms

Thanks
OpenEMR Customization/Support provider,
ViSolve Inc
services@visolve.com

blankev wrote on Monday, March 10, 2014:

Looks great. hope to explore it ASAP!

fsgl wrote on Monday, March 10, 2014:

Very nice addition to Pimm’s article, thanks a bunch.

tzirtzipik wrote on Tuesday, March 11, 2014:

Thank you very much for your help!it worked out but i am wondering if there is an option for me to change the x axis to be another parameter that i chose?

blankev wrote on Tuesday, March 11, 2014:

Please give example what you want to accomplish. First you showed us Date and Input…

Now you want? Graph of…just a rough sketch will be enough. Probably ViSolve will have some explanation of what to do.

tzirtzipik wrote on Tuesday, March 11, 2014:

As i showed you in the attachment above i want the y axis to be cm and x axis hour (1 hour,2 hours ,…etc) more specifically to show the dilation of a woman giving birth. Now i have a textbox field that i give cm and then with the button “show graph” it shows the cm (as the y axis) i put at the time that i put it(as the x axis). But i would like, instead of the time that i entered the data ,to have a graph of two parameters y axis cm and x axis hour. For example for the 1st hour the dilation cm are 5, for the 2nd hour 6cm ,…12th hour 20 cm.

blankev wrote on Tuesday, March 11, 2014:

This is an interesting problem. You need to make input every so many minutes. Than the graph should be made by minutes and dilatation.

Probably ViSolve will know how much software change there has to be made. I think there is the option to use date and time for input fields. So it could be relatively easy… but that is not for me to decide… I am a doctor and not a developer.

Another option might be to make the graph with time since starting the measurement in minutes and the other line with the amount of dilatation and “indaling van de foetus” (?descent of foetal head? H1, H2, H3, H4)

tzirtzipik wrote on Tuesday, March 11, 2014:

blankev wrote on Tuesday, March 11, 2014:

No problemas. If I don’t like the questions I just can ignore them. Just go about 7 steps above and see who helped you with the LBV Graphs.

tzirtzipik wrote on Tuesday, March 11, 2014:

Oh my bad!Sorry, I got confused .

bradymiller wrote on Wednesday, March 12, 2014:

Hi,

Another option would be to place this option in your vitals form, then the graphing should work out (note the vitals form records the time of the measurement, which you can edit). I think the LBF form may be resorting to the day of the encounter and may not have the granularity for time (I am guessing that this is what the default LBF graphing feature does, so I could be wrong).

-brady
OpenEMR