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.b24.de06.second.temper | Version: 0.1.0 | |||
Active as of 2023-10-04 | Computable Name: che.b24.de06.second.temper |
map "https://fhir.dk.swisstph-mis.ch/matchbox/fhir/StructureMap/che.b24.de06.second.temper" = "che.b24.de06.second.temper" 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.B24.G.DE39') 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 cheobservationcheb24gde39(src, tgt) "866cba39"; } "57cdfa7a"; } "8330e6e7"; } "49b43f38"; src.item first as item where (linkId = 'CHE.B24.G.DE40') 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 cheobservationcheb24gde40(src, tgt) "297a901f"; } "a4b017c6"; } "d7834417"; } "5d379969"; src.item first as item where (linkId = 'CHE.B24.G.DE41') 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 cheobservationcheb24gde41(src, tgt) "1e4185b0"; } "d39efd70"; } "84a3dc4b"; } "cb6ac395"; src.item first as item where (linkId = 'CHE.B24.G.DE42') 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 cheobservationcheb24gde42(src, tgt) "7b704f8b"; } "21aa74d5"; } "57daf351"; } "cccacbed"; src.item first as item where (linkId = 'CHE.B24.G.DE43') 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 cheobservationcheb24gde43(src, tgt) "0b7990fa"; } "869f035c"; } "9e13dac2"; } "28e740b3"; } group cheobservationcheb24gde39(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-cheb24gde39"; 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.B24.G.DE39' "code-cheb24gde39"; 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.B24.G.DE39') and answer.exists() then { item.answer first as a then { a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0"; } "d40466ff"; } "097f6a58"; } group cheobservationcheb24gde40(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-cheb24gde40"; 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.B24.G.DE40' "code-cheb24gde40"; 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.B24.G.DE40') and answer.exists() then { item.answer first as a then { a.value as val then { val where val.code = 'CHE.B24.G.DE40' -> tgt.status = 'final', tgt.value = true "292c4a79"; } "8271b135"; } "199216a4"; } "7f7c47ec"; } group cheobservationcheb24gde41(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-cheb24gde41"; 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.B24.G.DE41' "code-cheb24gde41"; 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.B24.G.DE41') and answer.exists() then { item.answer first as a then { a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0"; } "d40466ff"; } "8588d7a0"; } group cheobservationcheb24gde42(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-cheobservationcheb24gde42"; 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.B24.G.DE42' "code-cheobservationcheb24gde42"; 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.B24.G.DE42') 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"; } "de12f5db"; } group cheobservationcheb24gde43(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-cheb24gde43"; 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.B24.G.DE43' "code-cheb24gde43"; 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.B24.G.DE43') and answer.exists() then { item.answer first as a then { a.value as val then { val where val.code = 'CHE.B24.G.DE43' -> tgt.status = 'final', tgt.value = true "e0a426db"; } "e1ba65b0"; } "b567d9ca"; } "1cd8ee7f"; }