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.b10-14.symptoms.2m.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.b10-14.symptoms.2m.p" = "che.b10-14.symptoms.2m.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/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.B10S1.DE05') 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 cheobservationcheb10s1de05(src, tgt) "16f80267";
} "aabbed89";
} "4aa4f9c7";
} "4d50fec0";
src.item first as item where (linkId = 'CHE.B10S1.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 cheobservationcheb10s1de06(src, tgt) "7e19d918";
} "ad5259c7";
} "1e36b7fd";
} "7a01be9e";
src.item first as item where (linkId = 'CHE.B10S1.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 cheobservationcheb10s1de01(src, tgt) "40af8bb2";
} "7ee0c1c0";
} "bc62666d";
} "e1280339";
src.item first as item where (linkId = 'CHE.B10S1.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 cheobservationcheb10s1de02(src, tgt) "21524619";
} "c2ac448d";
} "9a06c70b";
} "2e88166e";
src.item first as item where (linkId = 'CHE.B11S1.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 cheobservationcheb11s1de01(src, tgt) "7232330d";
} "a89341fa";
} "e6a989d1";
} "8c0342e5";
src.item first as item where (linkId = 'CHE.B11S1.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 cheobservationcheb11s1de02(src, tgt) "6658b6e2";
} "84ade848";
} "15e3f7ee";
} "c5bcb6d8";
src.item first as item where (linkId = 'CHE.B11S1.DE05') 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 cheobservationcheb11s1de05(src, tgt) "10883ce6";
} "2894841b";
} "f03ed8cf";
} "af84f0ca";
src.item first as item where (linkId = 'CHE.B12S1.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 cheobservationcheb12s1de02(src, tgt) "283aeb36";
} "85333360";
} "63860c5d";
} "795f9ae0";
src.item first as item where (linkId = 'CHE.B12S1.DE03') 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 cheobservationcheb12s1de03(src, tgt) "38461f82";
} "f66c9b3c";
} "c34568ae";
} "5a7de3e1";
src.item first as item where (linkId = 'CHE.B12S1.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 cheobservationcheb12s1de06(src, tgt) "57a73cc0";
} "7c496a1f";
} "4a58aa21";
} "00f4590f";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE09') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de09t(src, tgt) "79cd37ec";
} "2f2a6793";
} "d0bf98f3";
} "5806be37";
} "643167f6";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE09').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de09f(src, tgt) "8f15b438";
} "f9cc2b0b";
} "983b6c47";
} "c7a9eca8";
} "79fbf09a";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE10') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de10t(src, tgt) "8a93b04c";
} "818ebf1b";
} "03f17ddc";
} "3651c69d";
} "a567b94b";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE10').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de10f(src, tgt) "4a3029fd";
} "fc43c7cb";
} "8eefcfb5";
} "b9250512";
} "d42d336b";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE11') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de11t(src, tgt) "967b17fd";
} "fb6a49c5";
} "6ce09c94";
} "1f300184";
} "8d7d04f3";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE11').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de11f(src, tgt) "6434cdd4";
} "d2113ca8";
} "38e97246";
} "b45b3035";
} "4788737a";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE12') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de12t(src, tgt) "58ecb44b";
} "68280d07";
} "abaed0a5";
} "1032f806";
} "7062ee74";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE12').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de12f(src, tgt) "2c849047";
} "d2ded83b";
} "b46d0f91";
} "b7840725";
} "836ce9ab";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE13') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de13t(src, tgt) "3aaa48d0";
} "3a3f575b";
} "7bdf00d8";
} "e764c90c";
} "e9f6cf8a";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE13').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de13f(src, tgt) "7bd09f91";
} "3c42beb6";
} "6b56699b";
} "f0a4cb8b";
} "a241f2f8";
src where src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE14') then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de14t(src, tgt) "12f1f76f";
} "6d1c50d7";
} "1c1d0c2f";
} "1585be65";
} "6880c464";
src where src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE14').empty() then {
src.item first as item where (linkId = 'CHE.B12S1.DE08') 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 then cheobservationcheb12s1de14f(src, tgt) "b1b23040";
} "6980241f";
} "d82de7e9";
} "0f9207cd";
} "be827b5a";
src.item first as item where (linkId = 'CHE.B12S1.DE15') 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 cheobservationcheb12s1de15(src, tgt) "99638bce";
} "f8e3de25";
} "47469d4a";
} "146d4ccc";
src.item first as item where (linkId = 'CHE.B12S1.DE19') 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 cheobservationcheb12s1de19(src, tgt) "e774de1b";
} "f3513d5a";
} "d27ba0ad";
} "f4e4441d";
src.item first as item where (linkId = 'CHE.B13S1.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 cheobservationcheb13s1de01(src, tgt) "9dbeb3fa";
} "f61be0b2";
} "8640d472";
} "b3067aff";
src.item first as item where (linkId = 'CHE.B13S1.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 cheobservationcheb13s1de02(src, tgt) "07a28e4c";
} "fcd941cb";
} "5178713a";
} "1fd89885";
src.item first as item where (linkId = 'CHE.B13S1.DE03') 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 cheobservationcheb13s1de03(src, tgt) "cbb1734e";
} "e8c2d4b7";
} "29444236";
} "66aa7e6d";
src.item first as item where (linkId = 'CHE.B13S1.DE04') 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 cheobservationcheb13s1de04(src, tgt) "9a29f903";
} "75b05fa1";
} "eeff75e2";
} "309587dd";
src.item first as item where (linkId = 'CHE.B14S1.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 cheobservationcheb14s1de01(src, tgt) "ac5b621f";
} "a132a907";
} "5f1c4f9f";
} "44a570bb";
src.item first as item where (linkId = 'CHE.B14S1.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 cheobservationcheb14s1de02(src, tgt) "e283e352";
} "f40c62a7";
} "4d10c025";
} "3d4e6b10";
}
group cheobservationcheb10s1de05(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-cheb10s1de05";
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.B10S1.DE05' "code-cheb10s1de05";
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.B10S1.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s1de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s1de05";
} "bdab9370";
} "8a75ae5b";
}
group cheobservationcheb10s1de06(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-cheb10s1de06";
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.B10S1.DE06' "code-cheb10s1de06";
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.B10S1.DE06') 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";
} "8d2e125f";
}
group cheobservationcheb10s1de01(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-cheb10s1de01";
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.B10S1.DE01' "code-cheb10s1de01";
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.B10S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb10s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb10s1de01";
} "bdab9370";
} "92ed9fac";
}
group cheobservationcheb10s1de02(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-cheb10s1de02";
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.B10S1.DE02' "code-cheb10s1de02";
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.B10S1.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";
} "034b706b";
}
group cheobservationcheb11s1de01(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-cheb11s1de01";
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.B11S1.DE01' "code-cheb11s1de01";
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.B11S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s1de01";
} "bdab9370";
} "ef4c3c1a";
}
group cheobservationcheb11s1de02(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-cheb11s1de02";
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.B11S1.DE02' "code-cheb11s1de02";
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.B11S1.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";
} "8d01e149";
}
group cheobservationcheb11s1de05(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-cheb11s1de05";
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.B11S1.DE05' "code-cheb11s1de05";
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.B11S1.DE05') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb11s1de05";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb11s1de05";
} "bdab9370";
} "8de4b24e";
}
group cheobservationcheb12s1de02(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-cheb12s1de02";
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.B12S1.DE02' "code-cheb12s1de02";
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.B12S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s1de02";
} "bdab9370";
} "d5b6d7ee";
}
group cheobservationcheb12s1de03(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-cheb12s1de03";
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.B12S1.DE03' "code-cheb12s1de03";
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.B12S1.DE03') 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";
} "35c52583";
}
group cheobservationcheb12s1de06(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-cheb12s1de06";
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.B12S1.DE06' "code-cheb12s1de06";
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.B12S1.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s1de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s1de06";
} "bdab9370";
} "3f7c2dd7";
}
group cheobservationcheb12s1de09t(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-cheobservationcheb12s1de09t";
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.B12S1.DE09' "code-cheobservationcheb12s1de09t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de09f(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-cheobservationcheb12s1de09f";
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.B12S1.DE09' "code-cheobservationcheb12s1de09f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de10t(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-cheobservationcheb12s1de10t";
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.B12S1.DE10' "code-cheobservationcheb12s1de10t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de10f(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-cheobservationcheb12s1de10f";
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.B12S1.DE10' "code-cheobservationcheb12s1de10f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de11t(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-cheobservationcheb12s1de11t";
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.B12S1.DE11' "code-cheobservationcheb12s1de11t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de11f(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-cheobservationcheb12s1de11f";
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.B12S1.DE11' "code-cheobservationcheb12s1de11f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de12t(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-cheobservationcheb12s1de12t";
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.B12S1.DE12' "code-cheobservationcheb12s1de12t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de12f(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-cheobservationcheb12s1de12f";
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.B12S1.DE12' "code-cheobservationcheb12s1de12f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de13t(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-cheobservationcheb12s1de13t";
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.B12S1.DE13' "code-cheobservationcheb12s1de13t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de13f(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-cheobservationcheb12s1de13f";
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.B12S1.DE13' "code-cheobservationcheb12s1de13f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de14t(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-cheobservationcheb12s1de14t";
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.B12S1.DE14' "code-cheobservationcheb12s1de14t";
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 -> tgt.status = 'final', tgt.value = true "e9d639e1";
}
group cheobservationcheb12s1de14f(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-cheobservationcheb12s1de14f";
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.B12S1.DE14' "code-cheobservationcheb12s1de14f";
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 -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";
}
group cheobservationcheb12s1de15(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-cheb12s1de15";
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.B12S1.DE15' "code-cheb12s1de15";
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.B12S1.DE15') 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";
} "cb39867b";
}
group cheobservationcheb12s1de19(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-cheb12s1de19";
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.B12S1.DE19' "code-cheb12s1de19";
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.B12S1.DE19') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb12s1de19";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb12s1de19";
} "bdab9370";
} "ad8627ab";
}
group cheobservationcheb13s1de01(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-cheb13s1de01";
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.B13S1.DE01' "code-cheb13s1de01";
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.B13S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s1de01";
} "bdab9370";
} "9ab58024";
}
group cheobservationcheb13s1de02(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-cheb13s1de02";
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.B13S1.DE02' "code-cheb13s1de02";
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.B13S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s1de02";
} "bdab9370";
} "527ebab0";
}
group cheobservationcheb13s1de03(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-cheb13s1de03";
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.B13S1.DE03' "code-cheb13s1de03";
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.B13S1.DE03') 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";
} "d91156a3";
}
group cheobservationcheb13s1de04(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-cheb13s1de04";
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.B13S1.DE04' "code-cheb13s1de04";
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.B13S1.DE04') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb13s1de04";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb13s1de04";
} "bdab9370";
} "a242c946";
}
group cheobservationcheb14s1de01(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-cheb14s1de01";
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.B14S1.DE01' "code-cheb14s1de01";
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.B14S1.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s1de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s1de01";
} "bdab9370";
} "01f7d2cd";
}
group cheobservationcheb14s1de02(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-cheb14s1de02";
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.B14S1.DE02' "code-cheb14s1de02";
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.B14S1.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb14s1de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb14s1de02";
} "bdab9370";
} "7d623434";
}
</pre></div>
</text>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b10-14.symptoms.2m.p"/>
<version value="0.1.0"/>
<name value="che.b10-14.symptoms.2m.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/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="4d50fec0"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE05') and answer.exists()"/>
</source>
<rule>
<name value="4aa4f9c7"/>
<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="aabbed89"/>
<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="16f80267"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb10s1de05"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="7a01be9e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE06') and answer.exists()"/>
</source>
<rule>
<name value="1e36b7fd"/>
<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="ad5259c7"/>
<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="7e19d918"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb10s1de06"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="e1280339"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="bc62666d"/>
<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="7ee0c1c0"/>
<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="40af8bb2"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb10s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="2e88166e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="9a06c70b"/>
<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="c2ac448d"/>
<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="21524619"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb10s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="8c0342e5"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="e6a989d1"/>
<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="a89341fa"/>
<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="7232330d"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb11s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="c5bcb6d8"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="15e3f7ee"/>
<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="84ade848"/>
<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="6658b6e2"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb11s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="af84f0ca"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.DE05') and answer.exists()"/>
</source>
<rule>
<name value="f03ed8cf"/>
<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="2894841b"/>
<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="10883ce6"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb11s1de05"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="795f9ae0"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="63860c5d"/>
<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="85333360"/>
<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="283aeb36"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb12s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="5a7de3e1"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE03') and answer.exists()"/>
</source>
<rule>
<name value="c34568ae"/>
<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="f66c9b3c"/>
<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="38461f82"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb12s1de03"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="00f4590f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE06') and answer.exists()"/>
</source>
<rule>
<name value="4a58aa21"/>
<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="7c496a1f"/>
<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="57a73cc0"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb12s1de06"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="643167f6"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE09')"/>
</source>
<rule>
<name value="5806be37"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="d0bf98f3"/>
<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="2f2a6793"/>
<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="79cd37ec"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de09t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="79fbf09a"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE09').empty()"/>
</source>
<rule>
<name value="c7a9eca8"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="983b6c47"/>
<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="f9cc2b0b"/>
<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="8f15b438"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de09f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="a567b94b"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE10')"/>
</source>
<rule>
<name value="3651c69d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="03f17ddc"/>
<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="818ebf1b"/>
<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="8a93b04c"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de10t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="d42d336b"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE10').empty()"/>
</source>
<rule>
<name value="b9250512"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="8eefcfb5"/>
<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="fc43c7cb"/>
<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="4a3029fd"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de10f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="8d7d04f3"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE11')"/>
</source>
<rule>
<name value="1f300184"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="6ce09c94"/>
<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="fb6a49c5"/>
<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="967b17fd"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de11t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="4788737a"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE11').empty()"/>
</source>
<rule>
<name value="b45b3035"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="38e97246"/>
<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="d2113ca8"/>
<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="6434cdd4"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de11f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="7062ee74"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE12')"/>
</source>
<rule>
<name value="1032f806"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="abaed0a5"/>
<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="68280d07"/>
<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="58ecb44b"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de12t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="836ce9ab"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE12').empty()"/>
</source>
<rule>
<name value="b7840725"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="b46d0f91"/>
<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="d2ded83b"/>
<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="2c849047"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de12f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="e9f6cf8a"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE13')"/>
</source>
<rule>
<name value="e764c90c"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="7bdf00d8"/>
<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="3a3f575b"/>
<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="3aaa48d0"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de13t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="a241f2f8"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE13').empty()"/>
</source>
<rule>
<name value="f0a4cb8b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="6b56699b"/>
<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="3c42beb6"/>
<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="7bd09f91"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de13f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="6880c464"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE14')"/>
</source>
<rule>
<name value="1585be65"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="1c1d0c2f"/>
<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="6d1c50d7"/>
<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="12f1f76f"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de14t"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="be827b5a"/>
<source>
<context value="src"/>
<condition
value="src.item.where(linkId = 'CHE.B12S1.DE08').exists() and src.item.where(linkId = 'CHE.B12S1.DE08').answer.where(value.code = 'CHE.B12S1.DE14').empty()"/>
</source>
<rule>
<name value="0f9207cd"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE08') and answer.exists()"/>
</source>
<rule>
<name value="d82de7e9"/>
<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="6980241f"/>
<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="b1b23040"/>
<source>
<context value="src"/>
</source>
<dependent>
<name value="cheobservationcheb12s1de14f"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="146d4ccc"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE15') and answer.exists()"/>
</source>
<rule>
<name value="47469d4a"/>
<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="f8e3de25"/>
<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="99638bce"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb12s1de15"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="f4e4441d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE19') and answer.exists()"/>
</source>
<rule>
<name value="d27ba0ad"/>
<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="f3513d5a"/>
<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="e774de1b"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb12s1de19"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="b3067aff"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="8640d472"/>
<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="f61be0b2"/>
<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="9dbeb3fa"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb13s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="1fd89885"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="5178713a"/>
<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="fcd941cb"/>
<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="07a28e4c"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb13s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="66aa7e6d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE03') and answer.exists()"/>
</source>
<rule>
<name value="29444236"/>
<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="e8c2d4b7"/>
<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="cbb1734e"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb13s1de03"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="309587dd"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE04') and answer.exists()"/>
</source>
<rule>
<name value="eeff75e2"/>
<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="75b05fa1"/>
<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="9a29f903"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb13s1de04"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="44a570bb"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B14S1.DE01') and answer.exists()"/>
</source>
<rule>
<name value="5f1c4f9f"/>
<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="a132a907"/>
<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="ac5b621f"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb14s1de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="3d4e6b10"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B14S1.DE02') and answer.exists()"/>
</source>
<rule>
<name value="4d10c025"/>
<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="f40c62a7"/>
<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="e283e352"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb14s1de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb10s1de05"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb10s1de05"/>
<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-cheb10s1de05"/>
<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.B10S1.DE05"/>
</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="8a75ae5b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE05') 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-cheb10s1de05"/>
<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-cheb10s1de05"/>
<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="cheobservationcheb10s1de06"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb10s1de06"/>
<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-cheb10s1de06"/>
<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.B10S1.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="8d2e125f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.DE06') 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="cheobservationcheb10s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb10s1de01"/>
<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-cheb10s1de01"/>
<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.B10S1.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="92ed9fac"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.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-cheb10s1de01"/>
<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-cheb10s1de01"/>
<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="cheobservationcheb10s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb10s1de02"/>
<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-cheb10s1de02"/>
<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.B10S1.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="034b706b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B10S1.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="cheobservationcheb11s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb11s1de01"/>
<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-cheb11s1de01"/>
<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.B11S1.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="ef4c3c1a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.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-cheb11s1de01"/>
<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-cheb11s1de01"/>
<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="cheobservationcheb11s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb11s1de02"/>
<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-cheb11s1de02"/>
<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.B11S1.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="8d01e149"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.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="cheobservationcheb11s1de05"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb11s1de05"/>
<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-cheb11s1de05"/>
<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.B11S1.DE05"/>
</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="8de4b24e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B11S1.DE05') 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-cheb11s1de05"/>
<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-cheb11s1de05"/>
<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="cheobservationcheb12s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb12s1de02"/>
<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-cheb12s1de02"/>
<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.B12S1.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="d5b6d7ee"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE02') 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-cheb12s1de02"/>
<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-cheb12s1de02"/>
<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="cheobservationcheb12s1de03"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb12s1de03"/>
<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-cheb12s1de03"/>
<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.B12S1.DE03"/>
</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="35c52583"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE03') 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="cheobservationcheb12s1de06"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb12s1de06"/>
<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-cheb12s1de06"/>
<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.B12S1.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="3f7c2dd7"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.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-cheb12s1de06"/>
<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-cheb12s1de06"/>
<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="cheobservationcheb12s1de09t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de09t"/>
<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-cheobservationcheb12s1de09t"/>
<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.B12S1.DE09"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de09f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de09f"/>
<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-cheobservationcheb12s1de09f"/>
<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.B12S1.DE09"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de10t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de10t"/>
<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-cheobservationcheb12s1de10t"/>
<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.B12S1.DE10"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de10f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de10f"/>
<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-cheobservationcheb12s1de10f"/>
<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.B12S1.DE10"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de11t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de11t"/>
<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-cheobservationcheb12s1de11t"/>
<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.B12S1.DE11"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de11f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de11f"/>
<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-cheobservationcheb12s1de11f"/>
<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.B12S1.DE11"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de12t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de12t"/>
<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-cheobservationcheb12s1de12t"/>
<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.B12S1.DE12"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de12f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de12f"/>
<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-cheobservationcheb12s1de12f"/>
<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.B12S1.DE12"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de13t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de13t"/>
<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-cheobservationcheb12s1de13t"/>
<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.B12S1.DE13"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de13f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de13f"/>
<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-cheobservationcheb12s1de13f"/>
<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.B12S1.DE13"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de14t"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de14t"/>
<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-cheobservationcheb12s1de14t"/>
<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.B12S1.DE14"/>
</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="e9d639e1"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de14f"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheobservationcheb12s1de14f"/>
<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-cheobservationcheb12s1de14f"/>
<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.B12S1.DE14"/>
</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="f21d6e36"/>
<source>
<context value="src"/>
</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>
</group>
<group>
<name value="cheobservationcheb12s1de15"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb12s1de15"/>
<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-cheb12s1de15"/>
<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.B12S1.DE15"/>
</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="cb39867b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE15') 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="cheobservationcheb12s1de19"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb12s1de19"/>
<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-cheb12s1de19"/>
<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.B12S1.DE19"/>
</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="ad8627ab"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B12S1.DE19') 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-cheb12s1de19"/>
<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-cheb12s1de19"/>
<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="cheobservationcheb13s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb13s1de01"/>
<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-cheb13s1de01"/>
<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.B13S1.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="9ab58024"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.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-cheb13s1de01"/>
<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-cheb13s1de01"/>
<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="cheobservationcheb13s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb13s1de02"/>
<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-cheb13s1de02"/>
<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.B13S1.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="527ebab0"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE02') 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-cheb13s1de02"/>
<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-cheb13s1de02"/>
<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="cheobservationcheb13s1de03"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb13s1de03"/>
<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-cheb13s1de03"/>
<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.B13S1.DE03"/>
</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="d91156a3"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE03') 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="cheobservationcheb13s1de04"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb13s1de04"/>
<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-cheb13s1de04"/>
<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.B13S1.DE04"/>
</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="a242c946"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B13S1.DE04') 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-cheb13s1de04"/>
<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-cheb13s1de04"/>
<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="cheobservationcheb14s1de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb14s1de01"/>
<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-cheb14s1de01"/>
<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.B14S1.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="01f7d2cd"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B14S1.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-cheb14s1de01"/>
<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-cheb14s1de01"/>
<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="cheobservationcheb14s1de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb14s1de02"/>
<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-cheb14s1de02"/>
<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.B14S1.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="7d623434"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B14S1.DE02') 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-cheb14s1de02"/>
<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-cheb14s1de02"/>
<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