OHDSI / Themis

Repository for OMOP CDM conventions as defined by THEMIS. These can be reference lists of concepts, pieces of standardized code for data generation or quality certification, and debates.
Apache License 2.0
26 stars 8 forks source link

[2022 US Symposium] Allergies to Substances #69

Open ericaVoss opened 1 year ago

ericaVoss commented 1 year ago
TYPE NOTES
ITEM How to handle allergies to substances with link to the reaction.
FORUM POST https://forums.ohdsi.org/t/2022-us-symposium-69-allergies-to-substances/17504
SOLUTION TBD
NEXT STEPS TBD
cukarthik commented 1 year ago

Describe the issue/topic?

 This proposal defines how to model allergies to substances within OMOP.

What do we know about this topic? What has been discussed?

  There are two cases when looking at allergies: (1) recording historical allergies and (2) allergic reactions that are newly experienced (i.e. recording rash after a vaccine is administered to a patient). The challenge on how to link the various components to (2) was primarily discussed. Looking at reactions to drugs, these tables have to be linked: condition_occurrence, observation, and drug_exposure.  To narrow the scope we will look at  drug allergies.

What are recommendations for how to handle this issue/topic?

 We agree with the proposed solution to historical allergies which was documented in the forum post: Drugs/allergens can be stored to OBSERVATION table to the column value_as_concept_id with one of the following observation_concept_id's = 439224 (Drug allergy) or 4169307 (Allergy to substance)

 The proposed solution is for CDM 5.4. For recording reactions to a drug, the following codes should be used for the observation_concept_id in the observation table: 4166257 (Allergic reaction to drug) or 441488 (Adverse reaction to substance). The value_concept_id will be the drug_concept_id from the drug_exposure table. The allergic reaction will be recorded in the condition_occurrence table (i.e. rash to drug). Right now to link all three tables is a challenge without the fact_relationship table. In 5.4, only one table can be linked to the observation table. Below is one option to link the information where the timestamp is used as an implicit linking of the condition_occurrence table and observation table, which is not a good solution. We should use an explicit link between the rows.

observation_datetime= condition_start_datetime observation_event_id=drug_occurrence_id obs_event_field_concept_id= 1147339 (drug_exposure)

If your data does not have drug information then observation and condition_occurrence table can be linked:

observation_datetime= condition_start_datetime observation_event_id=condition_occurrence_id obs_event_field_concept_id= 1147333 (condition_occurrence)

What next steps should be taken?

 TBD
cgreich commented 1 year ago

Friends:

I would not worry about having a link between the cause (drug, or other exposure) and the allergic response. Here is the why:

When we talk about "allergy", this layman term usually means a type I hypersensitivity reaction, also known as anaphylactic, allergic or immediate reaction. In these, it appears that the cause is relatively easy to pinpoint (patient took drug and the throat started swelling minutes later). Therefore, the model should absolutely be able to link between the event and the outcome.

But that picture is not true:

But we need not worry. the OMOP CDM should not be used for treating individual patients anyway. We are looking at population effects, like when studying any other drug effect (think LEGEND). All we need is to have the exposure (we do) and the outcome (we do). One of the HADES methods will do the rest and determine the risk between them.

In other words: Let's not torture the poor ETL wretch into having to create an awkward assertion in the data. That's our job doing the research.

MelaniePhilofsky commented 10 months ago

@cukarthik @cgreich Looks like Karthik posts a solution, but then Christian posts an alteration to the solution. I think this should go back out to the forums for a final ok by the community before it is ratified. Here is the link to the forum post template. @cukarthik You are the sponsor for this issue, correct?

cgreich commented 10 months ago

the upcoming SNOMED Expo will have a session on this subject. Let's see what they came up with.