New group contains companies (insurance companies) Please help

brainknight wrote on Monday, October 20, 2014:

Hello Dears,

In the add new patient, I want to make a new group (Companies) which includes:
Name:
DOB:
Gender:
Company: —> (which is the insurance Companies)




and other information.

I will make this new group from layouts–> demographics…

So I need to select the company from the insurance companies already added in practice setting–> insurance companies.
(a drop down list that links to the database records of practice settings, so that when these change the list reflects these changes…Exactly like pharmacies)

Please can any one help me for this.

Thanks you.

Regards,
B. K.

brainknight wrote on Tuesday, October 21, 2014:

Please any help…?

visolveemr wrote on Tuesday, October 21, 2014:

Hello B. Knight

To add the insurance companies data type in the layouts section, you need to add the following at line 58 in the file interface/super/edit_layout.php

"36" => xl("Insurance Companies")

And in the file library/options.inc.php , you can add the function get_insurance_companies() similar to get_pharmacies() function to return the insurances list.

Similary in the following functions also, you may need to replicate for the datatypes=36 (insurance copanies) by refering to the datatypes=12 (which is used for pharmacies).

    generate_print_field
    generate_display_field
    generate_form_field 

This will create “Insurance Companies” as a new data type for layouts section.
Hope this helps.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com
Demo’s @ ViSolve Demo Library

brainknight wrote on Thursday, October 23, 2014:

Dears,

Thank you very much for your help.

The first file has been successfully modified.

But please I need more help with the second file as I couldn’t modify it.

Could you please specify with steps which lines exactly to modify.

I am sorry for interrupting you but I am in trouble and I need your help.

Thank you in advance.

Regards,
B. K.

visolveemr wrote on Monday, October 27, 2014:

Hello B. Knight

We have attached the modified library/options.inc.php file from OpenEMR 4.1.2(patch 7).
You can use this file, if you are running the latest OpenEMR version.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com
Demo’s @ ViSolve Demo Library

brainknight wrote on Sunday, November 02, 2014:

Thank You very much for that,

I appreciated for you.

Thanks again.

Regards,
B. K.