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.b18-21.symptoms.2.m.m"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b18-21.symptoms.2.m.m" = "che.b18-21.symptoms.2.m.m"
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/observation" alias 'Observation' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" alias 'CHE Observation' as produced
group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
src -> bundle.id = uuid() "id";
src -> bundle.type = 'batch' "type";
src.item first as item where (linkId = 'CHE.B18S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb18s1de01(src, tgt) "5e49130c";
} "eea1a6cc";
} "7f0a73b3";
} "01ea87d4";
src.item first as item where (linkId = 'CHE.B18S1.DE02') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb18s1de02(src, tgt) "20dbebf1";
} "2d4075a6";
} "7352763e";
} "c5a4deac";
src.item first as item where (linkId = 'CHE.B20S1.DE01') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb20s1de01(src, tgt) "05e882b8";
} "36be9489";
} "e25ec330";
} "cb79e0f5";
src.item first as item where (linkId = 'CHE.B21S1.DE06') and answer.exists() then {
src -> bundle.entry as entry then {
src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";
src -> entry.resource = create('Observation') as tgt then {
src -> tgt then cheobservationcheb21s1de06(src, tgt) "a66e1c8d";
} "4e2a4718";
} "6ff871d2";
} "1f7a68c1";
}
group cheobservationcheb18s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-cheb18s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B18S1.DE01' "code-cheb18s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B18S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb18s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb18s1de01";
} "bdab9370";
} "8dd08e5d";
}
group cheobservationcheb18s1de02(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-cheb18s1de02";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B18S1.DE02' "code-cheb18s1de02";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B18S1.DE02') and answer.exists() then {
item.answer first as a then {
a.value as val then {
val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";
val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";
} "4ca9082e";
} "7c587a4b";
} "f6147731";
}
group cheobservationcheb20s1de01(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-cheb20s1de01";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B20S1.DE01' "code-cheb20s1de01";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B20S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb20s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb20s1de01";
} "bdab9370";
} "fea7dc7e";
}
group cheobservationcheb21s1de06(source src, target tgt) {
src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-cheb21s1de06";
src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', coding.code = 'CHE.B21S1.DE06' "code-cheb21s1de06";
src.item as itemtimestamp where linkId = 'timestamp' then {
itemtimestamp.answer first as atimestamp then {
atimestamp.value as val -> tgt.issued = val "5af77f2c";
} "7f22f29f";
} "aae7a11d";
src.subject as subject -> tgt.subject = subject "patient";
src.item first as item where (linkId = 'CHE.B21S1.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s1de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s1de06";
} "bdab9370";
} "7b9a75da";
}
</pre></div>
</text>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b18-21.symptoms.2.m.m"/>
<version value="0.1.0"/>
<name value="che.b18-21.symptoms.2.m.m"/>
<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/observation"/>
<mode value="target"/>
<alias value="'Observation'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
<mode value="produced"/>
<alias value="'CHE Observation'"/>
</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="01ea87d4"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="7f0a73b3"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<rule>
<name value="b50ac4c5"/>
<source>
<context value="src"/>
</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="POST"/>
</parameter>
</target>
<target>
<contextType value="variable"/>
<variable value="uuid"/>
<transform value="uuid"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/Observation/"/>
</parameter>
<parameter>
<valueId value="uuid"/>
</parameter>
</target>
</rule>
<rule>
<name value="eea1a6cc"/>
<source>
<context value="src"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="5e49130c"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="c5a4deac"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="7352763e"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<rule>
<name value="b50ac4c5"/>
<source>
<context value="src"/>
</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="POST"/>
</parameter>
</target>
<target>
<contextType value="variable"/>
<variable value="uuid"/>
<transform value="uuid"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/Observation/"/>
</parameter>
<parameter>
<valueId value="uuid"/>
</parameter>
</target>
</rule>
<rule>
<name value="2d4075a6"/>
<source>
<context value="src"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="20dbebf1"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="cb79e0f5"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="e25ec330"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<rule>
<name value="b50ac4c5"/>
<source>
<context value="src"/>
</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="POST"/>
</parameter>
</target>
<target>
<contextType value="variable"/>
<variable value="uuid"/>
<transform value="uuid"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/Observation/"/>
</parameter>
<parameter>
<valueId value="uuid"/>
</parameter>
</target>
</rule>
<rule>
<name value="36be9489"/>
<source>
<context value="src"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="05e882b8"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb20s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="1f7a68c1"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S1.DE06') and answer.exists()"/>
</source>
<rule>
<name value="6ff871d2"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<rule>
<name value="b50ac4c5"/>
<source>
<context value="src"/>
</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="POST"/>
</parameter>
</target>
<target>
<contextType value="variable"/>
<variable value="uuid"/>
<transform value="uuid"/>
</target>
<target>
<context value="request"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="append"/>
<parameter>
<valueString value="/Observation/"/>
</parameter>
<parameter>
<valueId value="uuid"/>
</parameter>
</target>
</rule>
<rule>
<name value="4e2a4718"/>
<source>
<context value="src"/>
</source>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="tgt"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="a66e1c8d"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s1de06"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb18s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s1de01"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="identifier"/>
<variable value="CodeID"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/namingsystem-identifier-type"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueString value="uuid"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="35bc6b82"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="encounter"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="encounter"/>
<transform value="copy"/>
<parameter>
<valueId value="encounter"/>
</parameter>
</target>
</rule>
<rule>
<name value="code-cheb18s1de01"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="meta"/>
<variable value="newMeta"/>
<transform value="create"/>
<parameter>
<valueString value="Meta"/>
</parameter>
</target>
<target>
<context value="newMeta"/>
<contextType value="variable"/>
<element value="profile"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="concept"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="concept"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="CHE.B18S1.DE01"/>
</parameter>
</target>
</rule>
<rule>
<name value="aae7a11d"/>
<source>
<context value="src"/>
<element value="item"/>
<variable value="itemtimestamp"/>
<condition value="linkId = 'timestamp'"/>
</source>
<rule>
<name value="7f22f29f"/>
<source>
<context value="itemtimestamp"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="atimestamp"/>
</source>
<rule>
<name value="5af77f2c"/>
<source>
<context value="atimestamp"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="issued"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
</rule>
<rule>
<name value="8dd08e5d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="bdab9370"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="final-cheb18s1de01"/>
<source>
<context value="a"/>
<condition value="a.value = true"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="final"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="true"/>
</parameter>
</target>
</rule>
<rule>
<name value="notfound-cheb18s1de01"/>
<source>
<context value="a"/>
<condition value="a.value = false"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="cancelled"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="false"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb18s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s1de02"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="identifier"/>
<variable value="CodeID"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/namingsystem-identifier-type"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueString value="uuid"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="35bc6b82"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="encounter"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="encounter"/>
<transform value="copy"/>
<parameter>
<valueId value="encounter"/>
</parameter>
</target>
</rule>
<rule>
<name value="code-cheb18s1de02"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="meta"/>
<variable value="newMeta"/>
<transform value="create"/>
<parameter>
<valueString value="Meta"/>
</parameter>
</target>
<target>
<context value="newMeta"/>
<contextType value="variable"/>
<element value="profile"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="concept"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="concept"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="CHE.B18S1.DE02"/>
</parameter>
</target>
</rule>
<rule>
<name value="aae7a11d"/>
<source>
<context value="src"/>
<element value="item"/>
<variable value="itemtimestamp"/>
<condition value="linkId = 'timestamp'"/>
</source>
<rule>
<name value="7f22f29f"/>
<source>
<context value="itemtimestamp"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="atimestamp"/>
</source>
<rule>
<name value="5af77f2c"/>
<source>
<context value="atimestamp"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="issued"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
</rule>
<rule>
<name value="f6147731"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="7c587a4b"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="4ca9082e"/>
<source>
<context value="a"/>
<element value="value"/>
<variable value="val"/>
</source>
<rule>
<name value="8ab1d7a5"/>
<source>
<context value="val"/>
<condition value="val.code = 'none'"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="cancelled"/>
</parameter>
</target>
</rule>
<rule>
<name value="a1050460"/>
<source>
<context value="val"/>
<condition value="val.code != 'none'"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<variable value="cc"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="cc"/>
<contextType value="variable"/>
<element value="coding"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="final"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb20s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb20s1de01"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="identifier"/>
<variable value="CodeID"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/namingsystem-identifier-type"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueString value="uuid"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="35bc6b82"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="encounter"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="encounter"/>
<transform value="copy"/>
<parameter>
<valueId value="encounter"/>
</parameter>
</target>
</rule>
<rule>
<name value="code-cheb20s1de01"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="meta"/>
<variable value="newMeta"/>
<transform value="create"/>
<parameter>
<valueString value="Meta"/>
</parameter>
</target>
<target>
<context value="newMeta"/>
<contextType value="variable"/>
<element value="profile"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="concept"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="concept"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="CHE.B20S1.DE01"/>
</parameter>
</target>
</rule>
<rule>
<name value="aae7a11d"/>
<source>
<context value="src"/>
<element value="item"/>
<variable value="itemtimestamp"/>
<condition value="linkId = 'timestamp'"/>
</source>
<rule>
<name value="7f22f29f"/>
<source>
<context value="itemtimestamp"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="atimestamp"/>
</source>
<rule>
<name value="5af77f2c"/>
<source>
<context value="atimestamp"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="issued"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
</rule>
<rule>
<name value="fea7dc7e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="bdab9370"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="final-cheb20s1de01"/>
<source>
<context value="a"/>
<condition value="a.value = true"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="final"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="true"/>
</parameter>
</target>
</rule>
<rule>
<name value="notfound-cheb20s1de01"/>
<source>
<context value="a"/>
<condition value="a.value = false"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="cancelled"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="false"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s1de06"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s1de06"/>
<source>
<context value="src"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="identifier"/>
<variable value="CodeID"/>
<transform value="create"/>
<parameter>
<valueString value="Identifier"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/namingsystem-identifier-type"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="use"/>
<transform value="copy"/>
<parameter>
<valueString value="official"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueString value="uuid"/>
</parameter>
</target>
<target>
<context value="CodeID"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="35bc6b82"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="encounter"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="encounter"/>
<transform value="copy"/>
<parameter>
<valueId value="encounter"/>
</parameter>
</target>
</rule>
<rule>
<name value="code-cheb21s1de06"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="meta"/>
<variable value="newMeta"/>
<transform value="create"/>
<parameter>
<valueString value="Meta"/>
</parameter>
</target>
<target>
<context value="newMeta"/>
<contextType value="variable"/>
<element value="profile"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="concept"/>
<transform value="create"/>
<parameter>
<valueString value="CodeableConcept"/>
</parameter>
</target>
<target>
<context value="concept"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"/>
</parameter>
</target>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="CHE.B21S1.DE06"/>
</parameter>
</target>
</rule>
<rule>
<name value="aae7a11d"/>
<source>
<context value="src"/>
<element value="item"/>
<variable value="itemtimestamp"/>
<condition value="linkId = 'timestamp'"/>
</source>
<rule>
<name value="7f22f29f"/>
<source>
<context value="itemtimestamp"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="atimestamp"/>
</source>
<rule>
<name value="5af77f2c"/>
<source>
<context value="atimestamp"/>
<element value="value"/>
<variable value="val"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="issued"/>
<transform value="copy"/>
<parameter>
<valueId value="val"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="patient"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="subject"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="subject"/>
</parameter>
</target>
</rule>
<rule>
<name value="7b9a75da"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S1.DE06') and answer.exists()"/>
</source>
<rule>
<name value="bdab9370"/>
<source>
<context value="item"/>
<element value="answer"/>
<listMode value="first"/>
<variable value="a"/>
</source>
<rule>
<name value="final-cheb21s1de06"/>
<source>
<context value="a"/>
<condition value="a.value = true"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="final"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="true"/>
</parameter>
</target>
</rule>
<rule>
<name value="notfound-cheb21s1de06"/>
<source>
<context value="a"/>
<condition value="a.value = false"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<transform value="copy"/>
<parameter>
<valueString value="cancelled"/>
</parameter>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueBoolean value="false"/>
</parameter>
</target>
</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