Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added three new mappings, corrected tabacco #1

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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