Skip to content

Commit

Permalink
Added in medicationrequest attempt. Still having some issues with dyn…
Browse files Browse the repository at this point in the history
…amicValues and other errors.
  • Loading branch information
lukeaduncan committed Sep 25, 2023
1 parent 9b411d5 commit e6f82dd
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
38 changes: 38 additions & 0 deletions input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"resourceType": "ActivityDefinition",
"id": "IMMZ.DT.08.Measles.MR",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity"
]
},
"url": "http://fhir.org/guides/who/smart-immunization/ActivityDefinition/IMMZ.DT.08.Measles.MR",
"version": "0.1.0",
"title": "IMMZ.DT.08.Measles.MR",
"status": "active",
"experimental": true,
"date": "2022-05-06T12:05:48.3799313-04:00",
"publisher": "World Health Organization (WHO)",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "https://who.int"
}
]
}
],
"description": "Provide measles immunization",
"kind": "MedicationRequest",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "33879002",
"display": "Administration of vaccine to produce active immunity"
}
]
},
"intent": "proposal"
}
34 changes: 33 additions & 1 deletion input/resources/activitydefinition/IMMZ.DT.08.Measles.SR.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,37 @@
]
},
"intent": "proposal",
"doNotPerform": false
"doNotPerform": false,
"dynamicValue": [
{
"path" : "status",
"expression" : {
"language" : "text/cql-expression",
"expression" : "Code { system: 'http://hl7.org/fhir/request-status', code: 'active', display: 'Active' }"
}
},
{
"path" : "intent",
"expression" : {
"language" : "text/cql-expression",
"expression" : "Code { system: 'http://hl7.org/fhir/request-intent', code: 'proposal', display: 'Proposal' }"
}
},
{
"path" : "code",
"expression" : {
"language" : "text/cql-expression",
"expression" : "Code { system: 'http://id.who.int/icd/release/11/mms', code: 'XN186', display: 'Measles virus' }"
}
},
{
"path": "occurrence",
"expression": {
"description": "Due date of the dose",
"language": "text/cql-expression",
"expression": "Schedule Due Date for MCV dose"
}
}

]
}
2 changes: 1 addition & 1 deletion input/resources/plandefinition/IMMZ.DT.08.Measles.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
}
],
"definitionCanonical": "http://fhir.org/guides/who/smart-immunization/ActivityDefinition/IMMZ.DT.08.Measles.SR"
"definitionCanonical": "http://fhir.org/guides/who/smart-immunization/ActivityDefinition/IMMZ.DT.08.Measles.MR"
}
]
}

0 comments on commit e6f82dd

Please sign in to comment.