Forms Library

octort wrote on Wednesday, November 16, 2011:

Hi, I believe I read about several forms available for OpenEMR, anybody knows where to fine these templates? basically, what I need is a form that allows to save data on the same form once a year without loosing any past information previously entered into the form. thanks in advance!

juggernautsei wrote on Wednesday, November 16, 2011:

Look under administration > Other > Forms
Let me know if this is what you are looking to find.

Sherwin
openmedpractice.com

bradymiller wrote on Thursday, November 17, 2011:

Hi,

The History (History link in patient summary screen) module kind of works like that; it saves all changes to the database, but only shows the most recent. However, there is no way to view them. The vitals form list all previous entries from previous forms, so could also do something like that. Bunch of forms are stored in contrib/forms (use at own risk) along with several (which are tested to work) at administration->other->forms. Also a page on the wiki for forms that has not been tha suuccessful(only one form there so far): http://www.open-emr.org/wiki/index.php/OpenEMR_Contributed_Forms

-brady

bradymiller wrote on Thursday, November 17, 2011:

Also,

After re-reading your post, note that all the forms should do what you requested above. For example, enter in information into a form, and then 1 year later enter new information into the form again.

-brady

octort wrote on Monday, November 21, 2011:

I tried some of the forms located at /openemr/contrib/forms to see how they work. I couldn’t believe how easy it is to implement them. Now what I need is a field like the one in Layouts, a “List box w/add”; I believe there is not a field type like that in the formmaker yet. Also I am not sure how to make it to appear in the Patient’s summary like Vitals form. Thanks all!

octort wrote on Tuesday, November 22, 2011:

Also, I have OpenEMR installed on WAMP; for some reason a test form I created is working fine when entering data but I am not able to edit or see that data again. Now, when I use a Virtual Machine (Ubuntu 10.04/ oemr 4) with the same test form it works just fine, any ideas what setting is wrong in WAMP?? Thanks in advance!

bradymiller wrote on Tuesday, November 22, 2011:

Hi,

What is your operating system? On windows, both the more recent versions of Xampp and WAMP currently have a nasty bug likely related to the php or mysql version (although, we honestly haven’t figured out why yet). Version 1.7.3 for XAMPP is the highest version that works with OpenEMR and I don’t know where it broke with WAMP. Here’s the thread on the elusive bug:
http://sourceforge.net/projects/openemr/forums/forum/202505/topic/4782368

-brady

octort wrote on Tuesday, November 22, 2011:

I just installed XAMPP 1.7.3 and now I am able to save a custom form but when I try to retrieve a group of check boxes I don’t get the ones I previously selected. Same for a multi value list. Any ideas?

octort wrote on Wednesday, November 30, 2011:

SOLVED - Thanks:

view.php -

function chkdata_CB(&$obj, $nam, $var) {
//if (preg_match("/Negative.*$var/",$obj{$nam})) {return;} else {return “checked”;}
if (preg_match("/$var/",$obj{$nam})) {return “checked”;} else {return;}
}

}
  function chkdata_PopOrScroll(&$obj, $nam, $var) {
//if (preg_match("/Negative.*$var/",$obj{$nam})) {return;} else {return “selected”;}
if (preg_match("/$var/",$obj{$nam})) {return “selected”;} else {return;}

octort wrote on Friday, December 09, 2011:

I just found that this function doesn’t work properly when using repeated words like: Cancer and Breast Cancer, I made changes to fix it

function chkdata_PopOrScroll(&$obj, $nam, $var) {
    
     $array_content = explode(’,’,$obj{$nam});
    
     for($i = 0; $i < count($array_content); $i++) {
         if ($var == trim($array_content))
     return “selected”;
     }
     return;   
}

octort wrote on Friday, December 09, 2011:

I just completed 2 custom forms, everything working fine except when I click save, nothing shows up only I can read on top:

     Physicians Statement by Administrator (Collapse)

and a white rectangle with no data.

any ideas why I am able to create a new record, save it, retrieve it but not be able to display it??

thanks in advance!

octort wrote on Thursday, December 15, 2011:

Solved! - I didn’t have the right value in Report.php file to match the form name.