Skip to content

Commit

Permalink
Update Optum_Panther_Diagnosis_STEM.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bradanton committed Jan 12, 2024
1 parent 7ebc355 commit f35cc45
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/OPTUM_PANTHER/Optum_Panther_Diagnosis_STEM.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ description: "OPTUM EHR Diagnosis table to STEM"

The **Diagnosis** table has multiple columns we use to assign CONDITION_STATUS_CONCEPT_ID. These are PRIMARY_DIAGNOSIS, ADMITTING_DIAGNOSIS, DISCHARGE_DIAGNOSIS, and DISCHARGE_STATUS. The below table details the possible combinations of the fields and how to assign the CONDITION_STATUS_CONCEPT_ID accordingly.

| primary_diagnosis | admitting_diagnosis | discharge_diagnosis | diagnosis_status | Set Condition_Status_Concept_Id to | comment |
| ----------------- | ------------------- | ------------------- | --------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | 0 or NULL | 0 or NULL | any value | 32902 | primary diagnosis |
| 1 | 1 | any value | any value | 32901 | Primary admission diagnosis |
| 1 | 0 or NULL | 1 | any value | 32903 | Primary discharge diagnosis |
| any value | any value | any value | History of | | put it in the Observation table with observation_concept_id = 1340204 and value_as_concept_id = mapped diagnosis_cd_type&diagnosis_cd (same logic as described in concept_Id). Note, if the source concept is mapped with Maps to value, ignore this relationship. type_concept_id = 32840, source_value = 'History of '||diagnosis_cd,  other fields have the same logic as described in Reading from OPTUM_EHR.Diagnosis |
| any value | any value | any value | Possible diagnosis of | 32899 | Preliminary diagnosis |
| 0 or NULL | 1 | any value | any value | 32890 | Admission diagnosis |
| 0 or NULL | 0 or NULL | 1 | any value | 32896 | Discharge diagnosis |
| else | | | | NULL | |
| primary_diagnosis | admitting_diagnosis | discharge_diagnosis | diagnosis_status | Set Condition_Status_Concept_Id to | comment |
| ----------------- | ------------------- | ------------------- | -------------------------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | 0 or NULL | 0 or NULL | any value except: 'History of', 'Possible diagnosis of' | 32902 | primary diagnosis |
| 1 | 1 | any value | any value except: 'History of', 'Possible diagnosis of' | 32901 | Primary admission diagnosis |
| 1 | 0 or NULL | 1 | any value except: 'History of', 'Possible diagnosis of' | 32903 | Primary discharge diagnosis |
| any value | any value | any value | 'History of' | | put it in the Observation table with observation_concept_id = 1340204 and value_as_concept_id = mapped diagnosis_cd_type&diagnosis_cd (same logic as described in concept_Id). Note, if the source concept is mapped with Maps to value, ignore this relationship. type_concept_id = 32840, source_value = 'History of '||diagnosis_cd,  other fields have the same logic as described in Reading from OPTUM_EHR.Diagnosis |
| any value | any value | any value | 'Possible diagnosis of' | 32899 | Preliminary diagnosis |
| 0 or NULL | 1 | any value | any value except: 'History of', 'Possible diagnosis of' | 32890 | Admission diagnosis |
| 0 or NULL | 0 or NULL | 1 | any value except: 'History of', 'Possible diagnosis of' | 32896 | Discharge diagnosis |
| else | | | | NULL | |


## Reading from OPTUM_EHR.Diagnosis
Expand Down

0 comments on commit f35cc45

Please sign in to comment.