WHO Immunization Implementation Guide
0.1.0 - CI Build
WHO Immunization Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations and changes regularly. See the Directory of published versions
Draft as of 2024-05-30 |
{
"resourceType" : "StructureMap",
"id" : "IMMZD1PolioQRToLM",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioQRToLM<span style=\"color: navy\">" = "</span>IMMZD1PolioQRToLM<span style=\"color: navy\">"\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">" </span><b>alias </b>QResp <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-IMMZD1ClientHistoryPolio.html\" title=\"IMMZ.D1 Capture Client History for Polio\">http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistoryPolio</a><span style=\"color: navy\">" </span><b>alias </b>IMMZD1 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-IMMZD1QRToLM.html\" title=\"IMMZD1QRToLM\">http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1QRToLM</a><span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>PolioQRespToIMMZD1<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qr</span><span style=\"color: navy\"> : </span>QResp, <b>target</b> <span style=\"color: maroon\">immz</span><span style=\"color: navy\"> : </span>IMMZD1<span style=\"color: navy\">)</span><b> extends </b>QRespToIMMZD1<span style=\"color: navy\"> {\r\n</span> qr.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'birth'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immz.birth = <span style=\"color: maroon\">content</span> <i>"SetBirth"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForBirth"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'poliotype'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">coding</span><span style=\"color: navy\"><b> -> </b></span>immz.poliotype = <span style=\"color: maroon\">coding</span> <i>"SetPolioType"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForPolioType"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"processItems"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"url" : "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioQRToLM",
"version" : "0.1.0",
"name" : "IMMZD1PolioQRToLM",
"status" : "draft",
"date" : "2024-05-30T21:26:16+00:00",
"publisher" : "World Health Organization (WHO)",
"contact" : [
{
"name" : "World Health Organization (WHO)",
"telecom" : [
{
"system" : "url",
"value" : "https://www.who.int"
}
]
}
],
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
"mode" : "source",
"alias" : "QResp"
},
{
"url" : "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistoryPolio",
"mode" : "target",
"alias" : "IMMZD1"
}
],
"import" : [
🔗 "http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1QRToLM"
],
"group" : [
{
"name" : "PolioQRespToIMMZD1",
"extends" : "QRespToIMMZD1",
"typeMode" : "none",
"input" : [
{
"name" : "qr",
"type" : "QResp",
"mode" : "source"
},
{
"name" : "immz",
"type" : "IMMZD1",
"mode" : "target"
}
],
"rule" : [
{
"name" : "processItems",
"source" : [
{
"context" : "qr",
"element" : "item",
"variable" : "item"
}
],
"rule" : [
{
"name" : "FirstAnswerForBirth",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'birth'"
}
],
"rule" : [
{
"name" : "SetBirth",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "birth",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForPolioType",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'poliotype'"
}
],
"rule" : [
{
"name" : "SetPolioType",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "coding"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "poliotype",
"transform" : "copy",
"parameter" : [
{
"valueId" : "coding"
}
]
}
]
}
]
}
]
}
]
}
]
}