Source code structure

kietvta wrote on Tuesday, August 09, 2016:

Dear All

Could you please show me where I can find source code structure documentation of OpenEMR such as: how is its organized, the description of folders or files in source code, what will we need to change when customize the source?

Thanks in advance

sunsetsystems wrote on Tuesday, August 09, 2016:

In case you have not already seen it:

http://open-emr.org/wiki/index.php/OpenEMR_Wiki_Home_Page#Developer_Manuals

If you tell us what sort of customization you want to do, someone can probably point you in the right direction.

Rod
http://www.sunsetystems.com

kietvta wrote on Wednesday, August 10, 2016:

Hi Rod
Thank you for your support. We will customize OPENEMR for non-profit project. Could you please show me the right direction to customize the following functions:

  • Insurance information (including Provider, Fee, Billing and Report) to get along well with my local insurance policy.
  • Patient Transaction (referal, counter referal and transaction report)
  • Patient’s family member disease and history (need to identify which patient has relation to another patients in the same family)

Thank you.

sunsetsystems wrote on Wednesday, August 10, 2016:

Insurance covers a lot of territory. For claims-related logic start with:
o library/Claim.class.php
o library/gen_hcfa_1500.inc.php
o library/gen_x12_837.inc.php
o library/sl_eob.inc.php

For view/edit of patient insurance info see:
o interface/patient_file/summary/demographics.php
o library/patient.inc

Managment of insurance companies is based on legacy code using Smarty. Look in controllers, library/classes and templates for file names relating to insurance. We are not encouraging new Smarty development.

For transactions start with interface/patient_file/transaction/. But be aware that I will soon be floating a feature to change referrals from transactions to encounter forms, so you might want to hold off on that a bit.

There has been talk about supporting relationships between patients (specifically guarantors) but I don’t think much has happened yet. See this discussion:

https://sourceforge.net/p/openemr/discussion/202506/thread/a3097c3c/

Rod
http://www.sunsetystems.com

kietvta wrote on Friday, August 12, 2016:

Thank you so much Mr Rod!