SMART ICVP
0.1.0 - ci-build
SMART ICVP, published by 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-icvp/tree/main and changes regularly. See the Directory of published versions
Draft as of 2024-11-20 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="DVCQRtoDVCLM"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap DVCQRtoDVCLM</b></p><a name="DVCQRtoDVCLM"> </a><a name="hcDVCQRtoDVCLM"> </a><a name="DVCQRtoDVCLM-en-US"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://smart.who.int/icvp/StructureMap/DVCQRtoDVCLM<span style="color: navy">" = "</span>DVCQRtoDVCLM<span style="color: navy">"
</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>QuestionnaireResponse <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-ModelDVC.html" title="DVC">http://smart.who.int/icvp/StructureDefinition/ModelDVC</a><span style="color: navy">" </span><b>alias </b>DVCLogicalModel <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-ModelVaccineDetails.html" title="DVC - Vaccine Details">http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails</a><span style="color: navy">" </span><b>alias </b>ModelVaccineDetails <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-DVCPayload.html" title="DVC HCERT Payload">http://smart.who.int/icvp/StructureDefinition/DVCPayload</a><span style="color: navy">" </span><b>alias </b>DVCClaim <b>as </b><b>target</b>
<b>group </b>DVCQRtoDVCLM<span style="color: navy">(</span><b>source</b> <span style="color: maroon">qr</span><span style="color: navy"> : </span>QuestionnaireResponse, <b>target</b> <span style="color: maroon">lm</span><span style="color: navy"> : </span>DVCLogicalModel<span style="color: navy">)</span><span style="color: navy"> {
</span> qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('name')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">name</span><span style="color: navy"><b> -> </b></span>lm.name = <span style="color: maroon">name</span> <i>"rule1"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule1a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule1b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('dob')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">dob</span><span style="color: navy"><b> -> </b></span>lm.dob = <span style="color: maroon">dob</span> <i>"rule2"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule2a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule2b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('sex')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">sex</span><span style="color: navy"><b> -> </b></span>lm.sex = <span style="color: maroon">sex</span> <i>"rule3"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule3a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule3b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('nationality')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">nationality</span><span style="color: navy"><b> -> </b></span>lm.nationality = <span style="color: maroon">nationality</span> <i>"rule4"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule4a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule4b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('nid')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">nid</span><span style="color: navy"><b> -> </b></span>lm.nid = <span style="color: maroon">nid</span> <i>"rule5"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule5a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule5b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('guardian')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">guardian</span><span style="color: navy"><b> -> </b></span>lm.guardian = <span style="color: maroon">guardian</span> <i>"rule6"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule6a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule6b"</i><span style="color: navy">;</span>
qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineDetails')<span style="color: navy"><b> -> </b></span>lm.vaccineDetails<b> as </b><span style="color: maroon">v</span><b> then </b>mapVaccineDetails<span style="color: navy">(</span><span style="color: maroon">item</span><span style="color: navy">, </span><span style="color: maroon">v</span><span style="color: navy">)</span> <i>"rule7"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>mapVaccineDetails<span style="color: navy">(</span><b>source</b> <span style="color: maroon">s</span><span style="color: navy"> : </span>BackboneElement, <b>target</b> <span style="color: maroon">v</span><span style="color: navy"> : </span>ModelVaccineDetails<span style="color: navy">)</span><span style="color: navy"> {
</span> s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('doseNumber')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">doseNumber</span><span style="color: navy"><b> -> </b></span>v.doseNumber = <span style="color: maroon">doseNumber</span> <i>"rule7"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule7a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule7b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('disease')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">disease</span><span style="color: navy"><b> -> </b></span>v.disease = <span style="color: maroon">disease</span> <i>"rule8"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule8a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule8b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineClassification')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">vaccine</span><span style="color: navy"><b> -> </b></span>v.vaccineClassification = <span style="color: maroon">vaccine</span> <i>"rule9"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule9a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule9b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineTradeItem')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">vaccine</span><span style="color: navy"><b> -> </b></span>v.vaccineTradeItem = <span style="color: maroon">vaccine</span> <i>"rule10"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule10a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule10b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('date')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">date</span><span style="color: navy"><b> -> </b></span>v.date = <span style="color: maroon">date</span> <i>"rule11"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule11a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule11b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('clinicianName')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">clinicianName</span><span style="color: navy"><b> -> </b></span>v.clinicianName = <span style="color: maroon">clinicianName</span> <i>"rule12"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule12a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule12b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('manufacturerId')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">mid</span><span style="color: navy"><b> -> </b></span>v.manufacturerId = <span style="color: maroon">mid</span> <i>"rule13"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule13a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule13b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('manufacturer')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">manufacturer</span><span style="color: navy"><b> -> </b></span>v.manufacturer = <span style="color: maroon">manufacturer</span> <i>"rule14"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule14a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule14b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('batchNo')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.value<b> as </b><span style="color: maroon">batchNo</span><span style="color: navy"><b> -> </b></span>v.batchNo = <span style="color: maroon">batchNo</span> <i>"rule15"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule15a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule15b"</i><span style="color: navy">;</span>
s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('validityPeriod')<b> then</b><span style="color: navy"> {
</span> item<span style="color: navy"><b> -> </b></span>v.validityPeriod<b> as </b><span style="color: maroon">period</span><b> then</b><span style="color: navy"> {
</span> item.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('startDate')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.validityPeriod<b> as </b><span style="color: maroon">start</span><span style="color: navy"><b> -> </b></span>period.start = <span style="color: maroon">start</span> <i>"rule16"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule16a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule16b"</i><span style="color: navy">;</span>
item.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('endDate')<b> then</b><span style="color: navy"> {
</span> item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span> answer.validityPeriod<b> as </b><span style="color: maroon">end</span><span style="color: navy"><b> -> </b></span>period.end = <span style="color: maroon">end</span> <i>"rule17"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule17a"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule17b"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule18"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"rule19"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url value="http://smart.who.int/icvp/StructureMap/DVCQRtoDVCLM"/>
<version value="0.1.0"/>
<name value="DVCQRtoDVCLM"/>
<status value="draft"/>
<date value="2024-11-20T07:32:05+00:00"/>
<publisher value="WHO"/>
<contact>
<name value="WHO"/>
<telecom>
<system value="url"/>
<value value="http://who.int"/>
</telecom>
</contact>
<structure>
<url
value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/>
<mode value="source"/>
<alias value="QuestionnaireResponse"/>
</structure>
<structure>
<url value="http://smart.who.int/icvp/StructureDefinition/ModelDVC"/>
<mode value="target"/>
<alias value="DVCLogicalModel"/>
</structure>
<structure>
<url
value="http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails"/>
<mode value="target"/>
<alias value="ModelVaccineDetails"/>
</structure>
<structure>
<url value="http://smart.who.int/icvp/StructureDefinition/DVCPayload"/>
<mode value="target"/>
<alias value="DVCClaim"/>
</structure>
<group>
<name value="DVCQRtoDVCLM"/>
<typeMode value="none"/>
<input>
<name value="qr"/>
<type value="QuestionnaireResponse"/>
<mode value="source"/>
</input>
<input>
<name value="lm"/>
<type value="DVCLogicalModel"/>
<mode value="target"/>
</input>
<rule>
<name value="rule1b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('name')"/>
</source>
<rule>
<name value="rule1a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule1"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="name"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="name"/>
<transform value="copy"/>
<parameter>
<valueId value="name"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule2b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('dob')"/>
</source>
<rule>
<name value="rule2a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule2"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="dob"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="dob"/>
<transform value="copy"/>
<parameter>
<valueId value="dob"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule3b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('sex')"/>
</source>
<rule>
<name value="rule3a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule3"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="sex"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="sex"/>
<transform value="copy"/>
<parameter>
<valueId value="sex"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule4b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('nationality')"/>
</source>
<rule>
<name value="rule4a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule4"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="nationality"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="nationality"/>
<transform value="copy"/>
<parameter>
<valueId value="nationality"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule5b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('nid')"/>
</source>
<rule>
<name value="rule5a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule5"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="nid"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="nid"/>
<transform value="copy"/>
<parameter>
<valueId value="nid"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule6b"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('guardian')"/>
</source>
<rule>
<name value="rule6a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule6"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="guardian"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="guardian"/>
<transform value="copy"/>
<parameter>
<valueId value="guardian"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule7"/>
<source>
<context value="qr"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('vaccineDetails')"/>
</source>
<target>
<context value="lm"/>
<contextType value="variable"/>
<element value="vaccineDetails"/>
<variable value="v"/>
</target>
<dependent>
<name value="mapVaccineDetails"/>
<variable value="item"/>
<variable value="v"/>
</dependent>
</rule>
</group>
<group>
<name value="mapVaccineDetails"/>
<typeMode value="none"/>
<input>
<name value="s"/>
<type value="BackboneElement"/>
<mode value="source"/>
</input>
<input>
<name value="v"/>
<type value="ModelVaccineDetails"/>
<mode value="target"/>
</input>
<rule>
<name value="rule7b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('doseNumber')"/>
</source>
<rule>
<name value="rule7a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule7"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="doseNumber"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="doseNumber"/>
<transform value="copy"/>
<parameter>
<valueId value="doseNumber"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule8b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('disease')"/>
</source>
<rule>
<name value="rule8a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule8"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="disease"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="disease"/>
<transform value="copy"/>
<parameter>
<valueId value="disease"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule9b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('vaccineClassification')"/>
</source>
<rule>
<name value="rule9a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule9"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="vaccine"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="vaccineClassification"/>
<transform value="copy"/>
<parameter>
<valueId value="vaccine"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule10b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('vaccineTradeItem')"/>
</source>
<rule>
<name value="rule10a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule10"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="vaccine"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="vaccineTradeItem"/>
<transform value="copy"/>
<parameter>
<valueId value="vaccine"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule11b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('date')"/>
</source>
<rule>
<name value="rule11a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule11"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="date"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="date"/>
<transform value="copy"/>
<parameter>
<valueId value="date"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule12b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('clinicianName')"/>
</source>
<rule>
<name value="rule12a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule12"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="clinicianName"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="clinicianName"/>
<transform value="copy"/>
<parameter>
<valueId value="clinicianName"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule13b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('manufacturerId')"/>
</source>
<rule>
<name value="rule13a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule13"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="mid"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="manufacturerId"/>
<transform value="copy"/>
<parameter>
<valueId value="mid"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule14b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('manufacturer')"/>
</source>
<rule>
<name value="rule14a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule14"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="manufacturer"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="manufacturer"/>
<transform value="copy"/>
<parameter>
<valueId value="manufacturer"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule15b"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('batchNo')"/>
</source>
<rule>
<name value="rule15a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule15"/>
<source>
<context value="answer"/>
<element value="value"/>
<variable value="batchNo"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="batchNo"/>
<transform value="copy"/>
<parameter>
<valueId value="batchNo"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule19"/>
<source>
<context value="s"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('validityPeriod')"/>
</source>
<rule>
<name value="rule18"/>
<source>
<context value="item"/>
</source>
<target>
<context value="v"/>
<contextType value="variable"/>
<element value="validityPeriod"/>
<variable value="period"/>
</target>
<rule>
<name value="rule16b"/>
<source>
<context value="item"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('startDate')"/>
</source>
<rule>
<name value="rule16a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule16"/>
<source>
<context value="answer"/>
<element value="validityPeriod"/>
<variable value="start"/>
</source>
<target>
<context value="period"/>
<contextType value="variable"/>
<element value="start"/>
<transform value="copy"/>
<parameter>
<valueId value="start"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="rule17b"/>
<source>
<context value="item"/>
<element value="item"/>
<variable value="item"/>
<condition value="linkId.value in ('endDate')"/>
</source>
<rule>
<name value="rule17a"/>
<source>
<context value="item"/>
<element value="answer"/>
<variable value="answer"/>
</source>
<rule>
<name value="rule17"/>
<source>
<context value="answer"/>
<element value="validityPeriod"/>
<variable value="end"/>
</source>
<target>
<context value="period"/>
<contextType value="variable"/>
<element value="end"/>
<transform value="copy"/>
<parameter>
<valueId value="end"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</rule>
</group>
</StructureMap>