WHO Clinical Care in Crisis Implementation Guide for Children
0.1.0 - ci-build
WHO Clinical Care in Crisis Implementation Guide for Children - Local Development build (v0.1.0). See the Directory of published versions
Active as of 2023-10-04 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="che.ab.registration.p"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.ab.registration.p" = "che.ab.registration.p"
uses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/patient" alias 'Patient' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson" alias 'RelatedPerson' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/chepatient" alias 'CHE Patient' as produced
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson" alias 'RelatedPerson' as produced
group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
src -> bundle.id = uuid() "id";
src -> bundle.type = 'batch' "type";
src -> bundle.entry as entry then {
src.subject as subject then {
subject.id as idval -> entry.request as request, request.method = 'PUT', request.url = append('/Patient/', idval) "1153aa45";
} "cf5b2513";
src -> entry.resource = create('Patient') as tgt then {
src -> tgt then chepatient(src, tgt) "aeaea6b3";
} "650d46f5";
} "put-chepatient";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {
src -> bundle.entry as entry, entry.request as request, request.method = 'POST', entry.resource = create('RelatedPerson') as tgt then {
src -> tgt then relatedperson(src, tgt) "8f0b9602";
item.answer first as a then {
a.value as val -> request.url = append('/RelatedPerson/', val) "78d8bc69";
} "eec70023";
} "00574b8e";
} "74cc3511";
} "8d1e77b2";
}
group SetOfficalGivenNamechepatient(source src, target tgt) {
src -> tgt.use = 'official' then {
src.item first as item where (linkId = 'CHE.A.DE06') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.family = val "77d1bd4f";
} "e0827d5d";
} "05f39f04";
src.item first as item where (linkId = 'CHE.A.DE04') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.given = val "5d3d44f6";
} "18edd234";
} "56b027a8";
src.item first as item where (linkId = 'CHE.A.DE05') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.given = val "5d3d44f6";
} "18edd234";
} "c5614af6";
} "58cbfc0e";
}
group chepatient(source src : questionnaireResponse, target tgt : Patient) {
src.item first as item where (linkId = 'CHE.A.DE01') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.identifier = create('Identifier') as identifier then {
val -> identifier.value = val, identifier.use = 'official' "id";
} "acheade01";
} "acheade01";
} "902cc63a";
src.item first as item where (linkId = 'CHE.A.DE03') and answer.exists() then {
item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous', ext.value = true "acheade03";
} "b340c8a7";
src.item first as item where (linkId = 'CHE.A.DE06') or (linkId = 'CHE.A.DE04') or ((linkId = 'CHE.A.DE05') and answer.exists()) then {
src -> tgt as target, target.name as name then SetOfficalGivenNamechepatient(src, name) "0417ff44";
} "8f5be461";
src.item first as item where (linkId = 'CHE.A.DE12') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthDateEstimator', ext.value = val "acheade12";
} "acheade12";
} "25a5a38f";
src.item first as item where (linkId = 'CHE.A.DE08') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.birthDate = val "acheade08";
} "acheade08";
} "0906a0f7";
src.item first as item where (linkId = 'CHE.A.DE09') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/hourofbirth', ext.value = val "acheade09";
} "acheade09";
} "7c2b1795";
src.item first as item where (linkId = 'CHE.A.DE16') and answer.exists() then {
item.answer first as a then MapValueSetExtCodecheade16(a, tgt) "e48fa315";
} "842c1fa2";
src.item first as item where (linkId = 'CHE.A.DE48') and answer.exists() then {
item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver', ext.value = create('Reference') as ref, ref.reference = 'relatated-person-id' "acheade48";
} "50e8f3b4";
src.item first as item where (linkId = 'CHE.A.DE31') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/motherVitalStatus', ext.value = val "acheade31";
} "acheade31";
} "29bdd7f8";
}
group SetOfficalGivenNamerelatedperson(source src, target tgt) {
src -> tgt.use = 'official' then {
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE23') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.family = val "77d1bd4f";
} "e0827d5d";
} "96a1f6a1";
} "c5b295d3";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE21') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.given = val "5d3d44f6";
} "18edd234";
} "beeb4341";
} "61b58988";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE22') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.given = val "5d3d44f6";
} "18edd234";
} "5f1009c5";
} "0600eedb";
} "bf3c2d7c";
}
group MapValueSetExtCodecheade24(source src, target tgt) {
src -> tgt then {
src -> tgt.relationship = create('CodeableConcept') as cc, cc.coding = create('Coding') as coding "f8b67f8d";
} "8ba0311a";
}
group relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {
src.item first as item where (linkId = 'CHErelatedpersoncaregiverid') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primary-caregiver', ext.value = create('Reference') as ref, ref.reference = append('/RelatedPerson/', val) "acherelatedpersoncaregiverid";
} "acherelatedpersoncaregiverid";
} "8162f965";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE23') or (linkId = 'CHE.A.DE21') or ((linkId = 'CHE.A.DE22') and answer.exists()) then {
src -> tgt as target, target.name as name then SetOfficalGivenNamerelatedperson(src, name) "8e1455ea";
} "dddc7053";
} "a89a14fb";
src.item first as item where (linkId = 'CHE.A.DE24') and answer.exists() then {
item.answer first as a then MapValueSetExtCodecheade24(a, tgt) "ede36463";
} "387fd192";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {
item.answer first as a -> tgt then {
src.subject as subject -> tgt.patient = subject "patient";
} "arelatedpersonid";
} "d79d72db";
} "88cbce55";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE35') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.telecom = create('ContactPoint') as tel, tel.system = 'phone', tel.use = 'mobile', tel.value = val, tel.rank = 1 "acheade35";
} "acheade35";
} "3c5d318c";
} "9b9bbd1a";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE36') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.telecom = create('ContactPoint') as tel, tel.system = 'phone', tel.use = 'mobile', tel.value = val, tel.rank = 2 "acheade36";
} "acheade36";
} "17b42518";
} "15079f58";
src.item first as itm1 where linkId = 'CHE.A.DE21.1' then {
itm1.item first as item where (linkId = 'CHE.A.DE37') and answer.exists() then {
item.answer first as a then {
a.value as val -> tgt.telecom = create('ContactPoint') as tel, tel.system = 'phone', tel.use = 'mobile', tel.value = val, tel.rank = 3 "acheade37";
} "acheade37";
} "8395c849";
} "36230b88";
}
</pre></div>
</text>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.ab.registration.p"/>
<version value="0.1.0"/>
<name value="che.ab.registration.p"/>
<status value="active"/>
<date value="2023-10-04T12:32:21+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/uv/sdc/StructureDefinition/sdc-questionnaireresponse"/>
<mode value="source"/>
<alias value="'questionnaireResponse'"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
<mode value="target"/>
<alias value="'Bundle'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/patient"/>
<mode value="target"/>
<alias value="'Patient'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson"/>
<mode value="target"/>
<alias value="'RelatedPerson'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/chepatient"/>
<mode value="produced"/>
<alias value="'CHE Patient'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/relatedperson"/>
<mode value="produced"/>
<alias value="'RelatedPerson'"/>
</structure>
<group>
<name value="bundletrans"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="questionnaireResponse"/>
<mode value="source"/>
</input>
<input>
<name value="bundle"/>
<type value="Bundle"/>
<mode value="target"/>
</input>
<rule>
<name value="id"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="type"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="type"/>
<transform value="copy"/>
<parameter>
<valueString value="batch"/>
</parameter>
</target>
</rule>
<rule>
<name value="put-chepatient"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<rule>
<name value="cf5b2513"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<rule>
<name value="1153aa45"/>
<source>
<context value="subject"/>
<element value="id"/>
<variable value="idval"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="request"/>
<variable value="request"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="method"/>
<transform value="copy"/>
<parameter>
<valueString value="PUT"/>
</parameter>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/Patient/"/>
</parameter>
<parameter>
<valueId value="idval"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="650d46f5"/>
<source>
<context value="src"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="Patient"/>
</parameter>
</target>
<rule>
<name value="aeaea6b3"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="chepatient"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
<rule>
<name value="8d1e77b2"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="74cc3511"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'relatedpersonid') and answer.exists()"/>
</source>
<rule>
<name value="00574b8e"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="request"/>
<variable value="request"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="method"/>
<transform value="copy"/>
<parameter>
<valueString value="POST"/>
</parameter>
</target>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="RelatedPerson"/>
</parameter>
</target>
<rule>
<name value="8f0b9602"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="relatedperson"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
<rule>
<name value="eec70023"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="78d8bc69"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/RelatedPerson/"/>
</parameter>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="SetOfficalGivenNamechepatient"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="58cbfc0e"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<rule>
<name value="05f39f04"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE06') and answer.exists()"/>
</source>
<rule>
<name value="e0827d5d"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="77d1bd4f"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="family"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="56b027a8"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE04') and answer.exists()"/>
</source>
<rule>
<name value="18edd234"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="5d3d44f6"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="given"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="c5614af6"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE05') and answer.exists()"/>
</source>
<rule>
<name value="18edd234"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="5d3d44f6"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="given"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="chepatient"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="questionnaireResponse"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="Patient"/>
<mode value="target"/>
</input>
<rule>
<name value="902cc63a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE01') and answer.exists()"/>
</source>
<rule>
<name value="acheade01"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade01"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="identifier"/>
<variable value="identifier"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<rule>
<name value="id"/>
<source>
<context value="val"/>
</source>
<target>
<context value="identifier"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
<target>
<context value="identifier"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="b340c8a7"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE03') and answer.exists()"/>
</source>
<rule>
<name value="acheade03"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/anonymous"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="true"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="8f5be461"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.A.DE06') or (linkId = 'CHE.A.DE04') or ((linkId = 'CHE.A.DE05') and answer.exists())"/>
</source>
<rule>
<name value="0417ff44"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<variable value="target"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<target>
<context value="target"/>
<contextType value="variable"/>
<element value="name"/>
<variable value="name"/>
</target>
<dependent>
<name value="SetOfficalGivenNamechepatient"/>
<variable value="src"/>
<variable value="name"/>
</dependent>
</rule>
</rule>
<rule>
<name value="25a5a38f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE12') and answer.exists()"/>
</source>
<rule>
<name value="acheade12"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade12"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/birthDateEstimator"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="0906a0f7"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE08') and answer.exists()"/>
</source>
<rule>
<name value="acheade08"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade08"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="birthDate"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="7c2b1795"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE09') and answer.exists()"/>
</source>
<rule>
<name value="acheade09"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade09"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/hourofbirth"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="842c1fa2"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE16') and answer.exists()"/>
</source>
<rule>
<name value="e48fa315"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<dependent>
<name value="MapValueSetExtCodecheade16"/>
<variable value="a"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
<rule>
<name value="50e8f3b4"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE48') and answer.exists()"/>
</source>
<rule>
<name value="acheade48"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primarycaregiver"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<variable value="ref"/>
<transform value="create"/>
<parameter>
<valueString value="Reference"/>
</parameter>
</target>
<target>
<context value="ref"/>
<contextType value="variable"/>
<element value="reference"/>
<transform value="copy"/>
<parameter>
<valueString value="relatated-person-id"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="29bdd7f8"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE31') and answer.exists()"/>
</source>
<rule>
<name value="acheade31"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade31"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/Extension/motherVitalStatus"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</group>
<group>
<name value="SetOfficalGivenNamerelatedperson"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="bf3c2d7c"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<rule>
<name value="c5b295d3"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="96a1f6a1"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE23') and answer.exists()"/>
</source>
<rule>
<name value="e0827d5d"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="77d1bd4f"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="family"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="61b58988"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="beeb4341"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE21') and answer.exists()"/>
</source>
<rule>
<name value="18edd234"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="5d3d44f6"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="given"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="0600eedb"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="5f1009c5"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE22') and answer.exists()"/>
</source>
<rule>
<name value="18edd234"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="5d3d44f6"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="given"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="MapValueSetExtCodecheade24"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="8ba0311a"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<rule>
<name value="f8b67f8d"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="relationship"/>
<variable value="cc"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="cc"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
</rule>
</rule>
</group>
<group>
<name value="relatedperson"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="questionnaireResponse"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="RelatedPerson"/>
<mode value="target"/>
</input>
<rule>
<name value="8162f965"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHErelatedpersoncaregiverid') and answer.exists()"/>
</source>
<rule>
<name value="acherelatedpersoncaregiverid"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acherelatedpersoncaregiverid"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="ext"/>
<transform value="create"/>
<parameter>
<valueString value="Extension"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/primary-caregiver"/>
</parameter>
</target>
<target>
<context value="ext"/>
<contextType value="variable"/>
<element value="value"/>
<variable value="ref"/>
<transform value="create"/>
<parameter>
<valueString value="Reference"/>
</parameter>
</target>
<target>
<context value="ref"/>
<contextType value="variable"/>
<element value="reference"/>
<transform value="append"/>
<parameter>
<valueString value="/RelatedPerson/"/>
</parameter>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="a89a14fb"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="dddc7053"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.A.DE23') or (linkId = 'CHE.A.DE21') or ((linkId = 'CHE.A.DE22') and answer.exists())"/>
</source>
<rule>
<name value="8e1455ea"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<variable value="target"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<target>
<context value="target"/>
<contextType value="variable"/>
<element value="name"/>
<variable value="name"/>
</target>
<dependent>
<name value="SetOfficalGivenNamerelatedperson"/>
<variable value="src"/>
<variable value="name"/>
</dependent>
</rule>
</rule>
</rule>
<rule>
<name value="387fd192"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE24') and answer.exists()"/>
</source>
<rule>
<name value="ede36463"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<dependent>
<name value="MapValueSetExtCodecheade24"/>
<variable value="a"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
<rule>
<name value="88cbce55"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="d79d72db"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'relatedpersonid') and answer.exists()"/>
</source>
<rule>
<name value="arelatedpersonid"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="patient"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="9b9bbd1a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="3c5d318c"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE35') and answer.exists()"/>
</source>
<rule>
<name value="acheade35"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade35"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="telecom"/>
<variable value="tel"/>
<transform value="create"/>
<parameter>
<valueString value="ContactPoint"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="phone"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="mobile"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="rank"/>
<transform value="copy"/>
<parameter>
<valueInteger value="1"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="15079f58"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="17b42518"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE36') and answer.exists()"/>
</source>
<rule>
<name value="acheade36"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade36"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="telecom"/>
<variable value="tel"/>
<transform value="create"/>
<parameter>
<valueString value="ContactPoint"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="phone"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="mobile"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="rank"/>
<transform value="copy"/>
<parameter>
<valueInteger value="2"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="36230b88"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'CHE.A.DE21.1'"/>
</source>
<rule>
<name value="8395c849"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.A.DE37') and answer.exists()"/>
</source>
<rule>
<name value="acheade37"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="acheade37"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="telecom"/>
<variable value="tel"/>
<transform value="create"/>
<parameter>
<valueString value="ContactPoint"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="phone"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="mobile"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
<target>
<context value="tel"/>
<contextType value="variable"/>
<element value="rank"/>
<transform value="copy"/>
<parameter>
<valueInteger value="3"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</group>
</StructureMap>
IG © 2023+ WHO. Package smart-ig-che-cds#0.1.0 based on FHIR 4.0.1. Generated 2023-10-04
Links: Table of Contents |
QA Report
| Version History | License