Code Types
Code Types
Current Code Types
ct_key | ct_id | description |
---|---|---|
ICD9 | 1 | Diagnosis Codes |
CPT4 | 2 | Procedure Codes |
HCPCS | 3 | Procedure 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 and that the ct_id column is equal to the code_type column of entries in the sql 'codes' 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 were 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 problems. To support allowance of incorporating new code sets in OpenEMR version upgrades, it is important to code 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.