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.assessmentstests

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

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

    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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "1c5108b8";
      } "88bb5c43";
      src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "85d3c3a3";
      } "c7e0dbc2";
      src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.item first as itm2 where linkId = 'second' then {
          itm2.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";
          } "ad5094ed";
        } "3b2e9629";
      } "318dfe75";
      src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.item first as itm2 where linkId = 'second' then {
          itm2.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";
          } "d9d928a7";
        } "9853d168";
      } "c21c2c7c";
      src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "a2eebe03";
      } "7ef76f25";
      src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de08(src, tgt) "d34db40c";
            } "bd8403a6";
          } "09eb3e1a";
        } "1b0282c4";
      } "38d251fb";
      src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE14') 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 CccobservationCccb22de14(src, tgt) "128f555c";
            } "2cba61ee";
          } "1eb502ac";
        } "b29de87e";
      } "83edc111";
      src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE14a') 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 CccobservationCccb22de14a(src, tgt) "7b46291c";
            } "17f1508c";
          } "64f82f5e";
        } "37f27338";
      } "e265d4b9";
      src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE15') 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 CccobservationCccb22de15(src, tgt) "0d25d61c";
            } "49095bbf";
          } "7ffa5829";
        } "fe87fcb7";
      } "5149a74c";
      src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE16') 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 CccobservationCccb22de16(src, tgt) "2bef72fa";
            } "f426fdde";
          } "f53bf22c";
        } "e18b8f07";
      } "5b507a5c";
      src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18') then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de18t(src, tgt) "4b4e3882";
              } "a29f448d";
            } "8c5fbec1";
          } "34815add";
        } "a5dcb8ca";
      } "ea50860d";
      src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18').empty() then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de18f(src, tgt) "4fd23ec4";
              } "e477bbcc";
            } "c329f1a7";
          } "05305e3f";
        } "b43560b2";
      } "b2efd7b0";
      src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19') then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de19t(src, tgt) "832556c2";
              } "25d864fa";
            } "d659dd64";
          } "b4d55b8a";
        } "427a7e63";
      } "bb829570";
      src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19').empty() then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de19f(src, tgt) "917126ea";
              } "4d341549";
            } "7cf5a310";
          } "f627de60";
        } "b50887e7";
      } "65731df1";
      src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20') then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de20t(src, tgt) "178da581";
              } "1e80b046";
            } "d67193a2";
          } "43435fc6";
        } "663fb49d";
      } "720e8bc9";
      src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20').empty() then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de20f(src, tgt) "4fa88d49";
              } "30a84474";
            } "25416983";
          } "6a7e0a13";
        } "16556d1c";
      } "ddaf5ab3";
      src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21') then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de21t(src, tgt) "628bfa1d";
              } "0bf9d78c";
            } "b0fa129e";
          } "32b27262";
        } "9c9cb9cf";
      } "c28d7273";
      src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21').empty() then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de21f(src, tgt) "f42ef3e7";
              } "65279195";
            } "954bbaec";
          } "db19cd6e";
        } "a57951b9";
      } "00b8d186";
      src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22') then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de22t(src, tgt) "a1caf2e7";
              } "cea3f121";
            } "f3d4e5ff";
          } "b7ccc20a";
        } "a057c365";
      } "6bf6c194";
      src where src.item.where(linkId = 'Ccc.B22.DE17').exists() and src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22').empty() then {
        src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
          itm1.item first as item where (linkId = 'Ccc.B22.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 then CccobservationCccb22de17Cccb22de22f(src, tgt) "df402cb9";
              } "a7736492";
            } "0fd648ea";
          } "708ba8cc";
        } "141fcb13";
      } "0a2cfb8c";
      src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE22') 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 CccobservationCccb22de22(src, tgt) "b9010fac";
            } "109bcf94";
          } "88ceffcd";
        } "f6b5295e";
      } "ff982ab4";
      src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE21') 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 CccobservationCccb22de21(src, tgt) "7c45409d";
            } "ec6cbc70";
          } "2bc763d0";
        } "08d4fa9d";
      } "dbbe5168";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de41(src, tgt) "35802f20";
            } "765c240d";
          } "9de4a229";
        } "95a734dc";
      } "e0648fb3";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE28') 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 CccobservationCccb22de28(src, tgt) "dd9106b0";
            } "72695e81";
          } "5cc117e5";
        } "72d43aa2";
      } "2eb0afb7";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE29') 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 CccobservationCccb22de29(src, tgt) "0bd03bad";
            } "64565ab8";
          } "a568a312";
        } "c9435680";
      } "532862db";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE30') 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 CccobservationCccb22de30(src, tgt) "a8dbbfa4";
            } "470a9773";
          } "6aff1bf2";
        } "58ef8f91";
      } "d3925452";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE31') 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 CccobservationCccb22de31(src, tgt) "3a858f1f";
            } "bab0e868";
          } "47ecf4e4";
        } "adf0b112";
      } "800f010d";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE32') 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 CccobservationCccb22de32(src, tgt) "5537f1d1";
            } "38fb811c";
          } "77934152";
        } "07d1a84a";
      } "41f81bdf";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE33') 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 CccobservationCccb22de33(src, tgt) "b9ca07b3";
            } "e7981b54";
          } "b81929fc";
        } "65ea8f25";
      } "92c89def";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE34') 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 CccobservationCccb22de34(src, tgt) "81a7b6a0";
            } "a60a44da";
          } "9f5867b0";
        } "7a811ac1";
      } "c95a75ed";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE35') 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 CccobservationCccb22de35(src, tgt) "99cdb2a9";
            } "7976f991";
          } "6b8eb7c7";
        } "b3f8de08";
      } "4d431e35";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE36') 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 CccobservationCccb22de36(src, tgt) "5d275331";
            } "cec8e27b";
          } "e67b8382";
        } "a45c350b";
      } "3cf7714c";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.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 CccobservationCccb22de42(src, tgt) "273b1a16";
            } "213a0dca";
          } "56a5bbd9";
        } "d7b806aa";
      } "840b2bb8";
      src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE44') 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 CccobservationCccb22de44(src, tgt) "843d7b1e";
            } "70061b03";
          } "0e593cb2";
        } "f7138270";
      } "3f3d258e";
      src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE81') 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 CccobservationCccb22de81(src, tgt) "f56b8d65";
            } "42cac8d1";
          } "00ff1e0b";
        } "12925695";
      } "c39fe6fd";
      src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE82') 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 CccobservationCccb22de82(src, tgt) "1118b2e0";
            } "565f125e";
          } "cc5012ad";
        } "ebd0ce98";
      } "26935d1f";
      src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE47') 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 CccobservationCccb22de47(src, tgt) "27e1ae58";
            } "68ad31bf";
          } "6ac0c1c9";
        } "39718bc0";
      } "9b034abe";
      src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE46') 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 CccobservationCccb22de46(src, tgt) "d4ea6333";
            } "1ee0adeb";
          } "9266b262";
        } "47f73f1e";
      } "20d6b9bb";
      src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE50') 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 CccobservationCccb22de50(src, tgt) "b5c48578";
            } "1d3deeec";
          } "82120e52";
        } "618f3cba";
      } "f1772432";
    }

    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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "e1cd1fa1";
      } "ad8e4fa6";
    }

    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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "38b3c27b";
      } "5b046e45";
    }

    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 = 'Ccc.B22.RespiratoryRate' then {
        itm1.item first as itm2 where linkId = 'second' then {
          itm2.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";
          } "f66ca63f";
        } "1b837896";
      } "6b3a0b06";
    }

    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 = 'Ccc.B22.RespiratoryRate' then {
        itm1.item first as itm2 where linkId = 'second' then {
          itm2.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";
          } "48a81a4f";
        } "9322cbb7";
      } "ed73ec89";
    }

    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 itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {
        itm1.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";
        } "b5e73929";
      } "306838ed";
    }

    group CccobservationCccb22de08(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-Cccb22de08";
      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.DE08' "code-Cccb22de08";
      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 = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {
          item.answer first as a then {
            a.value as val then {
              val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
              val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";
            } "310f4b1f";
          } "6af9bfcc";
        } "3b9ba04d";
      } "6d73c74e";
    }

    group CccobservationCccb22de14(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-Cccb22de14";
      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.DE14' "code-Cccb22de14";
      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 = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE14') 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";
        } "55651876";
      } "5bdf34bc";
    }

    group CccobservationCccb22de14a(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-Cccb22de14a";
      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.DE14a' "code-Cccb22de14a";
      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 = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de14a";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de14a";
          } "bdab9370";
        } "e332bfd7";
      } "1a47ca2a";
    }

    group CccobservationCccb22de15(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-Cccb22de15";
      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.DE15' "code-Cccb22de15";
      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 = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de15";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de15";
          } "bdab9370";
        } "166040b8";
      } "e23593aa";
    }

    group CccobservationCccb22de16(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-Cccb22de16";
      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.DE16' "code-Cccb22de16";
      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 = 'Ccc.B22.FluidTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {
          item.answer first as a then {
            a.value as val then {
              val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";
              val where val.code != 'none' ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = val,  tgt.status = 'final' "a1050460";
            } "310f4b1f";
          } "6af9bfcc";
        } "b1dde0d2";
      } "b36b8a09";
    }

    group CccobservationCccb22de17Cccb22de18t(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-CccobservationCccb22de17Cccb22de18t";
      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.DE17&Ccc.B22.DE18' "code-CccobservationCccb22de17Cccb22de18t";
      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 ->  tgt.status = 'final',  tgt.value = true "e9d639e1";
    }

    group CccobservationCccb22de17Cccb22de18f(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-CccobservationCccb22de17Cccb22de18f";
      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.DE17&Ccc.B22.DE18' "code-CccobservationCccb22de17Cccb22de18f";
      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 ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";
    }

    group CccobservationCccb22de17Cccb22de19t(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-CccobservationCccb22de17Cccb22de19t";
      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.DE17&Ccc.B22.DE19' "code-CccobservationCccb22de17Cccb22de19t";
      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 ->  tgt.status = 'final',  tgt.value = true "e9d639e1";
    }

    group CccobservationCccb22de17Cccb22de19f(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-CccobservationCccb22de17Cccb22de19f";
      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.DE17&Ccc.B22.DE19' "code-CccobservationCccb22de17Cccb22de19f";
      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 ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";
    }

    group CccobservationCccb22de17Cccb22de20t(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-CccobservationCccb22de17Cccb22de20t";
      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.DE17&Ccc.B22.DE20' "code-CccobservationCccb22de17Cccb22de20t";
      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 ->  tgt.status = 'final',  tgt.value = true "e9d639e1";
    }

    group CccobservationCccb22de17Cccb22de20f(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-CccobservationCccb22de17Cccb22de20f";
      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.DE17&Ccc.B22.DE20' "code-CccobservationCccb22de17Cccb22de20f";
      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 ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";
    }

    group CccobservationCccb22de17Cccb22de21t(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-CccobservationCccb22de17Cccb22de21t";
      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.DE17&Ccc.B22.DE21' "code-CccobservationCccb22de17Cccb22de21t";
      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 ->  tgt.status = 'final',  tgt.value = true "e9d639e1";
    }

    group CccobservationCccb22de17Cccb22de21f(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-CccobservationCccb22de17Cccb22de21f";
      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.DE17&Ccc.B22.DE21' "code-CccobservationCccb22de17Cccb22de21f";
      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 ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";
    }

    group CccobservationCccb22de17Cccb22de22t(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-CccobservationCccb22de17Cccb22de22t";
      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.DE17&Ccc.B22.DE22' "code-CccobservationCccb22de17Cccb22de22t";
      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 ->  tgt.status = 'final',  tgt.value = true "e9d639e1";
    }

    group CccobservationCccb22de17Cccb22de22f(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-CccobservationCccb22de17Cccb22de22f";
      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.DE17&Ccc.B22.DE22' "code-CccobservationCccb22de17Cccb22de22f";
      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 ->  tgt.status = 'cancelled',  tgt.value = false "f21d6e36";
    }

    group CccobservationCccb22de22(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-Cccb22de22";
      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.DE22' "code-Cccb22de22";
      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 = 'Ccc.B22.BronchodilatorTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE22') 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";
        } "3e1d6082";
      } "e1414539";
    }

    group CccobservationCccb22de21(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-Cccb22de21";
      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.DE21' "code-Cccb22de21";
      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 = 'Ccc.B22.BronchodilatorTest' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de21";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de21";
          } "bdab9370";
        } "36586abf";
      } "a412e00a";
    }

    group CccobservationCccb22de41(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-Cccb22de41";
      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.DE41' "code-Cccb22de41";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE41') 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";
        } "6df944ed";
      } "d888a973";
    }

    group CccobservationCccb22de28(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-Cccb22de28";
      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.DE28' "code-Cccb22de28";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de28";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de28";
          } "bdab9370";
        } "58c52233";
      } "aad3db2c";
    }

    group CccobservationCccb22de29(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-Cccb22de29";
      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.DE29' "code-Cccb22de29";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de29";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de29";
          } "bdab9370";
        } "95a367de";
      } "960d28f0";
    }

    group CccobservationCccb22de30(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-Cccb22de30";
      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.DE30' "code-Cccb22de30";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de30";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de30";
          } "bdab9370";
        } "c3834bca";
      } "3b102368";
    }

    group CccobservationCccb22de31(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-Cccb22de31";
      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.DE31' "code-Cccb22de31";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de31";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de31";
          } "bdab9370";
        } "bb8ba529";
      } "9e9be797";
    }

    group CccobservationCccb22de32(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-Cccb22de32";
      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.DE32' "code-Cccb22de32";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de32";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de32";
          } "bdab9370";
        } "4adca3b8";
      } "59b588e0";
    }

    group CccobservationCccb22de33(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-Cccb22de33";
      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.DE33' "code-Cccb22de33";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de33";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de33";
          } "bdab9370";
        } "ba6b3c81";
      } "56745630";
    }

    group CccobservationCccb22de34(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-Cccb22de34";
      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.DE34' "code-Cccb22de34";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de34";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de34";
          } "bdab9370";
        } "a958300a";
      } "f384d1b9";
    }

    group CccobservationCccb22de35(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-Cccb22de35";
      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.DE35' "code-Cccb22de35";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de35";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de35";
          } "bdab9370";
        } "9412283c";
      } "5ed5ea0e";
    }

    group CccobservationCccb22de36(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-CccobservationCccb22de36";
      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.DE36' "code-CccobservationCccb22de36";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {
          item.answer first as a then {
            a where value = 'Not well Attached to Breast', a.value as val then {
              val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = Ccc.B22.DE37,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "71afb672";
            } "a53091ee";
            a where value = 'Good Attachment', a.value as val then {
              val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = Ccc.B22.DE38,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "3053aa3e";
            } "239a32e6";
            a where value = 'Not Sucking Effectively', a.value as val then {
              val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = Ccc.B22.DE39,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "0e60e5cc";
            } "ae925fc5";
            a where value = 'Sucking Effectively', a.value as val then {
              val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = Ccc.B22.DE40,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "5eeaf122";
            } "714e8fb5";
          } "bd419d51";
        } "713debc5";
      } "b4145e76";
    }

    group CccobservationCccb22de42(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-Cccb22de42";
      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.DE42' "code-Cccb22de42";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de42";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de42";
          } "bdab9370";
        } "3dcc04b3";
      } "0d852c2e";
    }

    group CccobservationCccb22de44(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-Cccb22de44";
      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.DE44' "code-Cccb22de44";
      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 = 'Ccc.B22.BreastFeeding' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {
          item.answer first as a then {
            a where a.value = true ->  tgt.status = 'final',  tgt.value = true "final-Cccb22de44";
            a where a.value = false ->  tgt.status = 'cancelled',  tgt.value = false "notfound-Cccb22de44";
          } "bdab9370";
        } "d4bad53b";
      } "fbdc7921";
    }

    group CccobservationCccb22de81(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-Cccb22de81";
      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.DE81' "code-Cccb22de81";
      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 = 'Ccc.B22.Hemoglobin' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE81') and answer.exists() then {
          item.answer first as a then {
            a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";
          } "d40466ff";
        } "185ffa99";
      } "44836ba1";
    }

    group CccobservationCccb22de82(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-Cccb22de82";
      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.DE82' "code-Cccb22de82";
      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 = 'Ccc.B22.Hemoglobin' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE82') 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";
        } "29107a72";
      } "7485a680";
    }

    group CccobservationCccb22de47(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-Cccb22de47";
      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.DE47' "code-Cccb22de47";
      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 = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE47') and answer.exists() then {
          item.answer first as a then {
            a.value as val ->  tgt.value = val,  tgt.status = 'final' "afa0ccc0";
          } "d40466ff";
        } "10fc9c80";
      } "932aad6b";
    }

    group CccobservationCccb22de46(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-Cccb22de46";
      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.DE46' "code-Cccb22de46";
      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 = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE46') 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";
        } "b66a0bcd";
      } "b937d546";
    }

    group CccobservationCccb22de50(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-Cccb22de50";
      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.DE50' "code-Cccb22de50";
      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 = 'Ccc.B22.SecondTemperature' then {
        itm1.item first as item where (linkId = 'Ccc.B22.DE50') and answer.exists() then {
          item.answer first as a then {
            a.value as val then {
              val ->  tgt.value = create('CodeableConcept') as cc,  cc.coding = create('Coding') as c,  c.code = val,  c.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes',  tgt.status = 'final' "759a9a54";
            } "1b820ab0";
          } "d39f9088";
        } "336c73e3";
      } "3bf9ecd0";
    }