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" : "IMMZD1QRToLM",
"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/IMMZD1QRToLM<span style=\"color: navy\">" = "</span>IMMZD1QRToLM<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-IMMZD1ClientHistory.html\" title=\"IMMZ.D1 Capture Client History for All Antigens\">http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistory</a><span style=\"color: navy\">" </span><b>alias </b>IMMZD1 <b>as </b><b>target</b>\r\n\r\n<b>group </b>QRespToIMMZD1<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><span style=\"color: navy\"> {\r\n</span> qr.subject<b> as </b><span style=\"color: maroon\">patient</span><span style=\"color: navy\"><b> -> </b></span>immz.patient = <span style=\"color: maroon\">patient</span> <i>"SetPatient"</i><span style=\"color: navy\">;</span>\r\n qr.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'type'<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.type = <span style=\"color: maroon\">coding</span> <i>"SetVaccineType"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"AnswerForType"</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 = 'booster'<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.booster = <span style=\"color: maroon\">content</span> <i>"SetBooster"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForBooster"</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 = 'completedPrimarySeries'<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.completedPrimarySeries = <span style=\"color: maroon\">content</span> <i>"SetCompletedPrimarySeries"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForCompletedPrimarySeries"</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 = 'dateSeriesCompleted'<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.dateSeriesCompleted = <span style=\"color: maroon\">content</span> <i>"SetDateSeriesCompleted"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerDateSeriesCompleted"</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 = 'hivStatus'<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.hivStatus = <span style=\"color: maroon\">coding</span> <i>"SetHIVStatus"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForHIVStatus"</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 = 'pretermBirth'<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.pretermBirth = <span style=\"color: maroon\">content</span> <i>"SetPretermBirth"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForPretermBirth"</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 = 'immunocompromised'<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.immunocompromised = <span style=\"color: maroon\">content</span> <i>"SetImmunocompromised"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForImmunocompromised"</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 = 'onART'<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.onART = <span style=\"color: maroon\">content</span> <i>"SetOnART"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForOnART"</i><span style=\"color: navy\">;</span>\r\n item<b> as </b><span style=\"color: maroon\">history</span><b> where </b>item.linkId = 'vaccineHistory'<span style=\"color: navy\"><b> -> </b></span>immz.vaccineHistory<b> as </b><span style=\"color: maroon\">vaccine</span><b> then</b><span style=\"color: navy\"> {\r\n</span> history.item<b> as </b><span style=\"color: maroon\">entry</span><b> then</b><span style=\"color: navy\"> {\r\n</span> entry.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>entry.linkId = 'vaccineType'<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>vaccine.vaccineType = <span style=\"color: maroon\">coding</span> <i>"SetVaccineType"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"AnswerForVaccineType"</i><span style=\"color: navy\">;</span>\r\n entry.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>entry.linkId = 'vaccineDate'<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>vaccine.vaccineDate = <span style=\"color: maroon\">content</span> <i>"SetVaccineDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"AnswerForVaccineDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"HistoryLoop"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"ForVaccineHistory"</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/IMMZD1QRToLM",
"version" : "0.1.0",
"name" : "IMMZD1QRToLM",
"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/IMMZD1ClientHistory",
"mode" : "target",
"alias" : "IMMZD1"
}
],
"group" : [
{
"name" : "QRespToIMMZD1",
"typeMode" : "none",
"input" : [
{
"name" : "qr",
"type" : "QResp",
"mode" : "source"
},
{
"name" : "immz",
"type" : "IMMZD1",
"mode" : "target"
}
],
"rule" : [
{
"name" : "SetPatient",
"source" : [
{
"context" : "qr",
"element" : "subject",
"variable" : "patient"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "patient",
"transform" : "copy",
"parameter" : [
{
"valueId" : "patient"
}
]
}
]
},
{
"name" : "processItems",
"source" : [
{
"context" : "qr",
"element" : "item",
"variable" : "item"
}
],
"rule" : [
{
"name" : "AnswerForType",
"source" : [
{
"context" : "item",
"element" : "answer",
"variable" : "answer",
"condition" : "item.linkId = 'type'"
}
],
"rule" : [
{
"name" : "SetVaccineType",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "coding"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "type",
"transform" : "copy",
"parameter" : [
{
"valueId" : "coding"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForBooster",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'booster'"
}
],
"rule" : [
{
"name" : "SetBooster",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "booster",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForCompletedPrimarySeries",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'completedPrimarySeries'"
}
],
"rule" : [
{
"name" : "SetCompletedPrimarySeries",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "completedPrimarySeries",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerDateSeriesCompleted",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'dateSeriesCompleted'"
}
],
"rule" : [
{
"name" : "SetDateSeriesCompleted",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "dateSeriesCompleted",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForHIVStatus",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'hivStatus'"
}
],
"rule" : [
{
"name" : "SetHIVStatus",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "coding"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "hivStatus",
"transform" : "copy",
"parameter" : [
{
"valueId" : "coding"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForPretermBirth",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'pretermBirth'"
}
],
"rule" : [
{
"name" : "SetPretermBirth",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "pretermBirth",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForImmunocompromised",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'immunocompromised'"
}
],
"rule" : [
{
"name" : "SetImmunocompromised",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "immunocompromised",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForOnART",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'onART'"
}
],
"rule" : [
{
"name" : "SetOnART",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "onART",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "ForVaccineHistory",
"source" : [
{
"context" : "item",
"variable" : "history",
"condition" : "item.linkId = 'vaccineHistory'"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "vaccineHistory",
"variable" : "vaccine"
}
],
"rule" : [
{
"name" : "HistoryLoop",
"source" : [
{
"context" : "history",
"element" : "item",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "AnswerForVaccineType",
"source" : [
{
"context" : "entry",
"element" : "answer",
"variable" : "answer",
"condition" : "entry.linkId = 'vaccineType'"
}
],
"rule" : [
{
"name" : "SetVaccineType",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "coding"
}
],
"target" : [
{
"context" : "vaccine",
"contextType" : "variable",
"element" : "vaccineType",
"transform" : "copy",
"parameter" : [
{
"valueId" : "coding"
}
]
}
]
}
]
},
{
"name" : "AnswerForVaccineDate",
"source" : [
{
"context" : "entry",
"element" : "answer",
"variable" : "answer",
"condition" : "entry.linkId = 'vaccineDate'"
}
],
"rule" : [
{
"name" : "SetVaccineDate",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "vaccine",
"contextType" : "variable",
"element" : "vaccineDate",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}