Diagnostic Codes Development
From OpenEMR Project Wiki
Overview
OpenEMR 4.1.0 supports ICD9 diagnostic codes by default (although the codes need to be imported via phpmyadmin).
OpenEMR 4.1.1 (planned release by September 2012) if much more flexible in diagnostic code and billing code support. See the Code Types wiki page for descriptions and instructions on how to use these advanced features that include easy importing and use of ICD9/ICD10/SNOMED codes along with a modular mechanism to add support for more codesets in the future (such as DSMIV and translated versions of ICD10/SNOMED etc.).
For historical purposes, leaving this page here (and to track TODOs of this project. This project was started after active discussion in the icd10 sourceforge forum thread.
ICD9
- In OpenEMR 4.1.0, already integrated and working on a default OpenEMR installation(although the codes need to be imported via phpmyadmin).
- In OpenEMR 4.1.1, much easier to import codes, which is described in the Code Types wiki page.
ICD10
- Article on transition from ICD9 to ICD10 in the US: Guest Article: Actionable advice on how to make tangible progress in ICD-9 to ICD-10 migration
- Appears that some users have got this working.
- For standardization, propose following: (THIS PART IS DONE)
- Add following sql columns to the code_types tables: (THIS PART IS DONE)
- active (will allow placing multiple code sets without them being used unless chosen)
- external (0 for using the codes tables to hold codeset and then 1 or greater to use an external table(s) mechanism)
- label (for displaying the code set name"
- Create an entry in code_types table(with id of 100+). See Code Types wiki page for details. (THIS PART IS DONE)
- Support this in the codebase (THIS PART IS ALMOST COMPLETELY DONE)
- Modularize functions and place these functions in the custom/code_types.inc.php script.
- The TODO list can be found in the TODO section below.
- Importing codes (THIS PART IS DONE)
- Plan to import codes via the UI mechanism (like SNOMED and RXNORM)
- The latest raw data file packages can be downloaded from
- DIAGNOSTIC CODES: https://www.cms.gov/Medicare/Coding/ICD10/2012-ICD-10-CM-and-GEMs.html
- PROCEDURE CODES: https://www.cms.gov/Medicare/Coding/ICD10/2012-ICD-10-PCS.html
- See the following forum threads for ongoing progress on this project:
- Analysis of the ICD10 codeset is done and was reported by a developer (mcaloon) here: http://sourceforge.net/u/mcaloon/wiki/ICD%2010%20Home/
SNOMED
- Can currently import the SNOMED datasets into the OpenEMR databasae, however it is currently not integrated with the OpenEMR codebase.
- For standardization, propose following: (THIS IS DONE)
- Create an entry in code_types table(with id of 100+). See Code Types wiki page for details.
- Support this in the codebase
DSMIV
- Appears that some users are working on this
- For standardization, propose following: (THIS IS DONE)
- Create an entry in code_types table(with id of 100+). See Code Types wiki page for details.
- Support this in the codebase
- Importing of codes
- Suggest using same mechanism as the ICD10/SNOMED (and soon to be ICD9)
TODO
- The TODO list:
- The fee sheet only shows the code (and not the code type) when selecting a justification code. Will also show the code type (ie. ICD9:258.12 rather than 258.12). (COMPLETED 6/19/12)
- The justify sql column in the billing table will also include the code types of the codes (ie. ICD9:258.12 rather than 258.12) (COMPLETED 6/19/12)
- The ar_activity table will have a code_type column since it has a code column (akin to the billing table), otherwise not clear what code set the code is actually from. This will also be fixed in Z&H's recent code submission that placed the COPAY from billing table into the ar_activity/ar_session tables. (COMPLETED 7/3/12)
- Deal with hard-coding of ICD9, CPT4, HCPCS in the claims code (COMPLETED 7/3/12)
- Have the CDR diagnosis searching in rule edit use the modular code search function (COMPLETED 6/16/12)
- Place an index on the code_type column in the codes table (COMPLETED 7/5/12)
- Increase size of code_type column in the billing table (varchar(15)) (COMPLETED 7/5/12)
- Increase size of modifier column in the codes and ar_activity table (varchar(12)) (COMPLETED 7/5/12)
- Place code_types (inactive) for CPTII, ICD9-SG, and ICD10-PCS (Change the labels of the ICD/SNOMED dx code types and External methods to make it clear) (COMPLETED 7/5/12)
- Importing mechanism for ICD9/ICD10 codes (COMPLETED 7/17/12)
- Fix hard-coding of ICD/CPT4 related stuff throughout codebase (COMPLETED 7/18/12)
- The syndromic surveillance only works with ICD9 codes. I modified the Administration->Fees to allow setting any code as reportable, however the Syndromic Surveillance report will still only show the ICD9 ones(because is involved in HL7 creation, so need to ensure it tests well with other code types before implementing). So, will need to get the report to support other code sets(and ensure it tests well since this module is needed for meaningful use).(may do this for the next release instead of 4.1.1)
- Add pertinent codes to the CDR engine (plan to do this for the next release - not planned for the 4.1.1 release)
- Consider mechanisms to improve the searching (for example, real-time population of search via ajax or searching by categories etc.)
- Consider supporting other ICD10 and SNOMED code sets in other languages. For example, current ICD10 codes are from the CMS in the US. We can also support importing of the WHO ICD10 codes along with it on other languages.
- The TODO list: