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

Add immunization measles workflow test #2276

Closed
wants to merge 5 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ class IGInputStreamStructureRepository(
}

override fun <B : IBaseBundle, T : IBaseResource> search(
bundleType: Class<B>,
bundleType: Class<B>?,
resourceType: Class<T>,
searchParameters: MutableMap<String, List<IQueryParameterType>>,
headers: Map<String, String>,
searchParameters: MutableMap<String, List<IQueryParameterType>>?,
headers: Map<String, String>?,
): B {
val builder = BundleBuilder(fhirContext)
val resourceIdMap = readLocation(resourceType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ open class Loadable {
val list =
javaClass.classLoader?.getResource(name + "/contents.txt")
?: ClassLoader.getSystemResource(name + "/contents.txt")
retList.addAll(load(list.openStream()).split("\n"))
if (list != null) {
retList.addAll(load(list.openStream()).split("\n"))
}

}

return retList
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"resourceType" : "ActivityDefinition",
"id" : "IMMZD2DTMeaslesCIMR",
"meta" : {
"profile" : ["http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity"]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ActivityDefinition</b><a name=\"IMMZD2DTMeaslesCIMR\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource ActivityDefinition &quot;IMMZD2DTMeaslesCIMR&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-immunizationactivity.html\">CPG Immunization Activity</a></p></div><p><b>CPG Knowledge Capability Extension</b>: computable</p><p><b>url</b>: <code>http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesCIMR</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: IMMZD2DTMeaslesContraindication</p><p><b>title</b>: IMMZ.D2.DT.Measles.Contraindication</p><p><b>status</b>: draft</p><p><b>experimental</b>: false</p><p><b>date</b>: 2023-10-03</p><p><b>publisher</b>: World Health Organization (WHO)</p><p><b>contact</b>: World Health Organization (WHO): <a href=\"https://www.who.int\">https://www.who.int</a></p><p><b>description</b>: Provide measles immunization</p><p><b>jurisdiction</b>: Global (Whole world) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><p><b>library</b>: <a href=\"Library-IMMZD2DTMeasles.html\">IMMZD2DTMeasles</a></p><p><b>kind</b>: MedicationRequest</p><p><b>profile</b>: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-immunizationrequest.html\">CPG Immunization Request</a></p><p><b>intent</b>: proposal</p><p><b>doNotPerform</b>: true</p><p><b>product</b>: Measles vaccines <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (icd-11#XM28X5)</span></p><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: id</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>Draft Medication Request ID for MCV dose</td><td>text/cql-identifier</td><td>Draft Medication Request ID for MCV dose</td></tr></table></blockquote></div>"
},
"extension" : [{
"url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
"valueCode" : "computable"
}],
"url" : "http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesCIMR",
"version" : "0.1.0",
"name" : "IMMZD2DTMeaslesContraindication",
"title" : "IMMZ.D2.DT.Measles.Contraindication",
"status" : "draft",
"experimental" : false,
"date" : "2023-10-03",
"publisher" : "World Health Organization (WHO)",
"contact" : [{
"name" : "World Health Organization (WHO)",
"telecom" : [{
"system" : "url",
"value" : "https://www.who.int"
}]
}],
"description" : "Provide measles immunization",
"jurisdiction" : [{
"coding" : [{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}]
}],
"library" : ["http://smart.who.int/ig/smart-immunizations/Library/IMMZD2DTMeasles"],
"kind" : "MedicationRequest",
"profile" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationrequest",
"intent" : "proposal",
"doNotPerform" : true,
"productCodeableConcept" : {
"coding" : [{
"system" : "http://hl7.org/fhir/sid/icd-11",
"code" : "XM28X5",
"display" : "Measles vaccines"
}]
},
"dynamicValue" : [{
"path" : "id",
"expression" : {
"description" : "Draft Medication Request ID for MCV dose",
"language" : "text/cql-identifier",
"expression" : "Draft Medication Request ID for MCV dose"
}
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"resourceType" : "ActivityDefinition",
"id" : "IMMZD2DTMeaslesEval",
"meta" : {
"profile" : ["http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-servicerequestactivity"]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ActivityDefinition</b><a name=\"IMMZD2DTMeaslesEval\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource ActivityDefinition &quot;IMMZD2DTMeaslesEval&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-servicerequestactivity.html\">CPG Service Request Activity</a></p></div><p><b>CPG Knowledge Capability Extension</b>: computable</p><p><b>url</b>: <code>http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesEval</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: IMMZD2DTMeaslesContraindicationEvaluation</p><p><b>title</b>: IMMZ.D2.DT.Measles.Eval</p><p><b>status</b>: draft</p><p><b>experimental</b>: false</p><p><b>date</b>: 2023-10-03</p><p><b>publisher</b>: World Health Organization (WHO)</p><p><b>contact</b>: World Health Organization (WHO): <a href=\"https://www.who.int\">https://www.who.int</a></p><p><b>description</b>: Provide measles immunization</p><p><b>jurisdiction</b>: Global (Whole world) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><p><b>library</b>: <a href=\"Library-IMMZD2DTMeasles.html\">IMMZD2DTMeasles</a></p><p><b>kind</b>: ServiceRequest</p><p><b>profile</b>: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-servicerequest.html\">CPG Service Request</a></p><p><b>intent</b>: proposal</p><p><b>doNotPerform</b>: false</p><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: code.coding</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>Measles Code</td><td>text/cql</td><td>Code { system: 'http://hl7.org/fhir/sid/icd-11', code: 'XM28X5' }</td></tr></table></blockquote></div>"
},
"extension" : [{
"url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
"valueCode" : "computable"
}],
"url" : "http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesEval",
"version" : "0.1.0",
"name" : "IMMZD2DTMeaslesContraindicationEvaluation",
"title" : "IMMZ.D2.DT.Measles.Eval",
"status" : "draft",
"experimental" : false,
"date" : "2023-10-03",
"publisher" : "World Health Organization (WHO)",
"contact" : [{
"name" : "World Health Organization (WHO)",
"telecom" : [{
"system" : "url",
"value" : "https://www.who.int"
}]
}],
"description" : "Provide measles immunization",
"jurisdiction" : [{
"coding" : [{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}]
}],
"library" : ["http://smart.who.int/ig/smart-immunizations/Library/IMMZD2DTMeasles"],
"kind" : "ServiceRequest",
"profile" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-servicerequest",
"intent" : "proposal",
"doNotPerform" : false,
"dynamicValue" : [{
"path" : "code.coding",
"expression" : {
"description" : "Measles Code",
"language" : "text/cql",
"expression" : "Code { system: 'http://hl7.org/fhir/sid/icd-11', code: 'XM28X5' }"
}
}]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"resourceType" : "ActivityDefinition",
"id" : "IMMZD2DTMeaslesMR",
"meta" : {
"profile" : ["http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationactivity"]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: ActivityDefinition</b><a name=\"IMMZD2DTMeaslesMR\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource ActivityDefinition &quot;IMMZD2DTMeaslesMR&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-immunizationactivity.html\">CPG Immunization Activity</a></p></div><p><b>CPG Knowledge Capability Extension</b>: computable</p><p><b>url</b>: <code>http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesMR</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: IMMZD2DTMeaslesMedicationRequest</p><p><b>title</b>: IMMZ.D2.DT.Measles.MR</p><p><b>status</b>: draft</p><p><b>experimental</b>: false</p><p><b>date</b>: 2023-10-03</p><p><b>publisher</b>: World Health Organization (WHO)</p><p><b>contact</b>: World Health Organization (WHO): <a href=\"https://www.who.int\">https://www.who.int</a></p><p><b>description</b>: Provide measles immunization</p><p><b>jurisdiction</b>: Global (Whole world) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><p><b>library</b>: <a href=\"Library-IMMZD2DTMeasles.html\">IMMZD2DTMeasles</a></p><p><b>kind</b>: MedicationRequest</p><p><b>profile</b>: <a href=\"https://build.fhir.org/ig/HL7/cqf-recommendations//StructureDefinition-cpg-immunizationrequest.html\">CPG Immunization Request</a></p><p><b>intent</b>: proposal</p><p><b>doNotPerform</b>: false</p><p><b>product</b>: Measles vaccines <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (icd-11#XM28X5)</span></p><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: status</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql</td><td>'draft'</td></tr></table></blockquote><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: intent</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql</td><td>'proposal'</td></tr></table></blockquote><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: dispenseRequest.validityPeriod.start</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>Due date of the dose</td><td>text/cql-identifier</td><td>Schedule Due Date for MCV dose</td></tr></table></blockquote><blockquote><p><b>dynamicValue</b></p><p><b>path</b>: dispenseRequest.validityPeriod.end</p><h3>Expressions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>Expiration date for MCV dose</td><td>text/cql-identifier</td><td>Expiration Date for MCV dose</td></tr></table></blockquote></div>"
},
"extension" : [{
"url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
"valueCode" : "computable"
}],
"url" : "http://smart.who.int/ig/smart-immunizations/ActivityDefinition/IMMZD2DTMeaslesMR",
"version" : "0.1.0",
"name" : "IMMZD2DTMeaslesMedicationRequest",
"title" : "IMMZ.D2.DT.Measles.MR",
"status" : "draft",
"experimental" : false,
"date" : "2023-10-03",
"publisher" : "World Health Organization (WHO)",
"contact" : [{
"name" : "World Health Organization (WHO)",
"telecom" : [{
"system" : "url",
"value" : "https://www.who.int"
}]
}],
"description" : "Provide measles immunization",
"jurisdiction" : [{
"coding" : [{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}]
}],
"library" : ["http://smart.who.int/ig/smart-immunizations/Library/IMMZD2DTMeasles"],
"kind" : "MedicationRequest",
"profile" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-immunizationrequest",
"intent" : "proposal",
"doNotPerform" : false,
"productCodeableConcept" : {
"coding" : [{
"system" : "http://hl7.org/fhir/sid/icd-11",
"code" : "XM28X5",
"display" : "Measles vaccines"
}]
},
"dynamicValue" : [{
"path" : "status",
"expression" : {
"language" : "text/cql",
"expression" : "'draft'"
}
},
{
"path" : "intent",
"expression" : {
"language" : "text/cql",
"expression" : "'proposal'"
}
},
{
"path" : "dispenseRequest.validityPeriod",
"expression" : {
"description" : "Period for MCV dose",
"language" : "text/cql-identifier",
"expression" : "Schedule Due Date for MCV dose"
}
}]
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Loading