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