WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies
0.1.0 - release

WHO FHIR Implementation Guide (IG): Integrated Management of Childhood Illness (IMCI) in emergencies, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-emcare/tree/feature/update-canonical and changes regularly. See the Directory of published versions

## StructureMap: Ccc.b22.respiratoryrate

Official URL: https://smart.who.int/ccc/StructureMap/Ccc.b22.respiratoryrate | Version: 0.1.0
Active as of 2026-04-07 | Computable Name: Ccc.b22.respiratoryrate

    map "https://smart.who.int/ccc/StructureMap/Ccc.b22.respiratoryrate" = "Ccc.b22.respiratoryrate"

    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://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target
    uses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc 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 = 'Ccc.B22.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 CccobservationCccb22de01(src, tgt) "94788d70";
          } "cafa1f90";
        } "44017cb3";
      } "77649f73";
      src.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de02(src, tgt) "c3e885af";
          } "60b301de";
        } "815e425c";
      } "7ee0496a";
      src.item first as itm1 where linkId = 'second' then {
        itm1.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de04(src, tgt) "42ed4c3a";
            } "b802d4a2";
          } "c7431f4f";
        } "db1f14c6";
      } "b4376f1a";
      src.item first as itm1 where linkId = 'second' then {
        itm1.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de05(src, tgt) "3be4cd34";
            } "b7585bc2";
          } "61b1a5c6";
        } "e18939cc";
      } "521e128f";
      src.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de07(src, tgt) "fa30cee1";
          } "aad75965";
        } "8267defb";
      } "f682bc2d";
    }

    group CccobservationCccb22de01(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-Cccb22de01";
      src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
      src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE01' "code-Cccb22de01";
      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 = 'Ccc.B22.DE01') and answer.exists() then {
        item.answer first as a then {
          a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";
        } "d40466ff";
      } "49ffb8b4";
    }

    group CccobservationCccb22de02(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-Cccb22de02";
      src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
      src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE02' "code-Cccb22de02";
      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 = 'Ccc.B22.DE02') and answer.exists() then {
        item.answer first as a then {
          a.value as val then {
            val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";
          } "26c2c8c7";
        } "721205d5";
      } "3b9acb5e";
    }

    group CccobservationCccb22de04(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-Cccb22de04";
      src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
      src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE04' "code-Cccb22de04";
      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 = 'second' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {
          item.answer first as a then {
            a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";
          } "d40466ff";
        } "a51bfd6b";
      } "dfb413f3";
    }

    group CccobservationCccb22de05(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-Cccb22de05";
      src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
      src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE05' "code-Cccb22de05";
      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 = 'second' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {
          item.answer first as a then {
            a.value as val then {
              val where val.code = 'true' ->  tgt.status = 'final',  tgt.value = true "8a65aaa5";
            } "26c2c8c7";
          } "721205d5";
        } "64195ab2";
      } "e7a272dd";
    }

    group CccobservationCccb22de07(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-Cccb22de07";
      src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";
      src.subject as subject ->  tgt.subject = subject,  tgt.meta = create('Meta') as newMeta,  newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/Cccobservation',  tgt.code = create('CodeableConcept') as concept,  concept.coding = create('Coding') as coding,  coding.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  coding.code = 'Ccc.B22.DE07' "code-Cccb22de07";
      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 = 'Ccc.B22.DE07') and answer.exists() then {
        item.answer first as a then {
          a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de07";
          a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de07";
        } "bdab9370";
      } "07e9b85b";
    }