From 723958340693ab9d96089e818fcd292a8813a117 Mon Sep 17 00:00:00 2001 From: Luke Duncan Date: Wed, 27 Sep 2023 06:49:34 -0700 Subject: [PATCH] Update medicalrequest activitydefinition so it now runs, but the dynamicValues are failing. --- .../IMMZ.DT.08.Measles.MR.json | 32 +++++++++++++------ .../IMMZ.DT.08.Measles.SR.json | 5 --- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json b/input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json index f22e075b30..d6652f82c4 100644 --- a/input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json +++ b/input/resources/activitydefinition/IMMZ.DT.08.Measles.MR.json @@ -1,11 +1,6 @@ { "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", @@ -25,14 +20,31 @@ ], "description": "Provide measles immunization", "kind": "MedicationRequest", - "code": { + "intent": "proposal", + "productCodeableConcept": { "coding": [ { - "system": "http://snomed.info/sct", - "code": "33879002", - "display": "Administration of vaccine to produce active immunity" + "system": "http://id.who.int/icd/release/11/mms", + "code": "XN186", + "display": "Measles virus" } ] }, - "intent": "proposal" + "doNotPerform": true, + "dynamicValue": [ + { + "path" : "status", + "expression" : { + "language" : "text/cql-expression", + "expression" : "'draft'" + } + }, + { + "path" : "intent", + "expression" : { + "language" : "text/cql-expression", + "expression" : "'proposal'" + } + } + ] } \ No newline at end of file diff --git a/input/resources/activitydefinition/IMMZ.DT.08.Measles.SR.json b/input/resources/activitydefinition/IMMZ.DT.08.Measles.SR.json index ea48d52ff5..099b1c009a 100644 --- a/input/resources/activitydefinition/IMMZ.DT.08.Measles.SR.json +++ b/input/resources/activitydefinition/IMMZ.DT.08.Measles.SR.json @@ -1,11 +1,6 @@ { "resourceType": "ActivityDefinition", "id": "IMMZ.DT.08.Measles.SR", - "meta": { - "profile": [ - "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity" - ] - }, "url": "http://fhir.org/guides/who/smart-immunization/ActivityDefinition/IMMZ.DT.08.Measles.SR", "version": "0.1.0", "title": "IMMZ.DT.08.Measles.SR",