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 |
{
"resourceType" : "StructureMap",
"id" : "che.b6.measurements",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre>map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b6.measurements" = "che.b6.measurements"\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.B6.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 cheobservationcheb6de01(src, tgt) "759c506c";\r\n } "b050dbe4";\r\n } "36acd5b8";\r\n } "96688536";\r\n src.item first as item where (linkId = 'CHE.B6.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 cheobservationcheb6de02(src, tgt) "64a6f17a";\r\n } "7912f7f5";\r\n } "2cd30c67";\r\n } "fcf951dc";\r\n src.item first as item where (linkId = 'CHE.B6.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 cheobservationcheb6de03(src, tgt) "f1a0d13e";\r\n } "963d6b43";\r\n } "6550236e";\r\n } "bcbb958a";\r\n src.item first as item where (linkId = 'CHE.B6.DE03A') 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 cheobservationcheb6de03a(src, tgt) "8a611902";\r\n } "7dc45b09";\r\n } "53e61c12";\r\n } "063dcb5f";\r\n src.item first as item where (linkId = 'CHE.B6.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 cheobservationcheb6de04(src, tgt) "d6b2dbd7";\r\n } "c472389d";\r\n } "77b15e86";\r\n } "e4378a0b";\r\n src.item first as item where (linkId = 'CHE.B6.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 cheobservationcheb6de05(src, tgt) "be427d6c";\r\n } "75b9474f";\r\n } "68ab0cf3";\r\n } "bdc41345";\r\n src.item first as item where (linkId = 'CHE.B6.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 cheobservationcheb6de06(src, tgt) "b2756ffd";\r\n } "d583084c";\r\n } "16b8c4e2";\r\n } "a93983c1";\r\n src.item first as item where (linkId = 'CHE.B6.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb6de07(src, tgt) "cf5bb18a";\r\n } "88b3c48c";\r\n } "40fe4f2b";\r\n } "75349866";\r\n src.item first as item where (linkId = 'CHE.B6.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb6de08(src, tgt) "48fc44ae";\r\n } "02a2ad76";\r\n } "ca4936d1";\r\n } "6fa035c2";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb6de09(src, tgt) "2c910c1d";\r\n } "ac688541";\r\n } "1b83dcb0";\r\n } "7eb2f39f";\r\n } "db6b24d1";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then cheobservationcheb6de10(src, tgt) "645ace98";\r\n } "2c4726b5";\r\n } "67463bf3";\r\n } "99bf65e4";\r\n } "b8235762";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE11') 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 cheobservationcheb6de11(src, tgt) "00f97bed";\r\n } "54590134";\r\n } "53d167be";\r\n } "f4f971be";\r\n } "e3c37bc1";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE12') 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 cheobservationcheb6de12(src, tgt) "ebd17f2c";\r\n } "bed3131b";\r\n } "3cbb4018";\r\n } "b7f2c387";\r\n } "ef1f3db1";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE12a') 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 cheobservationcheb6de12a(src, tgt) "0381f656";\r\n } "d1760cb0";\r\n } "b9ac835e";\r\n } "268ceea5";\r\n } "f354f065";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE13') 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 cheobservationcheb6de13(src, tgt) "dee81779";\r\n } "dae1657f";\r\n } "3f3880d4";\r\n } "9cba2822";\r\n } "9e911c64";\r\n src.item first as item where (linkId = 'CHE.B6.DE17') 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 cheobservationcheb6de17(src, tgt) "4e58daa5";\r\n } "eea540a9";\r\n } "235e401b";\r\n } "dbf656f7";\r\n}\r\n\r\ngroup cheobservationcheb6de01(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-cheb6de01";\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.B6.DE01' "code-cheb6de01";\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.B6.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "05e38595";\r\n}\r\n\r\ngroup cheobservationcheb6de02(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-cheb6de02";\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.B6.DE02' "code-cheb6de02";\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.B6.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 = 'CHE.B6.DE02' -> tgt.status = 'final', tgt.value = true "4c455bee";\r\n } "7eb43d9f";\r\n } "80862475";\r\n } "fb38120a";\r\n}\r\n\r\ngroup cheobservationcheb6de03(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-cheb6de03";\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.B6.DE03' "code-cheb6de03";\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.B6.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "7e4bcec7";\r\n}\r\n\r\ngroup cheobservationcheb6de03a(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-cheobservationcheb6de03a";\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.B6.DE03A' "code-cheobservationcheb6de03a";\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.B6.DE03A') and answer.exists() then {\r\n item.answer first as a then {\r\n a where value = 'Low' then {\r\n a -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = 'Low', c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', tgt.status = 'final' "f9b4a56b";\r\n } "70911ad5";\r\n a where value = 'Normal' then {\r\n a -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = 'Normal', c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', tgt.status = 'final' "d4c7e2f1";\r\n } "7673921d";\r\n a where value = 'High' then {\r\n a -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = 'High', c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', tgt.status = 'final' "6a061bec";\r\n } "a67e1fa8";\r\n a where value = 'Very High' then {\r\n a -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = 'Very High', c.system = 'https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes', tgt.status = 'final' "b6176e12";\r\n } "c3a301f6";\r\n } "dab04994";\r\n } "b2cf95fc";\r\n}\r\n\r\ngroup cheobservationcheb6de04(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-cheb6de04";\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.B6.DE04' "code-cheb6de04";\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.B6.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B6.DE04' -> tgt.status = 'final', tgt.value = true "082a5a5b";\r\n } "a1569413";\r\n } "79f2356f";\r\n } "e10475e2";\r\n}\r\n\r\ngroup cheobservationcheb6de05(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-cheb6de05";\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.B6.DE05' "code-cheb6de05";\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.B6.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-cheb6de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-cheb6de05";\r\n } "bdab9370";\r\n } "2b7bfcfb";\r\n}\r\n\r\ngroup cheobservationcheb6de06(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-cheb6de06";\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.B6.DE06' "code-cheb6de06";\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.B6.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "7fb9e270";\r\n}\r\n\r\ngroup cheobservationcheb6de07(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-cheb6de07";\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.B6.DE07' "code-cheb6de07";\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.B6.DE07') 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 = 'CHE.B6.DE07' -> tgt.status = 'final', tgt.value = true "7244c96c";\r\n } "14a0e441";\r\n } "a0df1df0";\r\n } "d420551b";\r\n}\r\n\r\ngroup cheobservationcheb6de08(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-cheb6de08";\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.B6.DE08' "code-cheb6de08";\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.B6.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "9d5ae717";\r\n}\r\n\r\ngroup cheobservationcheb6de09(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-cheb6de09";\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.B6.DE09' "code-cheb6de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "00bc55d3";\r\n } "c2a32317";\r\n}\r\n\r\ngroup cheobservationcheb6de10(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-cheb6de10";\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.B6.DE10' "code-cheb6de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'CHE.B6.DE10' -> tgt.status = 'final', tgt.value = true "2cd83909";\r\n } "030ed792";\r\n } "ea3fb971";\r\n } "63d668d5";\r\n } "2eb69970";\r\n}\r\n\r\ngroup cheobservationcheb6de11(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-cheb6de11";\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.B6.DE11' "code-cheb6de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE11') 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 = 'CHE.B6.DE11' -> tgt.status = 'final', tgt.value = true "f6021a2f";\r\n } "acf546ac";\r\n } "7f1a42c4";\r\n } "87e070ed";\r\n } "a542c74d";\r\n}\r\n\r\ngroup cheobservationcheb6de12(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-cheb6de12";\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.B6.DE12' "code-cheb6de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "5d6fd97e";\r\n } "8291c0aa";\r\n}\r\n\r\ngroup cheobservationcheb6de12a(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-cheb6de12a";\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.B6.DE12a' "code-cheb6de12a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE12a') 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 = 'CHE.B6.DE12a' -> tgt.status = 'final', tgt.value = true "ed79a8dc";\r\n } "0af43c26";\r\n } "c69413aa";\r\n } "c98bbe8a";\r\n } "76aa2893";\r\n}\r\n\r\ngroup cheobservationcheb6de13(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-cheb6de13";\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.B6.DE13' "code-cheb6de13";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'nan' then {\r\n itm1.item first as item where (linkId = 'CHE.B6.DE13') 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 = 'CHE.B6.DE13' -> tgt.status = 'final', tgt.value = true "87dd52a6";\r\n } "00cf19b6";\r\n } "35ef5c53";\r\n } "5150a99c";\r\n } "c4bfe5ef";\r\n}\r\n\r\ngroup cheobservationcheb6de17(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-cheb6de17";\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.B6.DE17' "code-cheb6de17";\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.B6.DE17') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "d57c5745";\r\n}\r\n\r\n</pre></div>"
},
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b6.measurements",
"version" : "0.1.0",
"name" : "che.b6.measurements",
"status" : "active",
"date" : "2023-10-04T12:32:21+00:00",
"publisher" : "WHO",
"contact" : [
{
"name" : "WHO",
"telecom" : [
{
"system" : "url",
"value" : "http://who.int"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse",
"mode" : "source",
"alias" : "'questionnaireResponse'"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
"mode" : "target",
"alias" : "'Bundle'"
},
{
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/observation",
"mode" : "target",
"alias" : "'Observation'"
},
{
"url" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation",
"mode" : "produced",
"alias" : "'CHE Observation'"
}
],
"group" : [
{
"name" : "bundletrans",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"type" : "questionnaireResponse",
"mode" : "source"
},
{
"name" : "bundle",
"type" : "Bundle",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "type",
"transform" : "copy",
"parameter" : [
{
"valueString" : "batch"
}
]
}
]
},
{
"name" : "96688536",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "36acd5b8",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "b050dbe4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "759c506c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de01",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "fcf951dc",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "2cd30c67",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "7912f7f5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "64a6f17a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de02",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "bcbb958a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "6550236e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "963d6b43",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "f1a0d13e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de03",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "063dcb5f",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE03A') and answer.exists()"
}
],
"rule" : [
{
"name" : "53e61c12",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "7dc45b09",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "8a611902",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de03a",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "e4378a0b",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "77b15e86",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "c472389d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "d6b2dbd7",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de04",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "bdc41345",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "68ab0cf3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "75b9474f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "be427d6c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de05",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "a93983c1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "16b8c4e2",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d583084c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "b2756ffd",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de06",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "75349866",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE07') and answer.exists()"
}
],
"rule" : [
{
"name" : "40fe4f2b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "88b3c48c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "cf5bb18a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de07",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "6fa035c2",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE08') and answer.exists()"
}
],
"rule" : [
{
"name" : "ca4936d1",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "02a2ad76",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "48fc44ae",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de08",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
},
{
"name" : "db6b24d1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "7eb2f39f",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE09') and answer.exists()"
}
],
"rule" : [
{
"name" : "1b83dcb0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "ac688541",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "2c910c1d",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de09",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "b8235762",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "99bf65e4",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE10') and answer.exists()"
}
],
"rule" : [
{
"name" : "67463bf3",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "2c4726b5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "645ace98",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de10",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "e3c37bc1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "f4f971be",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE11') and answer.exists()"
}
],
"rule" : [
{
"name" : "53d167be",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "54590134",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "00f97bed",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de11",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "ef1f3db1",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "b7f2c387",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE12') and answer.exists()"
}
],
"rule" : [
{
"name" : "3cbb4018",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "bed3131b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "ebd17f2c",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de12",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "f354f065",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "268ceea5",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE12a') and answer.exists()"
}
],
"rule" : [
{
"name" : "b9ac835e",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "d1760cb0",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "0381f656",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de12a",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "9e911c64",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "9cba2822",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE13') and answer.exists()"
}
],
"rule" : [
{
"name" : "3f3880d4",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "dae1657f",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "dee81779",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de13",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "dbf656f7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE17') and answer.exists()"
}
],
"rule" : [
{
"name" : "235e401b",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "entry",
"variable" : "entry"
}
],
"rule" : [
{
"name" : "b50ac4c5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "request",
"variable" : "request"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "method",
"transform" : "copy",
"parameter" : [
{
"valueString" : "POST"
}
]
},
{
"contextType" : "variable",
"variable" : "uuid",
"transform" : "uuid"
},
{
"context" : "request",
"contextType" : "variable",
"element" : "url",
"transform" : "append",
"parameter" : [
{
"valueString" : "/Observation/"
},
{
"valueId" : "uuid"
}
]
}
]
},
{
"name" : "eea540a9",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "entry",
"contextType" : "variable",
"element" : "resource",
"variable" : "tgt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Observation"
}
]
}
],
"rule" : [
{
"name" : "4e58daa5",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"contextType" : "variable",
"transform" : "copy",
"parameter" : [
{
"valueId" : "tgt"
}
]
}
],
"dependent" : [
{
"name" : "cheobservationcheb6de17",
"variable" : [
"src",
"tgt"
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de01",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de01",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de01",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE01"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "05e38595",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE01') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de02",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de02",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de02",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE02"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "fb38120a",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE02') and answer.exists()"
}
],
"rule" : [
{
"name" : "80862475",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "7eb43d9f",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "4c455bee",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE02'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de03",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de03",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de03",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE03"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "7e4bcec7",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE03') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de03a",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheobservationcheb6de03a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheobservationcheb6de03a",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE03A"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "b2cf95fc",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE03A') and answer.exists()"
}
],
"rule" : [
{
"name" : "dab04994",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "70911ad5",
"source" : [
{
"context" : "a",
"condition" : "value = 'Low'"
}
],
"rule" : [
{
"name" : "f9b4a56b",
"source" : [
{
"context" : "a"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "Low"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
},
{
"name" : "7673921d",
"source" : [
{
"context" : "a",
"condition" : "value = 'Normal'"
}
],
"rule" : [
{
"name" : "d4c7e2f1",
"source" : [
{
"context" : "a"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "Normal"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
},
{
"name" : "a67e1fa8",
"source" : [
{
"context" : "a",
"condition" : "value = 'High'"
}
],
"rule" : [
{
"name" : "6a061bec",
"source" : [
{
"context" : "a"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "High"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
},
{
"name" : "c3a301f6",
"source" : [
{
"context" : "a",
"condition" : "value = 'Very High'"
}
],
"rule" : [
{
"name" : "b6176e12",
"source" : [
{
"context" : "a"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"variable" : "cc",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "cc",
"contextType" : "variable",
"element" : "coding",
"variable" : "c",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "Very High"
}
]
},
{
"context" : "c",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de04",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de04",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de04",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE04"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "e10475e2",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE04') and answer.exists()"
}
],
"rule" : [
{
"name" : "79f2356f",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "a1569413",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "082a5a5b",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE04'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de05",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de05",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de05",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE05"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "2b7bfcfb",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE05') and answer.exists()"
}
],
"rule" : [
{
"name" : "bdab9370",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "final-cheb6de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = true"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
},
{
"name" : "notfound-cheb6de05",
"source" : [
{
"context" : "a",
"condition" : "a.value = false"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "cancelled"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : false
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de06",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de06",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de06",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE06"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "7fb9e270",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE06') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de07",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de07",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de07",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE07"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "d420551b",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE07') and answer.exists()"
}
],
"rule" : [
{
"name" : "a0df1df0",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "14a0e441",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "7244c96c",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE07'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de08",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de08",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de08",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE08"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "9d5ae717",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE08') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de09",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de09",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de09",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE09"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "c2a32317",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "00bc55d3",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE09') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de10",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de10",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de10",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE10"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "2eb69970",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "63d668d5",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE10') and answer.exists()"
}
],
"rule" : [
{
"name" : "ea3fb971",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "030ed792",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "2cd83909",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE10'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de11",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de11",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de11",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE11"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "a542c74d",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "87e070ed",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE11') and answer.exists()"
}
],
"rule" : [
{
"name" : "7f1a42c4",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "acf546ac",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "f6021a2f",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE11'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de12",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de12",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de12",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE12"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "8291c0aa",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "5d6fd97e",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE12') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de12a",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de12a",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de12a",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE12a"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "76aa2893",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "c98bbe8a",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE12a') and answer.exists()"
}
],
"rule" : [
{
"name" : "c69413aa",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "0af43c26",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "ed79a8dc",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE12a'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de13",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de13",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de13",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE13"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "c4bfe5ef",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "itm1",
"condition" : "linkId = 'nan'"
}
],
"rule" : [
{
"name" : "5150a99c",
"source" : [
{
"context" : "itm1",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE13') and answer.exists()"
}
],
"rule" : [
{
"name" : "35ef5c53",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "00cf19b6",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"rule" : [
{
"name" : "87dd52a6",
"source" : [
{
"context" : "val",
"condition" : "val.code = 'CHE.B6.DE13'"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueBoolean" : true
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "cheobservationcheb6de17",
"typeMode" : "none",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-cheb6de17",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "identifier",
"variable" : "CodeID",
"transform" : "create",
"parameter" : [
{
"valueString" : "Identifier"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/namingsystem-identifier-type"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "use",
"transform" : "copy",
"parameter" : [
{
"valueString" : "official"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueString" : "uuid"
}
]
},
{
"context" : "CodeID",
"contextType" : "variable",
"element" : "id",
"transform" : "uuid"
}
]
},
{
"name" : "35bc6b82",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "encounter"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "encounter",
"transform" : "copy",
"parameter" : [
{
"valueId" : "encounter"
}
]
}
]
},
{
"name" : "code-cheb6de17",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "meta",
"variable" : "newMeta",
"transform" : "create",
"parameter" : [
{
"valueString" : "Meta"
}
]
},
{
"context" : "newMeta",
"contextType" : "variable",
"element" : "profile",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureDefinition/cheobservation"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "code",
"variable" : "concept",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
},
{
"context" : "concept",
"contextType" : "variable",
"element" : "coding",
"variable" : "coding",
"transform" : "create",
"parameter" : [
{
"valueString" : "Coding"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/CodeSystem/che-custom-codes"
}
]
},
{
"context" : "coding",
"contextType" : "variable",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "CHE.B6.DE17"
}
]
}
]
},
{
"name" : "aae7a11d",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "itemtimestamp",
"condition" : "linkId = 'timestamp'"
}
],
"rule" : [
{
"name" : "7f22f29f",
"source" : [
{
"context" : "itemtimestamp",
"element" : "answer",
"listMode" : "first",
"variable" : "atimestamp"
}
],
"rule" : [
{
"name" : "5af77f2c",
"source" : [
{
"context" : "atimestamp",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "issued",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
}
]
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "subject"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "subject",
"transform" : "copy",
"parameter" : [
{
"valueId" : "subject"
}
]
}
]
},
{
"name" : "d57c5745",
"source" : [
{
"context" : "src",
"element" : "item",
"listMode" : "first",
"variable" : "item",
"condition" : "(linkId = 'CHE.B6.DE17') and answer.exists()"
}
],
"rule" : [
{
"name" : "d40466ff",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "a"
}
],
"rule" : [
{
"name" : "afa0ccc0",
"source" : [
{
"context" : "a",
"element" : "value",
"variable" : "val"
}
],
"target" : [
{
"context" : "tgt",
"contextType" : "variable",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "val"
}
]
},
{
"context" : "tgt",
"contextType" : "variable",
"element" : "status",
"transform" : "copy",
"parameter" : [
{
"valueString" : "final"
}
]
}
]
}
]
}
]
}
]
}
]
}
IG © 2023+ WHO. Package smart-ig-che-cds#0.1.0 based on FHIR 4.0.1. Generated 2023-10-04
Links: Table of Contents |
QA Report
| Version History | License