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