Skip to content

Commit

Permalink
Changed plan and activity definitions to be FSH files. Added in umbre…
Browse files Browse the repository at this point in the history
…lla plan definition.
  • Loading branch information
lukeaduncan committed Oct 3, 2023
1 parent c0584d3 commit 5d29afa
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 97 deletions.
73 changes: 73 additions & 0 deletions input/fsh/definitions/measles.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Instance: IMMZDT08Measles
InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition
Title: "IMMZ.DT.08.Measles"
Description: "If the child or patient has not been given MCV1 (at 9 months) and MCV2 (between 15-18 months) vaccination"
Usage: #definition

* library = "http://fhir.org/guides/who/smart-immunization/Library/IMMZDT08"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
* version = "0.1.0"
* name = "IMMZDT08Measles"
* status = #draft
* experimental = false
* publisher = "World Health Organization (WHO)"
* action[+]
* title = "Immunize patient for Measles"
* description = "Provide measles immunization"
* condition[+]
* kind = #applicability
* expression
* description = "Provision of the MCV dose"
* language = #text/cql-identifier
* expression = "Provision of the MCV dose"
* definitionCanonical = Canonical(IMMZDT08MeaslesMR)


Instance: IMMZDT08MeaslesMR
InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-medicationrequestactivity
Title: "IMMZ.DT.08.Measles.MR"
Description: "Provide measles immunization"
Usage: #definition

* library = "http://fhir.org/guides/who/smart-immunization/Library/IMMZDT08"
* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
* version = "0.1.0"
* name = "IMMZDT08MeaslesMR"
* status = #draft
* experimental = false
* date = 2023-10-03
* publisher = "World Health Organization (WHO)"
* contact[+]
* telecom[+]
* system = #url
* value = "https://who.int"
* kind = #MedicationRequest
* intent = #proposal
* doNotPerform = false
* productCodeableConcept = $ICD11#XM28X5 "Measles vaccines"
* dynamicValue[+]
* path = "status"
* expression
* language = #text/cql
* expression = "'draft'"
* dynamicValue[+]
* path = "intent"
* expression
* language = #text/cql
* expression = "'proposal'"
* dynamicValue[+]
* path = "dispenseRequest.validityPeriod.start"
* expression
* description = "Due date of the dose"
* language = #text/cql-identifier
* expression = "Schedule Due Date for MCV dose"
* dynamicValue[+]
* path = "dispenseRequest.validityPeriod.end"
* expression
* description = "Expiration date for MCV dose"
* language = #text/cql-identifier
* expression = "Expiration Date for MCV dose"
25 changes: 25 additions & 0 deletions input/fsh/definitions/umbrella.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Instance: IMMZDTUmbrella
InstanceOf: http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-strategydefinition
Title: "IMMZ.DT.Umbrella"
Description: "If the child or patient has not been given MCV1 (at 9 months) and MCV2 (between 15-18 months) vaccination"
Usage: #definition

* extension[+]
* url = "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability"
* valueCode = #computable
* version = "0.1.0"
* name = "IMMZDTUmbrella"
* status = #draft
* experimental = false
* publisher = "World Health Organization (WHO)"
* action[+]
* title = "Check Immunizations"
* description = "Check immunization plan definitions to see what is required."
* code = http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-process-cs#dispense-medications
* selectionBehavior = #all
* action[+]
* title = "Immunize patient for Measles"
* description = "Provide measles immunization"
* code = http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-process-cs#dispense-medications
* selectionBehavior = #all
* definitionCanonical = Canonical(IMMZDT08Measles)
69 changes: 0 additions & 69 deletions input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json

This file was deleted.

27 changes: 0 additions & 27 deletions input/resources/plandefinition/IMMZ.DT.08.Measles.json

This file was deleted.

3 changes: 2 additions & 1 deletion sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jurisdiction: http://unstats.un.org/unsd/methods/m49/m49.htm#001
# For R5 ImplementationGuides, the object can also have a key for `reason`.
dependencies:
hl7.fhir.uv.sdc: 3.0.0
hl7.fhir.uv.cpg: current
# hl7.fhir.r5.core:
# version: 5.0.0-draft-final
# hl7.fhir.us.mcode:
Expand Down Expand Up @@ -128,7 +129,7 @@ groups:
 
resources:
- ActivityDefinition/IMMZ.DT.08.Measles.MR
- ActivityDefinition/IMMZDT08MeaslesMR
## GroupB:
## name: Group B
## description: The Beta Group
Expand Down

0 comments on commit 5d29afa

Please sign in to comment.