WHO Clinical Care in Crisis Implementation Guide for Children
0.1.0 - ci-build
WHO Clinical Care in Crisis Implementation Guide for Children - Local Development build (v0.1.0). See the Directory of published versions
Active as of 2023-10-04 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="che.b18-2.signs.2.m.m"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b18-2.signs.2.m.m" = "che.b18-2.signs.2.m.m"
uses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target
uses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" alias 'CHE Observation' as produced
group bundletrans(source src : questionnaireResponse, target bundle : Bundle) {
src -> bundle.id = uuid() "id";
src -> bundle.type = 'batch' "type";
src.item first as item where (linkId = 'CHE.B18S2.DE07') 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 cheobservationcheb18s2de07(src, tgt) "e582e0b9";
} "1ee7a050";
} "9f56cf48";
} "05810fa2";
src.item first as item where (linkId = 'CHE.B18S2.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 -> tgt then cheobservationcheb18s2de08(src, tgt) "b8001cf1";
} "fcf4253f";
} "7b57b925";
} "82560c96";
src.item first as item where (linkId = 'CHE.B18S2.DE12') 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 cheobservationcheb18s2de12(src, tgt) "f4331e54";
} "f7fe72e5";
} "5fa3c1c5";
} "1026a3f9";
src.item first as item where (linkId = 'CHE.B18S2.DE13') 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 cheobservationcheb18s2de13(src, tgt) "8d6a37d7";
} "0892d76b";
} "6d339a30";
} "76dfb08a";
src.item first as item where (linkId = 'CHE.B19S2.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 cheobservationcheb19s2de01(src, tgt) "784e6306";
} "2c28d884";
} "a1b2690f";
} "77862ebc";
src.item first as item where (linkId = 'CHE.B19S2.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 cheobservationcheb19s2de02(src, tgt) "a57a6dd7";
} "60e23396";
} "fe62bb79";
} "c834ff0e";
src.item first as item where (linkId = 'CHE.B19S2.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 cheobservationcheb19s2de04(src, tgt) "16b30f5e";
} "ef84f06f";
} "bb9b80f8";
} "be74ce8b";
src.item first as itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.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 cheobservationcheb20s2de01(src, tgt) "d468f5e8";
} "329279b0";
} "1c436de1";
} "fc7f67af";
} "5fee0c3d";
src.item first as itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.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 cheobservationcheb20s2de02(src, tgt) "22e93849";
} "77a9c987";
} "7d6283fe";
} "d3d20d24";
} "b6b75956";
src.item first as itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.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 cheobservationcheb20s2de06(src, tgt) "6079602e";
} "14dbf931";
} "501edb8e";
} "41ce297f";
} "4cd409e6";
src.item first as item where (linkId = 'CHE.B21S2.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 cheobservationcheb21s2de01(src, tgt) "3912ee88";
} "94071a1c";
} "5c23c9b2";
} "741c22bf";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.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 cheobservationcheb21s2de06(src, tgt) "817890dc";
} "144447d2";
} "f96a4245";
} "e020911f";
} "d5ffcaf7";
} "66bdb05e";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE07') 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 cheobservationcheb21s2de07(src, tgt) "cfc45175";
} "a6f259fe";
} "ed817847";
} "589fb06a";
} "cc368068";
} "337c98b6";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.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 -> tgt then cheobservationcheb21s2de08(src, tgt) "66256bfa";
} "1e48386a";
} "2300c415";
} "0fd172ee";
} "c12105c0";
} "65e93a2d";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE09') 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 cheobservationcheb21s2de09(src, tgt) "c85971b8";
} "d97ca3e5";
} "efd8f6c5";
} "7c2a54d2";
} "8c3eb8c4";
} "f23e257f";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE12') 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 cheobservationcheb21s2de12(src, tgt) "2b6596aa";
} "9a748011";
} "d735c8b6";
} "f58ac637";
} "77a23ca2";
} "8de8517c";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE13') 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 cheobservationcheb21s2de13(src, tgt) "d7e5231e";
} "0151a371";
} "7a3c2afb";
} "0a4444ec";
} "7e469457";
} "338dc83c";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE14') 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 cheobservationcheb21s2de14(src, tgt) "4c0547ec";
} "989b9d7f";
} "d38be4fe";
} "0a4baee0";
} "5a53b047";
} "57145662";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.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 cheobservationcheb21s2de15(src, tgt) "3bea1333";
} "c5c6ec82";
} "d76c6c23";
} "4383ecd8";
} "09507078";
} "bb01a3da";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE18') 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 cheobservationcheb21s2de18(src, tgt) "9346a6d4";
} "8b7e5a05";
} "d501b755";
} "f376b1e5";
} "2e76cb64";
} "298da156";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE21') 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 cheobservationcheb21s2de21(src, tgt) "07a684f3";
} "34603ba5";
} "371779dd";
} "5a77c834";
} "36ef8575";
} "74e25833";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE24') 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 cheobservationcheb21s2de24(src, tgt) "0f560338";
} "6adc009a";
} "e0b5b2b7";
} "4ae9cd12";
} "5825319f";
} "d2badc76";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE27') 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 cheobservationcheb21s2de27(src, tgt) "d5592341";
} "a5671618";
} "f138d765";
} "95a839f9";
} "c6cd61eb";
} "73da8bc2";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as item where (linkId = 'CHE.B21S2.DE30') 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 cheobservationcheb21s2de30(src, tgt) "4f31e76b";
} "19a5b2c3";
} "d9c721ae";
} "22a1ce69";
} "4a9d20fe";
src.item first as itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as item where (linkId = 'CHE.B21S2.DE31') 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 cheobservationcheb21s2de31(src, tgt) "428fc0b8";
} "c5e9eb0d";
} "46816398";
} "88408c79";
} "2445c06d";
}
group cheobservationcheb18s2de07(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-cheb18s2de07";
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.B18S2.DE07' "code-cheb18s2de07";
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.B18S2.DE07') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb18s2de07";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb18s2de07";
} "bdab9370";
} "5ee0adbf";
}
group cheobservationcheb18s2de08(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-cheb18s2de08";
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.B18S2.DE08' "code-cheb18s2de08";
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.B18S2.DE08') 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";
} "fee2a645";
}
group cheobservationcheb18s2de12(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-cheb18s2de12";
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.B18S2.DE12' "code-cheb18s2de12";
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.B18S2.DE12') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb18s2de12";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb18s2de12";
} "bdab9370";
} "f621ab4a";
}
group cheobservationcheb18s2de13(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-cheb18s2de13";
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.B18S2.DE13' "code-cheb18s2de13";
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.B18S2.DE13') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb18s2de13";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb18s2de13";
} "bdab9370";
} "e95a060c";
}
group cheobservationcheb19s2de01(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-cheb19s2de01";
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.B19S2.DE01' "code-cheb19s2de01";
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.B19S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb19s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb19s2de01";
} "bdab9370";
} "80f27969";
}
group cheobservationcheb19s2de02(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-cheb19s2de02";
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.B19S2.DE02' "code-cheb19s2de02";
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.B19S2.DE02') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb19s2de02";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb19s2de02";
} "bdab9370";
} "c03fae10";
}
group cheobservationcheb19s2de04(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-cheb19s2de04";
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.B19S2.DE04' "code-cheb19s2de04";
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.B19S2.DE04') 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";
} "f5b28914";
}
group cheobservationcheb20s2de01(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-cheb20s2de01";
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.B20S2.DE01' "code-cheb20s2de01";
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 itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.DE01') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb20s2de01";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb20s2de01";
} "bdab9370";
} "2dccf640";
} "667c8fcc";
}
group cheobservationcheb20s2de02(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-cheb20s2de02";
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.B20S2.DE02' "code-cheb20s2de02";
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 itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.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";
} "7c20c96c";
} "ce1e6510";
}
group cheobservationcheb20s2de06(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-cheb20s2de06";
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.B20S2.DE06' "code-cheb20s2de06";
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 itm1 where linkId = 'dhrea' then {
itm1.item first as item where (linkId = 'CHE.B20S2.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb20s2de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb20s2de06";
} "bdab9370";
} "dcdddef6";
} "f2e136dd";
}
group cheobservationcheb21s2de01(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-cheb21s2de01";
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.B21S2.DE01' "code-cheb21s2de01";
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.B21S2.DE01') 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";
} "111fe259";
}
group cheobservationcheb21s2de06(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-cheb21s2de06";
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.B21S2.DE06' "code-cheb21s2de06";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE06') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de06";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de06";
} "bdab9370";
} "f4483b41";
} "086306ea";
} "c9f4024f";
}
group cheobservationcheb21s2de07(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-cheb21s2de07";
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.B21S2.DE07' "code-cheb21s2de07";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE07') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de07";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de07";
} "bdab9370";
} "ac8b143d";
} "4bcac4eb";
} "f0040203";
}
group cheobservationcheb21s2de08(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-cheb21s2de08";
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.B21S2.DE08' "code-cheb21s2de08";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'bf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE08') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de08";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de08";
} "bdab9370";
} "a4649541";
} "5b9f25f0";
} "eaac7444";
}
group cheobservationcheb21s2de09(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-cheb21s2de09";
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.B21S2.DE09' "code-cheb21s2de09";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE09') 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";
} "adbf5bbd";
} "0b7591de";
} "74b66daf";
}
group cheobservationcheb21s2de12(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-cheb21s2de12";
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.B21S2.DE12' "code-cheb21s2de12";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE12') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de12";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de12";
} "bdab9370";
} "b7b04b56";
} "b9611401";
} "69100ab8";
}
group cheobservationcheb21s2de13(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-cheb21s2de13";
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.B21S2.DE13' "code-cheb21s2de13";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE13') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de13";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de13";
} "bdab9370";
} "1200d0e6";
} "3b187ae1";
} "5b2b0b27";
}
group cheobservationcheb21s2de14(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-cheb21s2de14";
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.B21S2.DE14' "code-cheb21s2de14";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE14') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de14";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de14";
} "bdab9370";
} "f7b76aba";
} "b7d93803";
} "45cba18d";
}
group cheobservationcheb21s2de15(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-cheb21s2de15";
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.B21S2.DE15' "code-cheb21s2de15";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.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";
} "a1a28f4b";
} "c1b76be3";
} "af60327b";
}
group cheobservationcheb21s2de18(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-cheb21s2de18";
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.B21S2.DE18' "code-cheb21s2de18";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE18') 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";
} "6d05c082";
} "46c38b26";
} "99fd273f";
}
group cheobservationcheb21s2de21(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-cheb21s2de21";
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.B21S2.DE21' "code-cheb21s2de21";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE21') 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";
} "4c2ac59b";
} "575cd038";
} "50193ff4";
}
group cheobservationcheb21s2de24(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-cheb21s2de24";
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.B21S2.DE24' "code-cheb21s2de24";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE24') 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";
} "cc93afff";
} "d84f2183";
} "da2a4683";
}
group cheobservationcheb21s2de27(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-cheb21s2de27";
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.B21S2.DE27' "code-cheb21s2de27";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as itm2 where linkId = 'ubf-asses' then {
itm2.item first as item where (linkId = 'CHE.B21S2.DE27') 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";
} "fe923a94";
} "fac4f521";
} "67b29315";
}
group cheobservationcheb21s2de30(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-cheb21s2de30";
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.B21S2.DE30' "code-cheb21s2de30";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as item where (linkId = 'CHE.B21S2.DE30') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de30";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de30";
} "bdab9370";
} "d84b6a8b";
} "1f15315a";
}
group cheobservationcheb21s2de31(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-cheb21s2de31";
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.B21S2.DE31' "code-cheb21s2de31";
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 itm1 where linkId = 'no-yi-sever-wo-dehydra' then {
itm1.item first as item where (linkId = 'CHE.B21S2.DE31') and answer.exists() then {
item.answer first as a then {
a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb21s2de31";
a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb21s2de31";
} "bdab9370";
} "1a309728";
} "ed912153";
}
</pre></div>
</text>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b18-2.signs.2.m.m"/>
<version value="0.1.0"/>
<name value="che.b18-2.signs.2.m.m"/>
<status value="active"/>
<date value="2023-10-04T12:32:21+00:00"/>
<publisher value="WHO"/>
<contact>
<name value="WHO"/>
<telecom>
<system value="url"/>
<value value="http://who.int"/>
</telecom>
</contact>
<structure>
<url
value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse"/>
<mode value="source"/>
<alias value="'questionnaireResponse'"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
<mode value="target"/>
<alias value="'Bundle'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation"/>
<mode value="target"/>
<alias value="'Observation'"/>
</structure>
<structure>
<url
value="https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"/>
<mode value="produced"/>
<alias value="'CHE Observation'"/>
</structure>
<group>
<name value="bundletrans"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<type value="questionnaireResponse"/>
<mode value="source"/>
</input>
<input>
<name value="bundle"/>
<type value="Bundle"/>
<mode value="target"/>
</input>
<rule>
<name value="id"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="id"/>
<transform value="uuid"/>
</target>
</rule>
<rule>
<name value="type"/>
<source>
<context value="src"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="type"/>
<transform value="copy"/>
<parameter>
<valueString value="batch"/>
</parameter>
</target>
</rule>
<rule>
<name value="05810fa2"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE07') and answer.exists()"/>
</source>
<rule>
<name value="9f56cf48"/>
<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="1ee7a050"/>
<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="e582e0b9"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s2de07"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="82560c96"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE08') and answer.exists()"/>
</source>
<rule>
<name value="7b57b925"/>
<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="fcf4253f"/>
<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="b8001cf1"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s2de08"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="1026a3f9"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE12') and answer.exists()"/>
</source>
<rule>
<name value="5fa3c1c5"/>
<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="f7fe72e5"/>
<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="f4331e54"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s2de12"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="76dfb08a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE13') and answer.exists()"/>
</source>
<rule>
<name value="6d339a30"/>
<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="0892d76b"/>
<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="8d6a37d7"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb18s2de13"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="77862ebc"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.DE01') and answer.exists()"/>
</source>
<rule>
<name value="a1b2690f"/>
<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="2c28d884"/>
<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="784e6306"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb19s2de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="c834ff0e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.DE02') and answer.exists()"/>
</source>
<rule>
<name value="fe62bb79"/>
<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="60e23396"/>
<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="a57a6dd7"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb19s2de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="be74ce8b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.DE04') and answer.exists()"/>
</source>
<rule>
<name value="bb9b80f8"/>
<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="ef84f06f"/>
<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="16b30f5e"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb19s2de04"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="5fee0c3d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="fc7f67af"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.DE01') and answer.exists()"/>
</source>
<rule>
<name value="1c436de1"/>
<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="329279b0"/>
<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="d468f5e8"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb20s2de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="b6b75956"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="d3d20d24"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.DE02') and answer.exists()"/>
</source>
<rule>
<name value="7d6283fe"/>
<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="77a9c987"/>
<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="22e93849"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb20s2de02"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="4cd409e6"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="41ce297f"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.DE06') and answer.exists()"/>
</source>
<rule>
<name value="501edb8e"/>
<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="14dbf931"/>
<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="6079602e"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb20s2de06"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="741c22bf"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE01') and answer.exists()"/>
</source>
<rule>
<name value="5c23c9b2"/>
<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="94071a1c"/>
<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="3912ee88"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de01"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="66bdb05e"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="d5ffcaf7"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="e020911f"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE06') and answer.exists()"/>
</source>
<rule>
<name value="f96a4245"/>
<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="144447d2"/>
<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="817890dc"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de06"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="337c98b6"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="cc368068"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="589fb06a"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE07') and answer.exists()"/>
</source>
<rule>
<name value="ed817847"/>
<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="a6f259fe"/>
<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="cfc45175"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de07"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="65e93a2d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="c12105c0"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="0fd172ee"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE08') and answer.exists()"/>
</source>
<rule>
<name value="2300c415"/>
<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="1e48386a"/>
<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="66256bfa"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de08"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="f23e257f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="8c3eb8c4"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="7c2a54d2"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE09') and answer.exists()"/>
</source>
<rule>
<name value="efd8f6c5"/>
<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="d97ca3e5"/>
<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="c85971b8"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de09"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="8de8517c"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="77a23ca2"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="f58ac637"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE12') and answer.exists()"/>
</source>
<rule>
<name value="d735c8b6"/>
<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="9a748011"/>
<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="2b6596aa"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de12"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="338dc83c"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="7e469457"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="0a4444ec"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE13') and answer.exists()"/>
</source>
<rule>
<name value="7a3c2afb"/>
<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="0151a371"/>
<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="d7e5231e"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de13"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="57145662"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="5a53b047"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="0a4baee0"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE14') and answer.exists()"/>
</source>
<rule>
<name value="d38be4fe"/>
<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="989b9d7f"/>
<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="4c0547ec"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de14"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="bb01a3da"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="09507078"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="4383ecd8"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE15') and answer.exists()"/>
</source>
<rule>
<name value="d76c6c23"/>
<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="c5c6ec82"/>
<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="3bea1333"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de15"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="298da156"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="2e76cb64"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="f376b1e5"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE18') and answer.exists()"/>
</source>
<rule>
<name value="d501b755"/>
<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="8b7e5a05"/>
<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="9346a6d4"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de18"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="74e25833"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="36ef8575"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="5a77c834"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE21') and answer.exists()"/>
</source>
<rule>
<name value="371779dd"/>
<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="34603ba5"/>
<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="07a684f3"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de21"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="d2badc76"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="5825319f"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="4ae9cd12"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE24') and answer.exists()"/>
</source>
<rule>
<name value="e0b5b2b7"/>
<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="6adc009a"/>
<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="0f560338"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de24"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="73da8bc2"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="c6cd61eb"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="95a839f9"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE27') and answer.exists()"/>
</source>
<rule>
<name value="f138d765"/>
<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="a5671618"/>
<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="d5592341"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de27"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="4a9d20fe"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="22a1ce69"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE30') and answer.exists()"/>
</source>
<rule>
<name value="d9c721ae"/>
<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="19a5b2c3"/>
<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="4f31e76b"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de30"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
<rule>
<name value="2445c06d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="88408c79"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE31') and answer.exists()"/>
</source>
<rule>
<name value="46816398"/>
<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="c5e9eb0d"/>
<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="428fc0b8"/>
<source>
<context value="src"/>
</source>
<target>
<contextType value="variable"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<dependent>
<name value="cheobservationcheb21s2de31"/>
<variable value="src"/>
<variable value="tgt"/>
</dependent>
</rule>
</rule>
</rule>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb18s2de07"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s2de07"/>
<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-cheb18s2de07"/>
<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.B18S2.DE07"/>
</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="5ee0adbf"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE07') 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-cheb18s2de07"/>
<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-cheb18s2de07"/>
<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="cheobservationcheb18s2de08"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s2de08"/>
<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-cheb18s2de08"/>
<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.B18S2.DE08"/>
</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="fee2a645"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE08') 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="cheobservationcheb18s2de12"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s2de12"/>
<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-cheb18s2de12"/>
<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.B18S2.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="f621ab4a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE12') 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-cheb18s2de12"/>
<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-cheb18s2de12"/>
<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="cheobservationcheb18s2de13"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb18s2de13"/>
<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-cheb18s2de13"/>
<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.B18S2.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="e95a060c"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B18S2.DE13') 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-cheb18s2de13"/>
<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-cheb18s2de13"/>
<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="cheobservationcheb19s2de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb19s2de01"/>
<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-cheb19s2de01"/>
<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.B19S2.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="80f27969"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.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-cheb19s2de01"/>
<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-cheb19s2de01"/>
<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="cheobservationcheb19s2de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb19s2de02"/>
<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-cheb19s2de02"/>
<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.B19S2.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="c03fae10"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.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-cheb19s2de02"/>
<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-cheb19s2de02"/>
<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="cheobservationcheb19s2de04"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb19s2de04"/>
<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-cheb19s2de04"/>
<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.B19S2.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="f5b28914"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B19S2.DE04') 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="cheobservationcheb20s2de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb20s2de01"/>
<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-cheb20s2de01"/>
<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.B20S2.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="667c8fcc"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="2dccf640"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.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-cheb20s2de01"/>
<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-cheb20s2de01"/>
<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>
</rule>
</group>
<group>
<name value="cheobservationcheb20s2de02"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb20s2de02"/>
<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-cheb20s2de02"/>
<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.B20S2.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="ce1e6510"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="7c20c96c"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.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>
</rule>
</group>
<group>
<name value="cheobservationcheb20s2de06"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb20s2de06"/>
<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-cheb20s2de06"/>
<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.B20S2.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="f2e136dd"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'dhrea'"/>
</source>
<rule>
<name value="dcdddef6"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B20S2.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-cheb20s2de06"/>
<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-cheb20s2de06"/>
<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>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de01"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de01"/>
<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-cheb21s2de01"/>
<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.B21S2.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="111fe259"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE01') 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="cheobservationcheb21s2de06"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de06"/>
<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-cheb21s2de06"/>
<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.B21S2.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="c9f4024f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="086306ea"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="f4483b41"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.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-cheb21s2de06"/>
<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-cheb21s2de06"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de07"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de07"/>
<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-cheb21s2de07"/>
<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.B21S2.DE07"/>
</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="f0040203"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="4bcac4eb"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="ac8b143d"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE07') 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-cheb21s2de07"/>
<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-cheb21s2de07"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de08"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de08"/>
<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-cheb21s2de08"/>
<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.B21S2.DE08"/>
</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="eaac7444"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="5b9f25f0"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'bf-asses'"/>
</source>
<rule>
<name value="a4649541"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE08') 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-cheb21s2de08"/>
<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-cheb21s2de08"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de09"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de09"/>
<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-cheb21s2de09"/>
<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.B21S2.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="74b66daf"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="0b7591de"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="adbf5bbd"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE09') 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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de12"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de12"/>
<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-cheb21s2de12"/>
<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.B21S2.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="69100ab8"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="b9611401"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="b7b04b56"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE12') 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-cheb21s2de12"/>
<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-cheb21s2de12"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de13"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de13"/>
<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-cheb21s2de13"/>
<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.B21S2.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="5b2b0b27"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="3b187ae1"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="1200d0e6"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE13') 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-cheb21s2de13"/>
<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-cheb21s2de13"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de14"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de14"/>
<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-cheb21s2de14"/>
<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.B21S2.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="45cba18d"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="b7d93803"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="f7b76aba"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE14') 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-cheb21s2de14"/>
<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-cheb21s2de14"/>
<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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de15"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de15"/>
<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-cheb21s2de15"/>
<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.B21S2.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="af60327b"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="c1b76be3"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="a1a28f4b"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de18"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de18"/>
<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-cheb21s2de18"/>
<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.B21S2.DE18"/>
</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="99fd273f"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="46c38b26"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="6d05c082"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE18') 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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de21"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de21"/>
<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-cheb21s2de21"/>
<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.B21S2.DE21"/>
</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="50193ff4"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="575cd038"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="4c2ac59b"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE21') 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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de24"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de24"/>
<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-cheb21s2de24"/>
<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.B21S2.DE24"/>
</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="da2a4683"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="d84f2183"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="cc93afff"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE24') 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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de27"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de27"/>
<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-cheb21s2de27"/>
<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.B21S2.DE27"/>
</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="67b29315"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="fac4f521"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm2"/>
<condition value="linkId = 'ubf-asses'"/>
</source>
<rule>
<name value="fe923a94"/>
<source>
<context value="itm2"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition
value="(linkId = 'CHE.B21S2.DE27') 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>
</rule>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de30"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de30"/>
<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-cheb21s2de30"/>
<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.B21S2.DE30"/>
</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="1f15315a"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="d84b6a8b"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE30') 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-cheb21s2de30"/>
<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-cheb21s2de30"/>
<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>
</rule>
</group>
<group>
<name value="cheobservationcheb21s2de31"/>
<typeMode value="none"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="id-cheb21s2de31"/>
<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-cheb21s2de31"/>
<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.B21S2.DE31"/>
</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="ed912153"/>
<source>
<context value="src"/>
<element value="item"/>
<listMode value="first"/>
<variable value="itm1"/>
<condition value="linkId = 'no-yi-sever-wo-dehydra'"/>
</source>
<rule>
<name value="1a309728"/>
<source>
<context value="itm1"/>
<element value="item"/>
<listMode value="first"/>
<variable value="item"/>
<condition value="(linkId = 'CHE.B21S2.DE31') 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-cheb21s2de31"/>
<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-cheb21s2de31"/>
<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>
</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