Skip to content

Commit

Permalink
Merge pull request #1 from SevKohler/adverse_reaction_risk
Browse files Browse the repository at this point in the history
added three new mappings, corrected tabacco
  • Loading branch information
SevKohler authored Apr 2, 2024
2 parents 358e46b + f03521b commit f8284e3
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 1 deletion.
24 changes: 23 additions & 1 deletion medical_data/evaluation/Tobacco_smoking_summary_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,26 @@ mappings:
value:
alternatives:
- path: "/data[at0001]/items[at0089]"
- path: "/data[at0001]/items[at0043]"
- path: "/data[at0001]/items[at0043]"

- type: "Measurement"
concept_id:
alternatives:
- code: 4151768 # pack years
observation_date:
alternatives:
- path: "../context"
value:
alternatives:
- path: "/data[at0001]/items[at0074]" # overall pack years

- type: "Observation"
concept_id:
alternatives:
- code: 44786668 # date quit tobacco smoking
observation_date:
alternatives:
- path: "../context"
value:
alternatives:
- path: "/data[at0001]/items[at0016]" # overall quit date
22 changes: 22 additions & 0 deletions medical_data/evaluation/adverse_reaction_risk_v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
archetype_id: "openEHR-EHR-EVALUATION.adverse_reaction_risk.v1"

mappings:
- type: "Observation"
concept_id:
alternatives:
- code: 35626089 #SNOMED Abnormal immune process (qualifier value)
observation_date:
alternatives:
- path: "/data[at0001]/items[at0027]" #onset of reaction
- path: "../context"
value:
alternatives:
- path: "/data[at0001]/items[at0002]" # Substance, mandatory since the WHAT is essential here
unit:
optional: true
alternatives:
- path: "/data[at0001]/items[at0058]" # type of immune reaction
qualifier:
alternatives:
- path: "/data[at0001]/items[at0063]" # status, enforce since could be refuted

35 changes: 35 additions & 0 deletions medical_data/evaluation/alcohol_consumption_summary_v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
archetype_id: "openEHR-EHR-EVALUATION.alcohol_consumption_summary.v1"

mappings:
- type: "Observation"
concept_id:
alternatives:
- code: 4042860 # Finding relating to alcohol drinking behavior (finding)
observation_date:
alternatives:
- path: "../context"
value:
alternatives:
- path: "/data[at0001]/items[at0089]" # overall status

- type: "Observation"
concept_id:
alternatives:
- code: 619635 # Alcoholic drink intake
observation_date:
alternatives:
- path: "../context"
value:
alternatives: &valueAlternatives1
- path: "/data[at0001]/items[at0064]/items[at0023]" # Typical consumption (alcohol units)
unit:
alternatives:
- path: *valueAlternatives1

- type: "Observation"
concept_id:
alternatives:
- code: 4052945 # Stopped drinking alcohol (finding)
observation_date:
alternatives:
- path: "/data[at0001]/items[at0016]" # overall quit date
25 changes: 25 additions & 0 deletions medical_data/observation/Head_circumference_v1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
archetype_id: "openEHR-EHR-OBSERVATION.head_circumference.v1"

mappings:
- type: "Measurement"
concept_id:
alternatives:
- code: 4181669
measurement_date:
alternatives:
- path: "data[at0001]/events[at0006]"
value:
alternatives: &valueAlternatives1
- path: "/data[at0001]/events[at0010]/data[at0003]/items[at0004]"
unit:
alternatives:
- path: *valueAlternatives1
range_low:
optional: true
alternatives: *valueAlternatives1
range_high:
optional: true
alternatives: *valueAlternatives1
operator_concept_id:
optional: true
alternatives: *valueAlternatives1

0 comments on commit f8284e3

Please sign in to comment.