We’re having an issue mapping EPIC ICD codes (either 9 or 10) to OMOP concepts
Epic has internal mapping for ICD codes. Whether ICD 9 or ICD 10, they map to their proprietary code. Each proprietary code can map to multiple 9 and/or 10 codes.
When I query for a particular AoU patient (PHI and proprietary EPIC data obscured):
I get
One Primary diagnosis and 2 Secondary dx.
I can’t map these directly to OMOP concepts but I can use the internal code mapping. The mapping results for these codes looks as follows:
So now,
Prop_diag_id 123 has 2 codes that map to it
456 has 2 codes
789 has 5 codes
Each of these codes map to separate OMOP concept_ids. So when I create the Condition_occurrence table, mapping the ICD codes to SNOMED codes, I get 9 records instead of 3.
I don’t know which condition_concept_id is correct, because I don’t know which ICD code the record was actually based on.
If it was a matter of one icd9 code and one icd10 code, I could split them by date, but there can be multiples of either code set.
Any suggestions on what to do?
Note: For those of you with access, I’ve posted a more complete explanation (with EPIC code) on UserWeb here: OMOP Issue - Condition_occurrence Table