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 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:StructureMap ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "che.b7-9.lti-dangersigns"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b7-9.lti-dangersigns" = "che.b7-9.lti-dangersigns"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" alias 'CHE Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de01(src, tgt) "a737c0cf";\r\n } "7ed3dafb";\r\n } "6b07d1d0";\r\n } "642a35ec";\r\n } "07284d23";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE01-tt') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de01tt(src, tgt) "22007021";\r\n } "2902e0da";\r\n } "323917cf";\r\n } "4334332a";\r\n } "839bb3dc";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de02(src, tgt) "a316e259";\r\n } "8c650123";\r\n } "da4e89ff";\r\n } "8687c6e9";\r\n } "af7472fe";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.B8.B9.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7b8b9de01(src, tgt) "5299ff27";\r\n } "c9fd04f0";\r\n } "2db2051c";\r\n } "60dc9938";\r\n } "eaf027f6";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de03(src, tgt) "2fa6fcb2";\r\n } "2e8b07ff";\r\n } "4b26f549";\r\n } "8c2ad30a";\r\n } "7f69e1ab";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de04(src, tgt) "8c54d7aa";\r\n } "3064d931";\r\n } "7dd019b4";\r\n } "29259e14";\r\n } "c38fa949";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de07(src, tgt) "8dbaa8c1";\r\n } "96641261";\r\n } "fa37b236";\r\n } "f2f40226";\r\n } "5706ca59";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de08(src, tgt) "fc95b380";\r\n } "39e6456e";\r\n } "ff32ff5b";\r\n } "f4014d39";\r\n } "24a7a9bb";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de09(src, tgt) "dbcf420b";\r\n } "b167af1c";\r\n } "1f4cd941";\r\n } "22230b35";\r\n } "3bdc0ae6";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb7de10(src, tgt) "11652079";\r\n } "d5f13abf";\r\n } "5112eabc";\r\n } "40e6e7f6";\r\n } "29197ec4";\r\n}\r\n\r\ngroup cheobservationcheb7de01(source src, target tgt) {\r\n 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-cheb7de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE01' "code-cheb7de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de01";\r\n } "bdab9370";\r\n } "31c15607";\r\n } "4e154863";\r\n}\r\n\r\ngroup cheobservationcheb7de01tt(source src, target tgt) {\r\n 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-cheb7de01tt";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE01-tt' "code-cheb7de01tt";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE01-tt') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de01tt";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de01tt";\r\n } "bdab9370";\r\n } "015ed333";\r\n } "6029e684";\r\n}\r\n\r\ngroup cheobservationcheb7de02(source src, target tgt) {\r\n 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-cheb7de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE02' "code-cheb7de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de02";\r\n } "bdab9370";\r\n } "5ab27008";\r\n } "2f78f394";\r\n}\r\n\r\ngroup cheobservationcheb7b8b9de01(source src, target tgt) {\r\n 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-cheb7b8b9de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.B8.B9.DE01' "code-cheb7b8b9de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'LTI' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.B8.B9.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "fc6944d0";\r\n } "37fe0ecf";\r\n}\r\n\r\ngroup cheobservationcheb7de03(source src, target tgt) {\r\n 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-cheb7de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE03' "code-cheb7de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de03";\r\n } "bdab9370";\r\n } "b2289b9b";\r\n } "e2cab342";\r\n}\r\n\r\ngroup cheobservationcheb7de04(source src, target tgt) {\r\n 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-cheb7de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE04' "code-cheb7de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "439124b7";\r\n } "d2667a29";\r\n}\r\n\r\ngroup cheobservationcheb7de07(source src, target tgt) {\r\n 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-cheb7de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE07' "code-cheb7de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de07";\r\n } "bdab9370";\r\n } "97792e44";\r\n } "3dd9674b";\r\n}\r\n\r\ngroup cheobservationcheb7de08(source src, target tgt) {\r\n 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-cheb7de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE08' "code-cheb7de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de08";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de08";\r\n } "bdab9370";\r\n } "0c6e49a5";\r\n } "1cb8e50b";\r\n}\r\n\r\ngroup cheobservationcheb7de09(source src, target tgt) {\r\n 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-cheb7de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE09' "code-cheb7de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-cheb7de09";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb7de09";\r\n } "bdab9370";\r\n } "95ee9897";\r\n } "50c338e5";\r\n}\r\n\r\ngroup cheobservationcheb7de10(source src, target tgt) {\r\n 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-cheb7de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n 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.B7.DE10' "code-cheb7de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'ds' then {\r\n itm1.item first as item where (linkId = 'CHE.B7.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.status = 'cancelled' "8ab1d7a5";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "4ca9082e";\r\n } "7c587a4b";\r\n } "88b2075a";\r\n } "ad934662";\r\n}\r\n\r\n</pre></div>" ] ; # fhir:url [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b7-9.lti-dangersigns"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.1.0"] ; # fhir:name [ fhir:v "che.b7-9.lti-dangersigns"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2023-10-04T12:32:21+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "WHO"] ; # fhir:contact ( [ fhir:name [ fhir:v "WHO" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://who.int" ] ] ) ] ) ; # fhir:structure ( [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse> ] ; fhir:mode [ fhir:v "source" ] ; fhir:alias [ fhir:v "'questionnaireResponse'" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "'Bundle'" ] ] [ fhir:url [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation"^^xsd:anyURI ; fhir:link <https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation> ] ; fhir:mode [ fhir:v "target" ] ; fhir:alias [ fhir:v "'Observation'" ] ] [ fhir:url [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"^^xsd:anyURI ; fhir:link <https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation> ] ; fhir:mode [ fhir:v "produced" ] ; fhir:alias [ fhir:v "'CHE Observation'" ] ] ) ; # fhir:group ( [ fhir:name [ fhir:v "bundletrans" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:type [ fhir:v "questionnaireResponse" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "bundle" ] ; fhir:type [ fhir:v "Bundle" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "type" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "type" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "batch" ] ] ) ] ) ] [ fhir:name [ fhir:v "07284d23" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "642a35ec" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE01') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "6b07d1d0" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "7ed3dafb" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "a737c0cf" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de01" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "839bb3dc" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "4334332a" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE01-tt') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "323917cf" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "2902e0da" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "22007021" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de01tt" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "af7472fe" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8687c6e9" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE02') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "da4e89ff" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "8c650123" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "a316e259" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de02" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "eaf027f6" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "60dc9938" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.B8.B9.DE01') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "2db2051c" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "c9fd04f0" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5299ff27" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7b8b9de01" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "7f69e1ab" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8c2ad30a" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE03') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "4b26f549" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "2e8b07ff" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "2fa6fcb2" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de03" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "c38fa949" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "29259e14" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE04') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7dd019b4" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "3064d931" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8c54d7aa" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de04" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "5706ca59" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "f2f40226" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE07') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "fa37b236" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "96641261" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8dbaa8c1" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de07" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "24a7a9bb" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "f4014d39" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE08') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "ff32ff5b" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "39e6456e" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "fc95b380" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de08" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "3bdc0ae6" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "22230b35" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE09') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "1f4cd941" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "b167af1c" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "dbcf420b" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de09" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "29197ec4" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "40e6e7f6" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE10') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5112eabc" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "bundle" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "entry" ] ; fhir:variable [ fhir:v "entry" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b50ac4c5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "request" ] ; fhir:variable [ fhir:v "request" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "method" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "POST" ] ] ) ] [ fhir:contextType [ fhir:v "variable" ] ; fhir:variable [ fhir:v "uuid" ] ; fhir:transform [ fhir:v "uuid" ] ] [ fhir:context [ fhir:v "request" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "url" ] ; fhir:transform [ fhir:v "append" ] ; ( fhir:parameter [ fhir:value [ fhir:v "/Observation/" ] ] [ fhir:value [ fhir:v "uuid" ] ] ) ] ) ] [ fhir:name [ fhir:v "d5f13abf" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "entry" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "resource" ] ; fhir:variable [ fhir:v "tgt" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Observation" ] ] ) ] ) ; ( fhir:rule [ fhir:name [ fhir:v "11652079" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:contextType [ fhir:v "variable" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "tgt" ] ] ) ] ) ; ( fhir:dependent [ fhir:name [ fhir:v "cheobservationcheb7de10" ] ; ( fhir:variable [ fhir:v "src" ] [ fhir:v "tgt" ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de01" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de01" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de01" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE01" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "4e154863" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "31c15607" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE01') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de01" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de01" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de01tt" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de01tt" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de01tt" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE01-tt" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "6029e684" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "015ed333" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE01-tt') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de01tt" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de01tt" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de02" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de02" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de02" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE02" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "2f78f394" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5ab27008" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE02') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de02" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de02" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7b8b9de01" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7b8b9de01" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7b8b9de01" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.B8.B9.DE01" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "37fe0ecf" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'LTI'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "fc6944d0" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.B8.B9.DE01') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7c587a4b" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "4ca9082e" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8ab1d7a5" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code = 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] ) ] [ fhir:name [ fhir:v "a1050460" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code != 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "cc" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "cc" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de03" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de03" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de03" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE03" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "e2cab342" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "b2289b9b" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE03') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de03" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de03" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de04" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de04" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de04" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE04" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "d2667a29" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "439124b7" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE04') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7c587a4b" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "4ca9082e" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8ab1d7a5" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code = 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] ) ] [ fhir:name [ fhir:v "a1050460" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code != 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "cc" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "cc" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de07" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de07" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de07" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE07" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "3dd9674b" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "97792e44" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE07') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de07" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de07" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de08" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de08" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de08" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE08" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "1cb8e50b" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "0c6e49a5" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE08') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de08" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de08" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de09" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de09" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de09" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE09" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "50c338e5" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "95ee9897" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE09') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "bdab9370" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "final-cheb7de09" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = true" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] [ fhir:name [ fhir:v "notfound-cheb7de09" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:condition [ fhir:v "a.value = false" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ] ) ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "cheobservationcheb7de10" ] ; fhir:typeMode [ fhir:v "none" ] ; ( fhir:input [ fhir:name [ fhir:v "src" ] ; fhir:mode [ fhir:v "source" ] ] [ fhir:name [ fhir:v "tgt" ] ; fhir:mode [ fhir:v "target" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "id-cheb7de10" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "identifier" ] ; fhir:variable [ fhir:v "CodeID" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Identifier" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "http://hl7.org/fhir/namingsystem-identifier-type" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "use" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "official" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "uuid" ] ] ) ] [ fhir:context [ fhir:v "CodeID" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "id" ] ; fhir:transform [ fhir:v "uuid" ] ] ) ] [ fhir:name [ fhir:v "35bc6b82" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:variable [ fhir:v "encounter" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "encounter" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "encounter" ] ] ) ] ) ] [ fhir:name [ fhir:v "code-cheb7de10" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "meta" ] ; fhir:variable [ fhir:v "newMeta" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Meta" ] ] ) ] [ fhir:context [ fhir:v "newMeta" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "profile" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:variable [ fhir:v "concept" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "concept" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:variable [ fhir:v "coding" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "Coding" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "system" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes" ] ] ) ] [ fhir:context [ fhir:v "coding" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "code" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CHE.B7.DE10" ] ] ) ] ) ] [ fhir:name [ fhir:v "aae7a11d" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:variable [ fhir:v "itemtimestamp" ] ; fhir:condition [ fhir:v "linkId = 'timestamp'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7f22f29f" ] ; ( fhir:source [ fhir:context [ fhir:v "itemtimestamp" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "atimestamp" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "5af77f2c" ] ; ( fhir:source [ fhir:context [ fhir:v "atimestamp" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "issued" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] ) ] ) ] ) ] [ fhir:name [ fhir:v "patient" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "subject" ] ; fhir:variable [ fhir:v "subject" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "subject" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "subject" ] ] ) ] ) ] [ fhir:name [ fhir:v "ad934662" ] ; ( fhir:source [ fhir:context [ fhir:v "src" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "itm1" ] ; fhir:condition [ fhir:v "linkId = 'ds'" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "88b2075a" ] ; ( fhir:source [ fhir:context [ fhir:v "itm1" ] ; fhir:element [ fhir:v "item" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "item" ] ; fhir:condition [ fhir:v "(linkId = 'CHE.B7.DE10') and answer.exists()" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "7c587a4b" ] ; ( fhir:source [ fhir:context [ fhir:v "item" ] ; fhir:element [ fhir:v "answer" ] ; fhir:listMode [ fhir:v "first" ] ; fhir:variable [ fhir:v "a" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "4ca9082e" ] ; ( fhir:source [ fhir:context [ fhir:v "a" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "val" ] ] ) ; ( fhir:rule [ fhir:name [ fhir:v "8ab1d7a5" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code = 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "cancelled" ] ] ) ] ) ] [ fhir:name [ fhir:v "a1050460" ] ; ( fhir:source [ fhir:context [ fhir:v "val" ] ; fhir:condition [ fhir:v "val.code != 'none'" ] ] ) ; ( fhir:target [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "value" ] ; fhir:variable [ fhir:v "cc" ] ; fhir:transform [ fhir:v "create" ] ; ( fhir:parameter [ fhir:value [ fhir:v "CodeableConcept" ] ] ) ] [ fhir:context [ fhir:v "cc" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "coding" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "val" ] ] ) ] [ fhir:context [ fhir:v "tgt" ] ; fhir:contextType [ fhir:v "variable" ] ; fhir:element [ fhir:v "status" ] ; fhir:transform [ fhir:v "copy" ] ; ( fhir:parameter [ fhir:value [ fhir:v "final" ] ] ) ] ) ] ) ] ) ] ) ] ) ] ) ] ) . #
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