Here is my proposal how to put this. Still not sure where to put âSevere Reactionâ though.
CONDITION_OCCURRENCE.condition_source_value =âHivesâ
CONDITION_OCCURRENCE.condition_concept_id = 4082588 (Standard concept_id for Hives)
OBSERVATION.observation_source_value = âDrug Allergy Penicillinâ
OBSERVATION.observation_concept_id = 439224 (Standard concept_id for Drug allergy)
OBSERVATION.value_as_concept_id = 19126544 (Standard concept_id for Penicillin)
OR
OBSERVATION.observation_source_value = âDrug Allergy Penicillinâ
OBSERVATION.observation_concept_id = 4240903 Allergy to penicillin
the latest option is more in line with OMOP rules, but I think you can choose the one that is easier to obtain for you.
then connect them via FACT_RELATIONSHIP.
FACT_RELATIONSHIP.domain_concept_id_1 = 19 (Condition domain)
FACT_RELATIONSHIP.fact_id_1 = CONDITION_OCCURRENCE.condition_occurrence_id (corresponding to Hives entry)
FACT_RELATIONSHIP.domain_concept_id_2 = 27 (Observation domain)
FACT_RELATIONSHIP.fact_id_2 = OBSERVATION.observation_id (corresponding to Drug allergy entry)
FACT_RELATIONSHIP.relationship_concept_id = 46233685 (Condition relevant to)