Difference between revisions of "Code Types"

From OpenEMR Project Wiki
Line 36: Line 36:


==Code Type Issues==
==Code Type Issues==
Two elements in the code_types table are considered to be invariant. The ct_key element which holds a text identifier and the ct_id element which holds an id identifier. Changes either of these for ICD9, CPT4, or HCPCS can cause problem. To support allowance of incorporating new code sets in OpenEMR version upgrades, it is important to code these new sets in a way that only the ct_key is invariant (ie. the ct_id does not need to be a pre-determined number). An example of this is the CVX codeset that was added in OpenEMR version 4.1. When adding this type of codeset, we are using a ct_id above 100 to ensure we don't affect any current users that have added their own code types during the upgrade process.
Things to do:
1. Add a ct_label element to the code types, which can be used to hold a user friendly label. Then incorporate this label where needed in the codebase.
2. Consider trying to phase away the ct_id identifier.
1. Clean up the ICD9,CPT4,HCPCS

Revision as of 22:57, 8 June 2011

Code Types

Current Code Types

ct_key ct_id description
ICD9 1 Diagnosis Codes
CPT4 2 Procedure Codes
HCPCS 3 Pocedure Codes
CVX 100 Immunization Codes

LEGEND:

RED - Mandatory setting for this code type
Italic - Optional setting for this code type (ie. the ct_id can be anything greater than or equal to 100 for this code type)
  • Note the ct_key and ct_id are columns from the sql code_types table.

Mechanism for adding Code Types

Can be done in Administration->Lists->Code Types.

If using a code type above, recommend using the same ct_key and ct_id values as above. If creating a new code type, then recommend making sure the ct_id is greater than 100.

Code Type Issues

Two elements in the code_types table are considered to be invariant. The ct_key element which holds a text identifier and the ct_id element which holds an id identifier. Changes either of these for ICD9, CPT4, or HCPCS can cause problem. To support allowance of incorporating new code sets in OpenEMR version upgrades, it is important to code these new sets in a way that only the ct_key is invariant (ie. the ct_id does not need to be a pre-determined number). An example of this is the CVX codeset that was added in OpenEMR version 4.1. When adding this type of codeset, we are using a ct_id above 100 to ensure we don't affect any current users that have added their own code types during the upgrade process. Things to do: 1. Add a ct_label element to the code types, which can be used to hold a user friendly label. Then incorporate this label where needed in the codebase. 2. Consider trying to phase away the ct_id identifier. 1. Clean up the ICD9,CPT4,HCPCS