From d5b803a21e1822b1f50c7e127dfeab8a370be522 Mon Sep 17 00:00:00 2001
From: delcroip
\nin different ways. They may say that their child\u2019s breathing is \u201cfast\u201d or \u201cnoisy\u201d or \u201cinterrupted.\u201d If a mother answers no, look to see if you think the child has cough or difficult breathing.",
"type": "display"
}
@@ -191,11 +191,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B10S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B10S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B10S1.DE02",
+ "linkId": "Ccc.B10S1.DE02",
"text": "Difficulty breathing for how long?",
"type": "choice",
"required": false,
@@ -203,15 +203,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE08",
"display": "14 days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE07",
"display": "Less than 14 days"
}
}
@@ -224,7 +224,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B11S1.DE01",
+ "linkId": "Ccc.B11S1.DE01",
"text": "Diarrhoea",
"type": "boolean",
"required": true,
@@ -244,7 +244,7 @@
}
}
],
- "linkId": "EmCare.B11S1.DE01-help",
+ "linkId": "Ccc.B11S1.DE01-help",
"text": "Diarrhoea occurs when stools contain more water than normal, and are loose or watery. Diarrhoea is defined as three or more loose or watery stools in a 24-hour period.",
"type": "display"
}
@@ -256,11 +256,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B11S1.DE01').answer.first().value= true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B11S1.DE01').answer.first().value= true"
}
}
],
- "linkId": "EmCare.B11S1.DE02",
+ "linkId": "Ccc.B11S1.DE02",
"text": "Diarrhoea for how long?",
"type": "choice",
"required": false,
@@ -268,15 +268,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE08",
"display": "14 days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE07",
"display": "Less than 14 days"
}
}
@@ -292,11 +292,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B11S1.DE01').answer.first().value= true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B11S1.DE01').answer.first().value= true"
}
}
],
- "linkId": "EmCare.B11S1.DE05",
+ "linkId": "Ccc.B11S1.DE05",
"text": "Blood in the stool in this Illness",
"type": "boolean",
"required": false,
@@ -316,7 +316,7 @@
}
}
],
- "linkId": "EmCare.B11S1.DE05-help",
+ "linkId": "Ccc.B11S1.DE05-help",
"text": "Ask the mother if she has seen blood in the stools at any time during this episode of diarrhoea. Dysentery is diarrhoea with blood in the stool, with or without mucus. The most common cause of dysentery is Shigella bacteria. Dysentery will require specific treatments.",
"type": "display"
}
@@ -329,7 +329,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B12S1.DE02",
+ "linkId": "Ccc.B12S1.DE02",
"text": "Fever Reported",
"type": "boolean",
"required": true,
@@ -349,7 +349,7 @@
}
}
],
- "linkId": "EmCare.B12S1.DE02-help",
+ "linkId": "Ccc.B12S1.DE02-help",
"text": "Ask the caregiver: \u201cDoes the child have fever?\u201d The child has a history of fever if the child has had any fever with this illness",
"type": "display"
}
@@ -361,11 +361,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B.G.DE06').answer.first().value= true and %resource.repeat(item).where(linkId='EmCare.B12S1.DE02').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B.G.DE06').answer.first().value= true and %resource.repeat(item).where(linkId='Ccc.B12S1.DE02').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B12S1.DE03-l",
+ "linkId": "Ccc.B12S1.DE03-l",
"text": "Fever for how long?",
"type": "choice",
"required": false,
@@ -373,15 +373,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B12S1.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B12S1.DE05",
"display": "7 Days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B12S1.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B12S1.DE04",
"display": "Less than 7 days"
}
}
@@ -397,11 +397,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B.G.DE06').answer.first().value= true and %resource.repeat(item).where(linkId='EmCare.B12S1.DE02').answer.first().value=false,'EmCare.B12S1.DE04',%resource.repeat(item).where(linkId='EmCare.B12S1.DE03-l').answer.first().value)"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B.G.DE06').answer.first().value= true and %resource.repeat(item).where(linkId='Ccc.B12S1.DE02').answer.first().value=false,'Ccc.B12S1.DE04',%resource.repeat(item).where(linkId='Ccc.B12S1.DE03-l').answer.first().value)"
}
}
],
- "linkId": "EmCare.B12S1.DE03",
+ "linkId": "Ccc.B12S1.DE03",
"text": "Fever for how long?",
"type": "choice",
"required": false,
@@ -409,15 +409,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B12S1.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B12S1.DE05",
"display": "7 Days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B12S1.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B12S1.DE04",
"display": "Less than 7 days"
}
}
@@ -437,11 +437,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B12S1.DE01').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B12S1.DE02').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B12S1.DE01').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B12S1.DE02').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B.G.DE06",
+ "linkId": "Ccc.B.G.DE06",
"text": "Fever",
"type": "boolean",
"required": false,
@@ -457,11 +457,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B12S1.DE03-l').answer.first().value.code = 'EmCare.B12S1.DE05' and %resource.repeat(item).where(linkId='EmCare.B.G.DE06').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B12S1.DE03-l').answer.first().value.code = 'Ccc.B12S1.DE05' and %resource.repeat(item).where(linkId='Ccc.B.G.DE06').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B12S1.DE06",
+ "linkId": "Ccc.B12S1.DE06",
"text": "Has Fever been present every day since the Fever started?",
"type": "boolean",
"required": false,
@@ -474,7 +474,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B13S1.DE01",
+ "linkId": "Ccc.B13S1.DE01",
"text": "Ear problem",
"type": "boolean",
"required": true,
@@ -490,11 +490,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B13S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B13S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B13S1.DE02",
+ "linkId": "Ccc.B13S1.DE02",
"text": "Ear pain",
"type": "boolean",
"required": true,
@@ -514,7 +514,7 @@
}
}
],
- "linkId": "EmCare.B13S1.DE02-help",
+ "linkId": "Ccc.B13S1.DE02-help",
"text": "If the carIf the caregiver is not sure that the child has ear pain, ask if the child has been irritable and rubbing his ear. egiver is not sure that the child has ear pain, ask if the child has been irritable and rubbing his ear.",
"type": "display"
}
@@ -530,11 +530,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B13S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B13S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B13S1.DE03",
+ "linkId": "Ccc.B13S1.DE03",
"text": "Ear discharge",
"type": "boolean",
"required": false,
@@ -546,11 +546,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B13S1.DE03').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B13S1.DE03').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B13S1.DE04",
+ "linkId": "Ccc.B13S1.DE04",
"text": "Ear discharge for how long?",
"type": "choice",
"required": false,
@@ -558,15 +558,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE08",
"display": "14 days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE07",
"display": "Less than 14 days"
}
}
@@ -579,7 +579,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B14S1.DE03",
+ "linkId": "Ccc.B14S1.DE03",
"text": "Eye Problem",
"type": "boolean",
"required": true,
@@ -599,7 +599,7 @@
}
}
],
- "linkId": "EmCare.B14S1.DE01",
+ "linkId": "Ccc.B14S1.DE01",
"text": "Skin Problem",
"type": "boolean",
"required": true,
@@ -615,11 +615,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B14S1.DE02",
+ "linkId": "Ccc.B14S1.DE02",
"text": "Itchy Skin",
"type": "boolean",
"required": true,
diff --git a/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json b/input/resources/questionnaire/questionnaire-Ccc.b10-16.signs.2m.p.json
similarity index 87%
rename from input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json
rename to input/resources/questionnaire/questionnaire-Ccc.b10-16.signs.2m.p.json
index 873b9159..9b22d778 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b10-16.signs.2m.p.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b10-16.signs.2m.p.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b10-16.signs.2m.p",
+ "id": "Ccc.b10-16.signs.2m.p",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b10-16.signs.2m.p"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1016signs2mp"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb1016signs2mp"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b10-16.signs.2m.p",
- "name": "EmCare.B10-16.Signs.2m.p",
- "title": "EmCare.B10-16.Signs.2m.p",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b10-16.signs.2m.p",
+ "name": "Ccc.B10-16.Signs.2m.p",
+ "title": "Ccc.B10-16.Signs.2m.p",
"status": "active",
"experimental": false,
"subjectType": [
@@ -383,7 +383,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.respiratoryrate"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -393,7 +393,7 @@
}
}
],
- "linkId": "EmCare.B22.RespiratoryRate",
+ "linkId": "Ccc.B22.RespiratoryRate",
"type": "group",
"required": false,
"repeats": false,
@@ -411,7 +411,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
}
},
{
@@ -422,7 +422,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01",
+ "linkId": "Ccc.B22.DE01",
"text": "Respiratory Rate (breaths per minute)",
"type": "quantity",
"required": true,
@@ -442,7 +442,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01-help",
+ "linkId": "Ccc.B22.DE01-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -467,18 +467,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE02",
+ "linkId": "Ccc.B22.DE02",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE02",
+ "code": "Ccc.B22.DE02",
"display": "Unable to perform Respiratory Rate at this time"
}
}
@@ -490,7 +490,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
}
}
],
@@ -512,11 +512,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE04",
+ "linkId": "Ccc.B22.DE04",
"text": "Respiratory Rate Second Count (breaths per minute)",
"type": "quantity",
"required": false,
@@ -536,7 +536,7 @@
}
}
],
- "linkId": "EmCare.B22.DE04-help",
+ "linkId": "Ccc.B22.DE04-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -561,18 +561,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE05",
+ "linkId": "Ccc.B22.DE05",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE05",
+ "code": "Ccc.B22.DE05",
"display": "Respiratory Rate Second Count Not Possible"
}
}
@@ -590,18 +590,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min')"
+ "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min')"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})"
+ "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})"
}
}
],
- "linkId": "EmCare.B22.DE07",
+ "linkId": "Ccc.B22.DE07",
"text": "Fast Breathing",
"type": "boolean",
"required": false,
@@ -622,7 +622,7 @@
}
}
],
- "linkId": "EmCare.B22.DE07-help",
+ "linkId": "Ccc.B22.DE07-help",
"text": "The number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age. * Under 2 months: More than 60 breaths per minute* * 2 to 11 months: More than 50 breaths per minute * 12 to 59 months: More than 40 breaths per minute *In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -644,7 +644,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE03",
+ "linkId": "Ccc.B10S2.DE03",
"text": "Chest Indrawing",
"type": "boolean",
"required": true,
@@ -664,7 +664,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE03-help",
+ "linkId": "Ccc.B10S2.DE03-help",
"text": "NORMAL: When child breaths IN, chest wall moves OUT
\nCHEST INDRAWING: When child breaths IN, chest wall moves IN
Chest indrawing occurs when the child needs to make a greater effort than normal to breathe in. You will look for chest indrawing when the child breathes IN.
\n\n\tIn normal breathing, the whole chest wall (upper and lower) and the abdomen move OUT when the child breathes IN. The child has chest indrawing if the lower chest wall (lower ribs) goes IN when the child breathes IN.",
"type": "display"
}
@@ -684,7 +684,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE04",
+ "linkId": "Ccc.B10S2.DE04",
"text": "Stridor in a calm child",
"type": "boolean",
"required": true,
@@ -704,7 +704,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE04-help",
+ "linkId": "Ccc.B10S2.DE04-help",
"text": "Stridor is a harsh noise made when a child breathes IN.
\nPut your ear near the child\u2019s mouth because stridor can be difficult to hear. Sometimes you will hear a wet noise if the child\u2019s nose is blocked. Clear the nose, and listen again.
Be sure to look and listen for stridor when the child is calm.
\nA child who is not very ill may have stridor only when he is crying or upset. However, a child who is calm and also has stridor has a dangerous situation.",
"type": "display"
}
@@ -724,7 +724,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE05",
+ "linkId": "Ccc.B10S2.DE05",
"text": "Wheezing",
"type": "boolean",
"required": true,
@@ -744,7 +744,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE05-help",
+ "linkId": "Ccc.B10S2.DE05-help",
"text": "Wheeze is a high-pitched whistling or musical sound heard at the end of the breathing OUT. The child\u2019s small air passages narrow to cause wheezing.
\nTo hear wheezing, put your ear near to the child\u2019s mouth when the child is calm. Look at the child\u2019s breathing while you listen to check that the sound mainly occurs when the child breathes out",
"type": "display"
}
@@ -760,11 +760,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B10S2.DE05').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B10S2.DE05').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B10S2.DE06",
+ "linkId": "Ccc.B10S2.DE06",
"text": "Recurrent Wheeze",
"type": "boolean",
"required": false,
@@ -784,7 +784,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE06-help",
+ "linkId": "Ccc.B10S2.DE06-help",
"text": "Recurrent wheezing can be a sign of asthma, tuberculosis or other important health problems which require further assessment",
"type": "display"
}
@@ -796,7 +796,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "(%resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='Difficulty Breathing').answer.first().value = true ) and %resource.repeat(item).where(linkId='EmCare.B10S2.DE04').answer.first().value = false"
+ "expression": "(%resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='Difficulty Breathing').answer.first().value = true ) and %resource.repeat(item).where(linkId='Ccc.B10S2.DE04').answer.first().value = false"
}
}
],
@@ -818,11 +818,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='EmCare.B10S2.DE09').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='Ccc.B10S2.DE09').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B10S2.DE07",
+ "linkId": "Ccc.B10S2.DE07",
"text": "Oxygen Saturation",
"type": "quantity",
"required": false,
@@ -842,7 +842,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE07-help",
+ "linkId": "Ccc.B10S2.DE07-help",
"text": "If pulse oximeter is available, determine oxygen saturation (SpO2).
\nAfter turning on, position the appropriate probe based on the child’s size. If using on a finger or toe, make sure the area is clean and without nail varnish. Ensure that a good (even) pulse signal (waveform) is displayed before taking the reading. If uncertain that the probe is working, check by testing on your own finger.
\nNormal oxygen saturation at sea level is 95 – 100%. Oxygen should be given if saturation drops to less than 90%, and may be needed for children with severe illness if SpO2 less than 94%. Different cut-offs may be used at high altitude.",
"type": "display"
}
@@ -854,11 +854,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='EmCare.B10S2.DE07').answer.first().exists() and %resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='EmCare.B10S2.DE07').answer.first().value< 90 '%'"
+ "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='Ccc.B10S2.DE07').answer.first().exists() and %resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='Ccc.B10S2.DE07').answer.first().value< 90 '%'"
}
}
],
- "linkId": "EmCare.B10S2.DE08",
+ "linkId": "Ccc.B10S2.DE08",
"text": "Oxygen Saturation < 90 %",
"type": "display",
"required": false,
@@ -879,7 +879,7 @@
}
}
],
- "linkId": "EmCare.B10S2.DE08-help",
+ "linkId": "Ccc.B10S2.DE08-help",
"text": "Check that the value you have entered is correct. Children with oxygen saturation less than 90% need oxygen if available and urgent referral.",
"type": "display"
}
@@ -904,18 +904,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='EmCare.B10S2.DE07').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Oxygen_Saturation').repeat(item).where(linkId='Ccc.B10S2.DE07').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B10S2.DE09",
+ "linkId": "Ccc.B10S2.DE09",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B10S2.DE09",
+ "code": "Ccc.B10S2.DE09",
"display": "Oxygen saturation not measured"
}
}
@@ -937,7 +937,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE01",
+ "linkId": "Ccc.B11S2.DE01",
"text": "Sunken eyes",
"type": "boolean",
"required": true,
@@ -957,7 +957,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE01-help",
+ "linkId": "Ccc.B11S2.DE01-help",
"text": "The eyes of a child who is dehydrated may look sunken. Decide if you think the eyes are sunken. Then ask the mother if she thinks her child\u2019s eyes look unusual. Her opinion can help
\nyou confirm.
\nNOTE: In a severely malnourished child who is wasted, the eyes may always look sunken, even if the child is not dehydrated. Still use the sign to classify dehydration.",
"type": "display"
}
@@ -973,7 +973,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE02",
+ "linkId": "Ccc.B11S2.DE02",
"text": "Skin pinch of Abdomen",
"type": "choice",
"required": true,
@@ -981,22 +981,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE03",
"display": "Skin Pinch goes back very slowly (More than 2 seconds)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE04",
"display": "Skin Pinch goes back slowly (2 seconds or fewer, but not immediately)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE05",
"display": "Skin Pinch goes back Normally (immediately)"
}
}
@@ -1016,7 +1016,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE02-help",
+ "linkId": "Ccc.B11S2.DE02-help",
"text": "To assess dehydration using the skin pinch
\n1. ASK the mother to place the child on the examining table so that the child is flat on his back with his arms at his sides (not over his head) and his legs straight. Or, ask the mother to hold the child so he is lying flat on her lap.
\n2. USE YOUR THUMB AND FIRST FINGER to locate the area on the child\u2019s abdomen halfway between the umbilicus and the side of the abdomen. Do not use your fingertips because this will cause pain. The fold of the skin should be in a line up and down the child\u2019s body.
\n3. PICK UP all the layers of skin and the tissue underneath them.
\n4. HOLD the pinch for one second. Then release it.
\n5.. LOOK to see if the skin pinch goes back very slowly (more than 2 seconds), slowly, (less than 2 seconds, but not immediately), or immediately. If the skin stays up for even a brief time after you release it, decide that the skin pinch goes back slowly.",
"type": "display"
}
@@ -1036,7 +1036,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE06",
+ "linkId": "Ccc.B11S2.DE06",
"text": "Restless and Irritable",
"type": "boolean",
"required": true,
@@ -1056,7 +1056,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE06-help",
+ "linkId": "Ccc.B11S2.DE06-help",
"text": "A child is classified as restless and irritable if s/he is restless and irritable all the time or every time s/he is touched and handled. If an infant or child is calm when breastfeeding but again restless and irritable when he stops breastfeeding, s/he has the sign restless and irritable. Many children are upset just because they are in the clinic. Usually these children can be consoled and calmed, and do not have this sign.",
"type": "display"
}
@@ -1069,7 +1069,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B17S1.DE01",
+ "linkId": "Ccc.B17S1.DE01",
"text": "Throat problem",
"type": "boolean",
"required": true,
@@ -1089,7 +1089,7 @@
}
}
],
- "linkId": "EmCare.B17S1.DE01-help",
+ "linkId": "Ccc.B17S1.DE01-help",
"text": "Look to see if the child has a throat problem.
\n- Red (congested) throat indicates inflammation and may be sign of infection
\n- Exudate may be seen as white / yellow mucus on the tonsils or throat
\n- A membrane is a thick grey coating on the throat is a sign of diptheria, requiring urgent referral",
"type": "display"
}
@@ -1101,11 +1101,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B17S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B17S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B17S1.DE02",
+ "linkId": "Ccc.B17S1.DE02",
"text": "Specify Throat problem",
"type": "choice",
"required": true,
@@ -1113,28 +1113,28 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE03",
"display": "Red (congested) throat"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE04",
"display": "Exudate on Throat"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE05",
"display": "Membrane on throat"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "none",
"display": "None of the listed throat problems observed"
}
@@ -1155,7 +1155,7 @@
}
}
],
- "linkId": "EmCare.B17S1.DE02-help",
+ "linkId": "Ccc.B17S1.DE02-help",
"text": "Look to see if the child has a throat problem.
\n- Red (congested) throat indicates inflammation and may be sign of infection
\n- Exudate may be seen as white / yellow mucus on the tonsils or throat
\n- A membrane is a thick grey coating on the throat is a sign of diptheria, requiring urgent referral",
"type": "display"
}
@@ -1171,11 +1171,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B17S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B17S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B17S1.DE06",
+ "linkId": "Ccc.B17S1.DE06",
"text": "Enlarged lymph nodes on front of neck",
"type": "boolean",
"required": true,
@@ -1195,7 +1195,7 @@
}
}
],
- "linkId": "EmCare.B17S1.DE06-help",
+ "linkId": "Ccc.B17S1.DE06-help",
"text": "Lymph nodes can be considered enlarged if 1cm or more in diameter (about the width of the tip of an adult index finger)",
"type": "display"
}
@@ -1207,11 +1207,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B17S1.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='Not able to drink or breastfeed').answer.first().value = false or %resource.repeat(item).where(linkId='Not able to drink or breastfeed').answer.first().value = true and %resource.repeat(item).where(linkId='Oral Fluid Test failed').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B17S1.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='Not able to drink or breastfeed').answer.first().value = false or %resource.repeat(item).where(linkId='Not able to drink or breastfeed').answer.first().value = true and %resource.repeat(item).where(linkId='Oral Fluid Test failed').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B17S1.DE07",
+ "linkId": "Ccc.B17S1.DE07",
"text": "Ability to swallow",
"type": "choice",
"required": true,
@@ -1219,22 +1219,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE08",
"display": "Yes, without difficulty"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE09",
"display": "Difficulty in swallowing"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B17S1.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B17S1.DE10",
"display": "Unable to swallow"
}
}
@@ -1254,7 +1254,7 @@
}
}
],
- "linkId": "EmCare.B13S2.DE01",
+ "linkId": "Ccc.B13S2.DE01",
"text": "Tender swelling behind the ear",
"type": "boolean",
"required": true,
@@ -1274,7 +1274,7 @@
}
}
],
- "linkId": "EmCare.B13S2.DE01-help",
+ "linkId": "Ccc.B13S2.DE01-help",
"text": "If both tenderness and swelling are present, the child may have mastoiditis, a deep infection in the mastoid bone. Feel behind both ears. Compare them and decide if there is tender swelling of the mastoid bone. In infants, the swelling may be above the ear. Do not confuse this swelling of the bone with swollen lymph nodes.",
"type": "display"
}
@@ -1294,7 +1294,7 @@
}
}
],
- "linkId": "EmCare.B13S2.DE02",
+ "linkId": "Ccc.B13S2.DE02",
"text": "Pus Seen Draining from the Ear",
"type": "boolean",
"required": true,
@@ -1314,7 +1314,7 @@
}
}
],
- "linkId": "EmCare.B13S2.DE02-help",
+ "linkId": "Ccc.B13S2.DE02-help",
"text": "Look inside the child\u2019s ear to see if pus is draining. That is a sign of infection, even if the child is not feeling any pain. Draining pus is a sign of infection",
"type": "display"
}
@@ -1326,11 +1326,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Ear discharge').answer.first().value = false and %resource.repeat(item).where(linkId='EmCare.B13S2.DE02').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ear discharge').answer.first().value = false and %resource.repeat(item).where(linkId='Ccc.B13S2.DE02').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B13S2.DE03",
+ "linkId": "Ccc.B13S2.DE03",
"text": "Pus Seen Draining from the Ear for how long?",
"type": "choice",
"required": true,
@@ -1338,15 +1338,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE08",
"display": "14 days or more"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B10S1.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B10S1.DE07",
"display": "Less than 14 days"
}
}
@@ -1366,7 +1366,7 @@
}
}
],
- "linkId": "EmCare.B12S2.DE01",
+ "linkId": "Ccc.B12S2.DE01",
"text": "Stiff neck",
"type": "boolean",
"required": true,
@@ -1386,7 +1386,7 @@
}
}
],
- "linkId": "EmCare.B12S2.DE01-help",
+ "linkId": "Ccc.B12S2.DE01-help",
"text": "A stiff neck may be a sign of meningitis, cerebral malaria or another very severe febrile disease. It requires urgent treatment with injectable antibiotics and referral to a hospital.
\nWATCH THE CHILD: While you talk with the caregiver during the assessment, look to see if the child moves and bends his or her neck easily when looking around. If the child is moving and bending his or her neck, the child does not have a stiff neck.
\nTEST THE CHILD: If you did not see any movement, or if you are not sure, draw the child\u2019s attention to his or her umbilicus or toes. For example, you can shine a flashlight on the toes or umbilicus or tickle the toes to encourage the child to look down. Look to see if the child can bend his or her neck when looking down at his or her umbilicus or toe
\nFEEL FOR STIFF NECK: If you still have not seen the child bend his or her neck himself, ask the caregiver to help you lay the child on his or her back. Lean over the child, gently support the child\u2019s back and shoulders with one hand. With the other hand, hold the child\u2019s head. Then carefully bend the head forward towards the child\u2019s chest. If the neck bends easily, the child does not have stiff neck. If the neck feels stiff and there is resistance to bending, the child has a stiff neck. Often a child with a stiff neck will cry when you try to bend the neck.",
"type": "display"
}
@@ -1406,7 +1406,7 @@
}
}
],
- "linkId": "EmCare.B12S2.DE05",
+ "linkId": "Ccc.B12S2.DE05",
"text": "Runny nose",
"type": "boolean",
"required": true,
@@ -1426,7 +1426,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE01",
+ "linkId": "Ccc.B14S2.DE01",
"text": "Red eyes",
"type": "boolean",
"required": true,
@@ -1446,7 +1446,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE01-help",
+ "linkId": "Ccc.B14S2.DE01-help",
"text": "The child has \u201cred eyes\u201d if there is redness in the white part of the eye. In a healthy eye, the white part of the eye is clearly white and not discoloured.",
"type": "display"
}
@@ -1466,7 +1466,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE02",
+ "linkId": "Ccc.B14S2.DE02",
"text": "Pus Draining from Eye",
"type": "boolean",
"required": true,
@@ -1486,7 +1486,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE02-help",
+ "linkId": "Ccc.B14S2.DE02-help",
"text": "Pus draining from the eye is a sign of conjunctivitis. Conjunctivitis is an infection of the conjunctiva, the inside surface of the eyelid and the white part of the eye.
\nIf you do not see pus draining from the eye, look for pus on the conjunctiva or on the eyelids. Often the pus forms a crust when the child is sleeping and seals the eye shut. You can gently open the eye, making sure that your hands are clean.
\nWash your hands after examining the eye of any child with pus draining from the eye.",
"type": "display"
}
@@ -1506,7 +1506,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE03",
+ "linkId": "Ccc.B14S2.DE03",
"text": "Clouding of the Cornea",
"type": "boolean",
"required": true,
@@ -1526,7 +1526,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE03-help",
+ "linkId": "Ccc.B14S2.DE03-help",
"text": "The cornea is usually clear. When clouding of the cornea is present, the cornea may appear clouded or hazy. The cornea may look the way a glass of water looks when you add a small amount of milk. The clouding may occur in one or both eyes.
\nA child with corneal clouding may keep his or her eyes tightly shut when exposed to light. The light may cause irritation and pain to the child\u2019s eyes. To check the child\u2019s eye, wait for the child to open his or her eye. Or gently pull down the lower eyelid to look for clouding.
\nCorneal clouding is a dangerous condition. It may be the result of vitamin A deficiency that has been made worse by measles. If the corneal clouding is not treated, the cornea can ulcerate and cause blindness. A child with clouding of the cornea needs urgent treatment with vitamin A.",
"type": "display"
}
@@ -1542,11 +1542,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE03').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE03').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B14S2.DE04",
+ "linkId": "Ccc.B14S2.DE04",
"text": "Is Clouding of the Cornea a new problem",
"type": "boolean",
"required": false,
@@ -1566,7 +1566,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE04-help",
+ "linkId": "Ccc.B14S2.DE04-help",
"text": "If there is clouding of the cornea, ask the caregiver how long the cloudinghas been present. If the caregiver is certain that clouding has been there for some time, ask if the clouding has already been assessed and treated at the hospital. If it has, you do not need to refer this child again for corneal clouding.",
"type": "display"
}
@@ -1582,11 +1582,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE03').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B14S2.DE04').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE03').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B14S2.DE04').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B14S2.DE05",
+ "linkId": "Ccc.B14S2.DE05",
"text": "Has Clouding of the Cornea previously been treated",
"type": "boolean",
"required": false,
@@ -1611,11 +1611,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Skin Problem').answer.first().value = true or (%resource.repeat(item).where(linkId='Fever').answer.first().value = true and (%resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B12S2.DE05').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B14S2.DE01').answer.first().value = true))"
+ "expression": "%resource.repeat(item).where(linkId='Skin Problem').answer.first().value = true or (%resource.repeat(item).where(linkId='Fever').answer.first().value = true and (%resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B12S2.DE05').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B14S2.DE01').answer.first().value = true))"
}
}
],
- "linkId": "EmCare.B14S2.DE06",
+ "linkId": "Ccc.B14S2.DE06",
"text": "Generalised or Localised Skin Problem",
"type": "choice",
"required": true,
@@ -1623,22 +1623,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE07",
"display": "Generalised Skin Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE08",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE08",
"display": "Localised Skin Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE09",
"display": "No Problem"
}
}
@@ -1654,11 +1654,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Fever').answer.first().value = true or ( %resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B12S2.DE05').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B14S2.DE01').answer.first().value = true ) and %resource.repeat(item).where(linkId='EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Fever').answer.first().value = true or ( %resource.repeat(item).where(linkId='Cough').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B12S2.DE05').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B14S2.DE01').answer.first().value = true ) and %resource.repeat(item).where(linkId='Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE10",
+ "linkId": "Ccc.B14S2.DE10",
"text": "Measles Rash",
"type": "boolean",
"required": true,
@@ -1678,7 +1678,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE10-help",
+ "linkId": "Ccc.B14S2.DE10-help",
"text": "In measles, a rash begins behind the ears and on the neck. It spreads to the face. During the next day, the rash spreads to the rest of the body, arms and legs. After 4 to 5 days, the rash starts to fade and the skin may peel.
Some children with severe infection may have more rash spread over more of the body. The rash becomes more discoloured (dark brown or blackish), and there is more peeling of the skin. A measles rash does not have vesicles (blisters) or pustules. The rash does not itch.
\n\n\tDo not confuse measles with other common childhood rashes such as chicken pox, scabies, or heat rash. Chicken pox rash is a generalized rash with vesicles. Scabies occurs on the hands, feet, ankles, elbows, buttocks and axilla (underarm). It also itches. Heat rash can be a generalized rash with small bumps and vesicles, which itch. A child with heat rash is not sick.",
"type": "display"
}
@@ -1694,11 +1694,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Fever').answer.first().value = true and (iif(%resource.repeat(item).where(linkId='EmCare.B14S2.DE01').answer.first().value = true, false, true) or iif(%resource.repeat(item).where(linkId='Cough').answer.first().value = true, false, true) or iif(%resource.repeat(item).where(linkId='EmCare.B12S2.DE05').answer.first().value = true, false, true)) or %resource.repeat(item).where(linkId='EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').empty() or %resource.repeat(item).where(linkId='EmCare.B14S2.DE10').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Fever').answer.first().value = true and (iif(%resource.repeat(item).where(linkId='Ccc.B14S2.DE01').answer.first().value = true, false, true) or iif(%resource.repeat(item).where(linkId='Cough').answer.first().value = true, false, true) or iif(%resource.repeat(item).where(linkId='Ccc.B12S2.DE05').answer.first().value = true, false, true)) or %resource.repeat(item).where(linkId='Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07').empty() or %resource.repeat(item).where(linkId='Ccc.B14S2.DE10').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B14S2.DE11",
+ "linkId": "Ccc.B14S2.DE11",
"text": "Measles within the last 3 months",
"type": "boolean",
"required": true,
@@ -1718,7 +1718,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE11-help",
+ "linkId": "Ccc.B14S2.DE11-help",
"text": "Ask the caregiver or check the child’s health record to see if they have had measles in the last 3 months. If the caregiver is not sure, explain the symptoms (a generalised rash all over the body, starting from behind the ears and on the neck, spreading to the face, then the body, arms and legs, accompanied by runny nose, red eyes or cough).",
"type": "display"
}
@@ -1738,7 +1738,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE12",
+ "linkId": "Ccc.B14S2.DE12",
"text": "Blisters, Sores or Pustules",
"type": "boolean",
"required": true,
@@ -1751,15 +1751,15 @@
{
"url": "option",
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE22"
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE22"
}
},
{
"url": "expression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Danger Signs').answer.first().value = false and %resource.repeat(item).where(linkId='Itchy Skin').answer.first().value=true and %resource.repeat(item).where(linkId='EmCare.B14S2.DE12').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').empty()"
+ "expression": "%resource.repeat(item).where(linkId='Danger Signs').answer.first().value = false and %resource.repeat(item).where(linkId='Itchy Skin').answer.first().value=true and %resource.repeat(item).where(linkId='Ccc.B14S2.DE12').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07').empty()"
}
}
],
@@ -1769,11 +1769,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Danger Signs').answer.first().value = false and ( %resource.repeat(item).where(linkId='EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').exists() or %resource.repeat(item).where(linkId='EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08').exists() )"
+ "expression": "%resource.repeat(item).where(linkId='Danger Signs').answer.first().value = false and ( %resource.repeat(item).where(linkId='Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07').exists() or %resource.repeat(item).where(linkId='Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE08').exists() )"
}
}
],
- "linkId": "EmCare.B14S2.DE13",
+ "linkId": "Ccc.B14S2.DE13",
"text": "Type of Skin Problem",
"type": "choice",
"required": false,
@@ -1781,91 +1781,91 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE18",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE18",
"display": "Papular Urticaria or Papular Pruritic Eruptions"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE19",
"display": "Ringworm (Tinea)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE21",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE21",
"display": "Scabies"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE22",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE22",
"display": "Chickenpox"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE23",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE23",
"display": "Herpes Zoster"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE25",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE25",
"display": "Impetigo"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE31",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE31",
"display": "Molluscum Contagiosum"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE32",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE32",
"display": "Warts"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE33",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE33",
"display": "Seborrhoeic Dermatitis"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE35",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE35",
"display": "Fixed Drug Reaction"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE36",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE36",
"display": "Eczema"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE37",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE37",
"display": "Steven Johnson Syndrome (SJS)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "none",
"display": "None of the above"
}
@@ -1882,11 +1882,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE19').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE19').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE19a",
+ "linkId": "Ccc.B14S2.DE19a",
"text": "Scalp Infection (tinea capitis)",
"type": "boolean",
"required": false,
@@ -1906,7 +1906,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE19a-help",
+ "linkId": "Ccc.B14S2.DE19a-help",
"text": "Scalp lesions may result in loss of hair",
"type": "display"
}
@@ -1922,11 +1922,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE22').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE22').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE22A",
+ "linkId": "Ccc.B14S2.DE22A",
"text": "Severe rash",
"type": "boolean",
"required": false,
@@ -1946,7 +1946,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE22A-help",
+ "linkId": "Ccc.B14S2.DE22A-help",
"text": "Severe rash indicates that the child needs referral due to risk of complications.",
"type": "display"
}
@@ -1962,11 +1962,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE23').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE23').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE23a",
+ "linkId": "Ccc.B14S2.DE23a",
"text": "Disseminated Herpes Zoster",
"type": "boolean",
"required": false,
@@ -1986,7 +1986,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE23a-help",
+ "linkId": "Ccc.B14S2.DE23a-help",
"text": "Disseminated herpes zoster means that the rash is affecting more than one area of the body",
"type": "display"
}
@@ -2002,11 +2002,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE23').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE23').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE24",
+ "linkId": "Ccc.B14S2.DE24",
"text": "Eye Involvement",
"type": "boolean",
"required": false,
@@ -2022,11 +2022,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE25').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE25').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE30",
+ "linkId": "Ccc.B14S2.DE30",
"text": "Skin Infection extends to Muscle",
"type": "boolean",
"required": false,
@@ -2042,11 +2042,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE25').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE25').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE30b",
+ "linkId": "Ccc.B14S2.DE30b",
"text": "Extensive impetigo lesions",
"type": "boolean",
"required": false,
@@ -2066,7 +2066,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE30b-help",
+ "linkId": "Ccc.B14S2.DE30b-help",
"text": "Impetigo can be considered as extensive if it is greater than 4cm in diameter",
"type": "display"
}
@@ -2082,11 +2082,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE31').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE31').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE31a",
+ "linkId": "Ccc.B14S2.DE31a",
"text": "Extensive molluscum lesions",
"type": "boolean",
"required": false,
@@ -2106,7 +2106,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE31a-help",
+ "linkId": "Ccc.B14S2.DE31a-help",
"text": "Molluscum Contagiosum – Skin coloured pearly white papules with central umbilication. Most commonly seen on face and trunk in children.",
"type": "display"
}
@@ -2122,11 +2122,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE31').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE31').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE31b",
+ "linkId": "Ccc.B14S2.DE31b",
"text": "Molluscum lesions close to the eye",
"type": "boolean",
"required": false,
@@ -2142,11 +2142,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE32').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE32').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE32a",
+ "linkId": "Ccc.B14S2.DE32a",
"text": "Extensive warts",
"type": "boolean",
"required": false,
@@ -2162,11 +2162,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE33').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE33').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE34",
+ "linkId": "Ccc.B14S2.DE34",
"text": "Severe Seborrhoeic Dermatitis",
"type": "boolean",
"required": false,
@@ -2182,11 +2182,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE36').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE36').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE36a",
+ "linkId": "Ccc.B14S2.DE36a",
"text": "Secondary bacterial infection of eczema",
"type": "boolean",
"required": false,
@@ -2202,11 +2202,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE36').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE36').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE36b",
+ "linkId": "Ccc.B14S2.DE36b",
"text": "Severe acute moist or weeping eczema",
"type": "boolean",
"required": false,
@@ -2222,11 +2222,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B14S2.DE13').answer.where(value.code='EmCare.B14S2.DE36').exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B14S2.DE13').answer.where(value.code='Ccc.B14S2.DE36').exists()"
}
}
],
- "linkId": "EmCare.B14S2.DE36c",
+ "linkId": "Ccc.B14S2.DE36c",
"text": "Secondary herpes infection of eczema (eczema herpeticum)",
"type": "boolean",
"required": false,
@@ -2255,7 +2255,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE38",
+ "linkId": "Ccc.B14S2.DE38",
"text": "Oral sores or Mouth Ulcers",
"type": "choice",
"required": true,
@@ -2263,29 +2263,29 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE41",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE41",
"display": "Mouth Sores or Mouth Ulcers - Deep and Extensive"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE42",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE42",
"display": "Mouth Sores or Mouth Ulcers - Not Deep and Extensive"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE40",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE40",
"display": "Oral Thrush"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE39",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE39",
"display": "No Oral Sores or Mouth Ulcers"
}
}
@@ -2305,7 +2305,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE38-help",
+ "linkId": "Ccc.B14S2.DE38-help",
"text": "Ulcers are painful open sores on the inside of the mouth and lips or the tongue. They may be red or have white coating.",
"type": "display"
}
@@ -2334,7 +2334,7 @@
}
}
],
- "linkId": "EmCare.B14S2.DE43",
+ "linkId": "Ccc.B14S2.DE43",
"text": "Add a Skin or Mouth or Eye Problem",
"type": "choice",
"required": false,
@@ -2342,36 +2342,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE44",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE44",
"display": "Skin Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE45",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE45",
"display": "Oral Sores or Mouth Ulcers"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE46",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE46",
"display": "Eye Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B14S2.DE47",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B14S2.DE47",
"display": "No - Do not add a Skin or Mouth or Eye Problem"
}
}
]
},
{
- "linkId": "EmCare.B15S2.DE01",
+ "linkId": "Ccc.B15S2.DE01",
"text": "Palmar Pallor",
"type": "choice",
"required": true,
@@ -2379,22 +2379,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE02",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE02",
"display": "Severe Palmar Pallor"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE03",
"display": "Some Palmar Pallor"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE04",
"display": "No Palmar Pallor"
}
}
@@ -2414,14 +2414,14 @@
}
}
],
- "linkId": "EmCare.B15S2.DE01-help",
+ "linkId": "Ccc.B15S2.DE01-help",
"text": "LOOK at the skin of the child\u2019s palm. Hold the child\u2019s palm open by grasping it gently from the side. Do not stretch the fingers backwards. This may cause pallor by blocking the blood supply. Compare the colour of the child\u2019s palm with your own palm and with the palms of other children. The child has some palmar pallor if the skin of the child\u2019s palm is pale. The child has severe palmar pallor if the skin of the palm is very pale or so pale that it looks white.",
"type": "display"
}
]
},
{
- "linkId": "EmCare.B15S2.DE09",
+ "linkId": "Ccc.B15S2.DE09",
"text": "Mucous membrane pallor",
"type": "choice",
"required": true,
@@ -2429,22 +2429,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE10",
"display": "Severe mucous membrane pallor"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE11",
"display": "Some mucous membrane pallor"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B15S2.DE12",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B15S2.DE12",
"display": "No mucous membrane pallor"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json b/input/resources/questionnaire/questionnaire-Ccc.b18-21.signs.2m.m.json
similarity index 86%
rename from input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json
rename to input/resources/questionnaire/questionnaire-Ccc.b18-21.signs.2m.m.json
index e486a397..c8c1bd3d 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b18-21.signs.2m.m.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b18-21.signs.2m.m.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b18-21.signs.2m.m",
+ "id": "Ccc.b18-21.signs.2m.m",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b18-21.signs.2m.m"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1821signs2mm"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb1821signs2mm"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.signs.2m.m",
- "name": "EmCare.B18-21.Signs.2m.m",
- "title": "EmCare.B18-21.Signs.2m.m",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b18-21.signs.2m.m",
+ "name": "Ccc.B18-21.Signs.2m.m",
+ "title": "Ccc.B18-21.Signs.2m.m",
"status": "active",
"experimental": false,
"subjectType": [
@@ -174,11 +174,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b20s1.de01"
+ "expression": "Ccc.b20s1.de01"
}
}
],
- "linkId": "EmCare.B20S1.DE01",
+ "linkId": "Ccc.B20S1.DE01",
"text": "Diarrhoea",
"type": "boolean",
"required": false,
@@ -194,11 +194,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.a.de31"
+ "expression": "Ccc.a.de31"
}
}
],
- "linkId": "EmCare.A.DE31",
+ "linkId": "Ccc.A.DE31",
"text": "Biological Mother Vital Status",
"type": "choice",
"required": false,
@@ -206,22 +206,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.A.DE46",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.A.DE46",
"display": "Dead"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.A.DE34",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.A.DE34",
"display": "Alive"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.A.DE33",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.A.DE33",
"display": "Unknown"
}
}
@@ -241,11 +241,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b21s1.de01"
+ "expression": "Ccc.b21s1.de01"
}
}
],
- "linkId": "EmCare.B21S1.DE01",
+ "linkId": "Ccc.B21S1.DE01",
"text": "Breastfed",
"type": "boolean",
"required": false,
@@ -261,11 +261,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b18s1.de02"
+ "expression": "Ccc.b18s1.de02"
}
}
],
- "linkId": "EmCare.B18S1.DE02",
+ "linkId": "Ccc.B18S1.DE02",
"text": "Difficulty with Feeding",
"type": "choice",
"required": false,
@@ -273,22 +273,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE03",
"display": "Not Able to Feed At All"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE04",
"display": "Not Feeding Well"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE05",
"display": "Feeding Well"
}
}
@@ -356,11 +356,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b7.de03"
+ "expression": "Ccc.b7.de03"
}
}
],
- "linkId": "EmCare.B7.DE03",
+ "linkId": "Ccc.B7.DE03",
"text": "Convulsion(s) in this Illness",
"type": "boolean",
"required": false,
@@ -370,10 +370,10 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.respiratoryrate"
}
],
- "linkId": "EmCare.B22.RespiratoryRate",
+ "linkId": "Ccc.B22.RespiratoryRate",
"type": "group",
"required": false,
"repeats": false,
@@ -391,7 +391,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
}
},
{
@@ -402,7 +402,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01",
+ "linkId": "Ccc.B22.DE01",
"text": "Respiratory Rate (breaths per minute)",
"type": "quantity",
"required": true,
@@ -422,7 +422,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01-help",
+ "linkId": "Ccc.B22.DE01-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -447,18 +447,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE02",
+ "linkId": "Ccc.B22.DE02",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE02",
+ "code": "Ccc.B22.DE02",
"display": "Unable to perform Respiratory Rate at this time"
}
}
@@ -470,7 +470,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
}
}
],
@@ -492,11 +492,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE04",
+ "linkId": "Ccc.B22.DE04",
"text": "Respiratory Rate Second Count (breaths per minute)",
"type": "quantity",
"required": false,
@@ -516,7 +516,7 @@
}
}
],
- "linkId": "EmCare.B22.DE04-help",
+ "linkId": "Ccc.B22.DE04-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection", "type": "display" } @@ -541,18 +541,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().empty()" } } ], - "linkId": "EmCare.B22.DE05", + "linkId": "Ccc.B22.DE05", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.B22.DE05", + "code": "Ccc.B22.DE05", "display": "Respiratory Rate Second Count Not Possible" } } @@ -570,18 +570,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min')" + "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min')" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})" + "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})" } } ], - "linkId": "EmCare.B22.DE07", + "linkId": "Ccc.B22.DE07", "text": "Fast Breathing", "type": "boolean", "required": false, @@ -602,7 +602,7 @@ } } ], - "linkId": "EmCare.B22.DE07-help", + "linkId": "Ccc.B22.DE07-help", "text": "The number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age. * Under 2 months: More than 60 breaths per minute* * 2 to 11 months: More than 50 breaths per minute * 12 to 59 months: More than 40 breaths per minute *In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection", "type": "display" } @@ -617,7 +617,7 @@ "valueCode": "horizontal" } ], - "linkId": "EmCare.B18S2.DE07", + "linkId": "Ccc.B18S2.DE07", "text": "Severe Chest Indrawing", "type": "boolean", "required": true, @@ -637,14 +637,14 @@ } } ], - "linkId": "EmCare.B18S2.DE07-help", + "linkId": "Ccc.B18S2.DE07-help", "text": "The young infant must be calm while you assess for severe chest indrawing.\u00a0 Lift the young infant\u2019s shirt.
\n\n\tLook for chest indrawing when the young infant breathes in. Lower chest wall indrawing is the inward movement of the bony structure of the chest wall
\nwhen the child breathes in. Look at the lower chest wall (lower ribs). The child has chest indrawing if the lower chest wall goes IN when the child breathes IN.
\nIn normal breathing, the whole chest wall (upper and lower) and the abdomen move OUT when the child breathes IN.
Mild chest indrawing is normal in a young infant because the chest wall is soft. Severe chest indrawing is very deep and easy to see.",
"type": "display"
}
]
},
{
- "linkId": "EmCare.B18S2.DE08",
+ "linkId": "Ccc.B18S2.DE08",
"text": "Movements",
"type": "choice",
"required": true,
@@ -652,22 +652,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S2.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S2.DE11",
"display": "Moves on his or her own or moves spontaneously or without stimulation"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S2.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S2.DE10",
"display": "Movement only when stimulated but then stops"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S2.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S2.DE09",
"display": "No movement at all"
}
}
@@ -687,7 +687,7 @@
}
}
],
- "linkId": "EmCare.B18S2.DE08-help",
+ "linkId": "Ccc.B18S2.DE08-help",
"text": "Look at the young infant\u2019s movements. Does the young infant move on his/her own? Does the infant move only when stimulated but then stops? Does the infant not move at all?
\nYoung infants often sleep most of the time, and this is not a sign of illness. It is not necessary for the infant to be awake if he/she is moving spontaneously.
\nIf a young infant is not moving spontaneously and does not wake up during the assessment, ask the mother to wake him. An awake young infant will normally move his arms or legs or turn his head several times in a\u00a0 minute if you watch him closely. If the infant is awake but has no spontaneous movements, gently stimulate the young infant. Stimulation\u00a0 is a gentle, painless touching of the baby with enough pressure that would evoke movements, sound making and eye opening. The presence of any movement such as a grimace of the face, eye-opening or movement of a limb will qualify “Movement only when stimulated but then stops”.\u00a0 An infant who cannot be woken up even after stimulation is considered to have the sign “Does not move even with stimulation. “ ",
"type": "display"
}
@@ -700,7 +700,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B18S2.DE12",
+ "linkId": "Ccc.B18S2.DE12",
"text": "Umbilicus Red or Pus Draining",
"type": "boolean",
"required": true,
@@ -720,7 +720,7 @@
}
}
],
- "linkId": "EmCare.B18S2.DE12-help",
+ "linkId": "Ccc.B18S2.DE12-help",
"text": "“The umbilical cord usually separates one week after birth and the wound heals within 15 days. Redness of the end of the umbilicus or pus draining from the umbilicus are signs of umbilical infection.” ",
"type": "display"
}
@@ -733,7 +733,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B18S2.DE13",
+ "linkId": "Ccc.B18S2.DE13",
"text": "Skin Pustules",
"type": "boolean",
"required": true,
@@ -753,7 +753,7 @@
}
}
],
- "linkId": "EmCare.B18S2.DE13-help",
+ "linkId": "Ccc.B18S2.DE13-help",
"text": "Examine the skin on the entire body. Skin pustules are red spots or blisters which contain pus.",
"type": "display"
}
@@ -766,7 +766,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B19S2.DE01",
+ "linkId": "Ccc.B19S2.DE01",
"text": "Yellow Skin",
"type": "boolean",
"required": true,
@@ -786,7 +786,7 @@
}
}
],
- "linkId": "EmCare.B19S2.DE01-help",
+ "linkId": "Ccc.B19S2.DE01-help",
"text": "Jaundice is a yellow discoloration of skin and mucus membranes. It is important to look for jaundice in natural light. To look for jaundice, press the infant\u2019s skin over the forehead with your fingers to blanch, remove your fingers and look for yellow discolouration. If there is yellow discoloration, the infant has jaundice",
"type": "display"
}
@@ -799,7 +799,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B19S2.DE02",
+ "linkId": "Ccc.B19S2.DE02",
"text": "Yellow Palms or Yellow Soles",
"type": "boolean",
"required": true,
@@ -819,7 +819,7 @@
}
}
],
- "linkId": "EmCare.B19S2.DE02-help",
+ "linkId": "Ccc.B19S2.DE02-help",
"text": "Jaundice is a yellow discoloration of skin and mucus membranes. Jaundice in the palms of hands or soles of feet is a sign of Severe Jaundice.\u00a0 It is important to look for jaundice in natural light. To assess for severe jaundice, press the infant’s skin in the palm of there hand and then in the sole of their feet with your fingers to blanch, remove your finders and look for yellow dicoulouration in the palm or the sole. If there is yellow discoloration of the palm or sole, the infant has severe jaundice.",
"type": "display"
}
@@ -831,11 +831,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInDays').answer.first().value >1 and %resource.repeat(item).where(linkId='EmCare.B19S2.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B19S2.DE02').answer.first().value = false and %resource.repeat(item).where(linkId='AgeInDays').answer.first().value < 21"
+ "expression": "%resource.repeat(item).where(linkId='AgeInDays').answer.first().value >1 and %resource.repeat(item).where(linkId='Ccc.B19S2.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B19S2.DE02').answer.first().value = false and %resource.repeat(item).where(linkId='AgeInDays').answer.first().value < 21"
}
}
],
- "linkId": "EmCare.B19S2.DE04",
+ "linkId": "Ccc.B19S2.DE04",
"text": "When did the Jaundice first appear?",
"type": "choice",
"required": false,
@@ -843,22 +843,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B19S2.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B19S2.DE05",
"display": "Within less than 24 hours of birth"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B19S2.DE06",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B19S2.DE06",
"display": "24 hours or more after birth"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B19S2.DE07",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B19S2.DE07",
"display": "Unknown when Jaundice first appeared"
}
}
@@ -878,7 +878,7 @@
}
}
],
- "linkId": "EmCare.B19S2.DE04-help",
+ "linkId": "Ccc.B19S2.DE04-help",
"text": "Ask the caregiver when the baby’s skin first turned yellowish. If the caregiver didn’t notice the yellow discolouration or can’t remember when it started, select “don’t know”.
\nJaundice that appears in less than 24 hours after birth is always due to an underlying disease. These babies should be referred urgently.
\nMany normal babies, particularly small babies, may have jaundice during the first week of life. This jaundice usually appears on the third or fourth day of life and is mild and disappears before the age of two to\u00a0 three weeks. It does not need any treatment.",
"type": "display"
}
@@ -894,11 +894,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B20S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B20S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B11S2.DE01",
+ "linkId": "Ccc.B11S2.DE01",
"text": "Sunken Eyes",
"type": "boolean",
"required": true,
@@ -918,7 +918,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE01-help",
+ "linkId": "Ccc.B11S2.DE01-help",
"text": "The eyes of a dehydrated infant may look sunken. In a low-weight infant, the eyes may always look sunken, even if the young infant is not dehydrated. Even though the sign \u201csunken eyes\u201d is less reliable in a low-weight infant, it can still be used to classify the young infant\u2018s dehydration.
Decide if you think the eyes are sunken. Then ask the mother if she thinks her child\u2019s eyes look unusual. Her opinion can help you confirm.",
"type": "display"
}
@@ -930,11 +930,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B20S1.DE01').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B20S1.DE01').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B11S2.DE02",
+ "linkId": "Ccc.B11S2.DE02",
"text": "Skin pinch of Abdomen",
"type": "choice",
"required": true,
@@ -942,22 +942,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE03",
"display": "Skin Pinch goes back very slowly (More than 2 seconds)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE04",
"display": "Skin Pinch goes back slowly (2 seconds or fewer, but not immediately)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B20S2.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B20S2.DE05",
"display": "Skin Pinch goes back Normally (immediately)"
}
}
@@ -977,7 +977,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE02-help",
+ "linkId": "Ccc.B11S2.DE02-help",
"text": "Locate the area on the infant\u2019s abdomen halfway between the umbilicus and the side of the abdomen. To do the skin pinch, use your thumb and first finger. Do not use your fingertips because this will cause pain. Place
\nyour hand so that when you pinch the skin, the fold of skin will be in a line up and down the child\u2019s body and not across the child\u2019s
\nbody. Firmly pick up all of the layers of skin and the tissue under them. Pinch the skin for
\none second and then release it. When you release the skin, look to see if the skin pinch
\ngoes back:
\u2022 very slowly (longer than 2 seconds)
\n\u2022 slowly
\n\u2022 immediately
\nIf the skin stays up for even a brief time after you release it, decide that the skin pinch goes back slowly",
"type": "display"
}
@@ -993,11 +993,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B20S1.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B18S2.DE08').answer.first().value.code = 'EmCare.B18S2.DE11'"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B20S1.DE01').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B18S2.DE08').answer.first().value.code = 'Ccc.B18S2.DE11'"
}
}
],
- "linkId": "EmCare.B11S2.DE06",
+ "linkId": "Ccc.B11S2.DE06",
"text": "Restless and Irritable",
"type": "boolean",
"required": true,
@@ -1017,7 +1017,7 @@
}
}
],
- "linkId": "EmCare.B11S2.DE06-help",
+ "linkId": "Ccc.B11S2.DE06-help",
"text": "Look at the young infant’s general condition Is the infant restles and irritable?
\nAn infant has teh sign “restless and irritable” if the infant is restless and irritable all the time or every time he is touched and handled. If an infant is calm when breastfeeding but again
\nrestless and irritable when he stops breastfeeding, he has the sign \u201crestless and irritable\u201d. A healthy infant will be consoled when put on the breast.",
"type": "display"
}
@@ -1040,7 +1040,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE01",
+ "linkId": "Ccc.B21S2.DE01",
"text": "Weight Status",
"type": "string",
"required": false,
@@ -1061,7 +1061,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE01-help",
+ "linkId": "Ccc.B21S2.DE01-help",
"text": "Weight status is calculated based on the young infant’s weight for age Z-score, which is determined from a standardized chart for weight -for-age for the infant’s sex.
\nA young infant is low weight for age if the z-score is below -2.
\nA young infant who is less than 7 days old and weighs less than 2 kg is considered very low weight.
\nSome young infants who are low weight for age were born with low birth weight. Some did not gain weight well after birth.",
"type": "display"
}
@@ -1073,11 +1073,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value = true and ( %resource.repeat(item).where(linkId='YI_sever_but_dhey').answer.empty() or %resource.repeat(item).where(linkId='YI_sever_but_dhey').answer.first().value=false )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value = true and ( %resource.repeat(item).where(linkId='YI_sever_but_dhey').answer.empty() or %resource.repeat(item).where(linkId='YI_sever_but_dhey').answer.first().value=false )"
}
}
],
- "linkId": "EmCare.B21S2.DE05",
+ "linkId": "Ccc.B21S2.DE05",
"text": "Breastfed how many times in 24 hours?",
"type": "integer",
"required": true,
@@ -1097,7 +1097,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE05-help",
+ "linkId": "Ccc.B21S2.DE05-help",
"text": "Ask the caregiver how many times in 24 hours (one day and one night) they usually breastfeed the young infant. The recommendation is that the young infant be breastfed as often and for as long as the
\ninfant wants, day and night. This should be 8 or more times in 24 hours.",
"type": "display"
}
@@ -1113,11 +1113,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S2.DE05').answer.first().value>= 8"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S2.DE05').answer.first().value>= 8"
}
}
],
- "linkId": "EmCare.B21S2.DE06",
+ "linkId": "Ccc.B21S2.DE06",
"text": "Sufficient feeds",
"type": "integer",
"required": false,
@@ -1133,11 +1133,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value = true and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value = true and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
}
}
],
- "linkId": "EmCare.B21S2.DE08",
+ "linkId": "Ccc.B21S2.DE08",
"text": "Young Infant receives food or fluids other than breast milk",
"type": "boolean",
"required": true,
@@ -1157,7 +1157,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE08-help",
+ "linkId": "Ccc.B21S2.DE08-help",
"text": "Find out if the young infant is receiving any other foods or drinks such as other milk, juice, tea, thin porridge, dilute cereal, or even water. Ask how often he receives it and the amount. You need to know if the infant is mostly breastfed, or mostly fed on other foods",
"type": "display"
}
@@ -1182,11 +1182,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value= false and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value= false and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
}
}
],
- "linkId": "EmCare.B21S2.DE09",
+ "linkId": "Ccc.B21S2.DE09",
"text": "What milk is being given as a replacement feed?",
"type": "choice",
"required": true,
@@ -1194,15 +1194,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE11",
"display": "Inappropriate replacement milk"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE10",
"display": "Appropriate replacement milk"
}
}
@@ -1222,7 +1222,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE09-help",
+ "linkId": "Ccc.B21S2.DE09-help",
"text": "Ask the mother questions to determine what replacement milk or milks are used. It may be a breastmilk replacement, animal milk or some other fluid or some combination. Determine if this type of replacement feed is appropriate or not appropriate in your setting.",
"type": "display"
}
@@ -1234,11 +1234,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value= false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value= false"
}
}
],
- "linkId": "EmCare.B21S2.DE12",
+ "linkId": "Ccc.B21S2.DE12",
"text": "How many replacement feeds during the day and night (24 hours)?",
"type": "integer",
"required": true,
@@ -1258,7 +1258,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE12-help",
+ "linkId": "Ccc.B21S2.DE12-help",
"text": "A young infant up to one month of age should be fed 8 times and a young infant between 1
\nand 2 months of age should be fed 7 times in 24 hours.",
"type": "display"
}
@@ -1278,11 +1278,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S2.DE12').answer.first().value>=8"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S2.DE12').answer.first().value>=8"
}
}
],
- "linkId": "EmCare.B21S2.DE13",
+ "linkId": "Ccc.B21S2.DE13",
"text": "Sufficient replacement feeds (in 24 hours)",
"type": "boolean",
"required": true,
@@ -1301,11 +1301,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value= false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value= false"
}
}
],
- "linkId": "EmCare.B21S2.DE15",
+ "linkId": "Ccc.B21S2.DE15",
"text": "How much milk is given at each feed (ml)?",
"type": "quantity",
"required": true,
@@ -1325,7 +1325,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE15-help",
+ "linkId": "Ccc.B21S2.DE15-help",
"text": "A young infant up to one month of age should be given approximately 60 ml per feed, 8 times per day, and a young infant between 1 and 2 months of age approximately 90 ml at each feed, 7 times per day. It is helpful to have common bottles or cups available so that a mother can show you the amount that she gives.",
"type": "display"
}
@@ -1345,11 +1345,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='AgeInDays').answer.first().value < 29, %resource.repeat(item).where(linkId='EmCare.B21S2.DE15').answer.first().value>=60 'ml', %resource.repeat(item).where(linkId='EmCare.B21S2.DE15').answer.first().value>=90 'ml' )"
+ "expression": "iif(%resource.repeat(item).where(linkId='AgeInDays').answer.first().value < 29, %resource.repeat(item).where(linkId='Ccc.B21S2.DE15').answer.first().value>=60 'ml', %resource.repeat(item).where(linkId='Ccc.B21S2.DE15').answer.first().value>=90 'ml' )"
}
}
],
- "linkId": "EmCare.B21S2.DE16",
+ "linkId": "Ccc.B21S2.DE16",
"text": "Sufficient replacement feeds",
"type": "boolean",
"required": true,
@@ -1361,11 +1361,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value= false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value= false"
}
}
],
- "linkId": "EmCare.B21S2.DE18",
+ "linkId": "Ccc.B21S2.DE18",
"text": "How is the milk prepared?",
"type": "choice",
"required": true,
@@ -1373,15 +1373,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE19",
"display": "Correct and hygienic feed preparation"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE20",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE20",
"display": "Incorrect or unhygienic feed preparation"
}
}
@@ -1401,7 +1401,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE18-help",
+ "linkId": "Ccc.B21S2.DE18-help",
"text": "Let mother demonstrate or explain how a feed is prepared and how she gives it to the infant. Determine if the breastmilk substitute is being prepared correctly and hygienically.",
"type": "display"
}
@@ -1413,11 +1413,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S2.DE08').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S2.DE08').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B21S2.DE21",
+ "linkId": "Ccc.B21S2.DE21",
"text": "How is the milk given?",
"type": "choice",
"required": true,
@@ -1425,15 +1425,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE22",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE22",
"display": "Cup"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE23",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE23",
"display": "Bottle"
}
}
@@ -1445,11 +1445,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S2.DE08').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S2.DE08').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B21S2.DE24",
+ "linkId": "Ccc.B21S2.DE24",
"text": "How are the feeding utensils cleaned?",
"type": "choice",
"required": true,
@@ -1457,15 +1457,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE26",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE26",
"display": "Feeding utensils not cleaned hygienically"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE25",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE25",
"display": "Feeding utensils cleaned hygienically"
}
}
@@ -1485,7 +1485,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE24-help",
+ "linkId": "Ccc.B21S2.DE24-help",
"text": "Ask the caregiver how they clear the feeding utensils. Determine if this is a safe and hygienic cleaning method.",
"type": "display"
}
@@ -1497,11 +1497,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B21S1.DE01').answer.first().value = false and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B21S1.DE01').answer.first().value = false and ( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false )"
}
}
],
- "linkId": "EmCare.B21S2.DE27",
+ "linkId": "Ccc.B21S2.DE27",
"text": "Do you give any breastmilk at all?",
"type": "choice",
"required": true,
@@ -1509,15 +1509,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE28",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE28",
"display": "Breastmilk also given"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B21S2.DE29",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B21S2.DE29",
"display": "No Breastmilk at all"
}
}
@@ -1533,11 +1533,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and %resource.repeat(item).where(linkId='EmCare.B21S2.DE31').answer.first().empty()"
+ "expression": "( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and %resource.repeat(item).where(linkId='Ccc.B21S2.DE31').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B21S2.DE30",
+ "linkId": "Ccc.B21S2.DE30",
"text": "Ulcers or White Patches in Mouth",
"type": "boolean",
"required": true,
@@ -1557,7 +1557,7 @@
}
}
],
- "linkId": "EmCare.B21S2.DE30-help",
+ "linkId": "Ccc.B21S2.DE30-help",
"text": "Look inside the mouth at the tongue and inside of the cheek. Thrush looks like milk curds on the inside of the cheek, or a thick white coating of the tongue. Try to wipe the white off. The white patches of thrush will remain.",
"type": "display"
}
@@ -1582,18 +1582,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and %resource.repeat(item).where(linkId='EmCare.B21S2.DE30').answer.first().empty()"
+ "expression": "( %resource.repeat(item).where(linkId='YI_sever').answer.empty() or %resource.repeat(item).where(linkId='YI_sever').answer.first().value=false ) and %resource.repeat(item).where(linkId='Ccc.B21S2.DE30').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B21S2.DE31",
+ "linkId": "Ccc.B21S2.DE31",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B21S2.DE31",
+ "code": "Ccc.B21S2.DE31",
"display": "Unable to check if Ulcers or White Patches in Mouth"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json b/input/resources/questionnaire/questionnaire-Ccc.b18-21.symptoms.2m.m.json
similarity index 91%
rename from input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json
rename to input/resources/questionnaire/questionnaire-Ccc.b18-21.symptoms.2m.m.json
index e02b7469..7ad38bf4 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b18-21.symptoms.2m.m.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b18-21.symptoms.2m.m.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b18-21.symptoms.2m.m",
+ "id": "Ccc.b18-21.symptoms.2m.m",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b18-21.symptoms.2m.m"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb1821symptoms2mm"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb1821symptoms2mm"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b18-21.symptoms.2m.m",
- "name": "EmCare.B18-21.Symptoms.2m.m",
- "title": "EmCare.B18-21.Symptoms.2m.m",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b18-21.symptoms.2m.m",
+ "name": "Ccc.B18-21.Symptoms.2m.m",
+ "title": "Ccc.B18-21.Symptoms.2m.m",
"status": "active",
"experimental": false,
"subjectType": [
@@ -78,7 +78,7 @@
}
}
],
- "linkId": "EmCare.B7.DE03",
+ "linkId": "Ccc.B7.DE03",
"text": "Convulsion(s) in this Illness",
"type": "boolean",
"required": false,
@@ -98,14 +98,14 @@
}
}
],
- "linkId": "EmCare.B7.DE03-help",
+ "linkId": "Ccc.B7.DE03-help",
"text": "Use words the caregiver understands. For example, the caregiver may know
\nconvulsions as \u201cfits\u201d or \u201cspasms\u201d.
\nDuring a convulsion, the young infant\u2019s arms and legs may become stiff. The infant
\nmay stop breathing and become blue. Many times there may only be rhythmic
\nmovements of a part of the body, such as rhythmic twitching of the mouth or
\nblinking of eyes. The young infant may lose consciousness",
"type": "display"
}
]
},
{
- "linkId": "EmCare.B18S1.DE02",
+ "linkId": "Ccc.B18S1.DE02",
"text": "Difficulty with Feeding",
"type": "choice",
"required": true,
@@ -113,22 +113,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE03",
"display": "Not Able to Feed At All"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE04",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE04",
"display": "Not Feeding Well"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B18S1.DE05",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B18S1.DE05",
"display": "Feeding Well"
}
}
@@ -148,7 +148,7 @@
}
}
],
- "linkId": "EmCare.B18S1.DE02-help",
+ "linkId": "Ccc.B18S1.DE02-help",
"text": "Any difficulty mentioned by the mother is important. A newborn that has not been able to feed since birth may be premature or may have
\ncomplications such as birth asphyxia. These infants who are either not able to
\nfeed or are not feeding well should be referred urgently to hospital.
The caregiver may also mention difficulties such as: her infant feeds too frequently
\n(or not frequently enough), she does not have enough milk, her nipples are sore,
\nor she has flat or inverted nipples. You will assess these difficulties later during
\nbreastfeeding assessment. These problems do not mean the infant is not feeding well or not feeding at all.",
"type": "display"
}
@@ -161,7 +161,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B11S1.DE01",
+ "linkId": "Ccc.B11S1.DE01",
"text": "Diarrhoea",
"type": "boolean",
"required": true,
@@ -181,7 +181,7 @@
}
}
],
- "linkId": "EmCare.B11S1.DE01-help",
+ "linkId": "Ccc.B11S1.DE01-help",
"text": "A young infant has diarrhoea if the stools have changed from the usual pattern, and are many and watery. This means more water than faecal matter. The normally frequent or semi-solid stools of a breastfed baby are not diarrhoea.
\nThe mother of a breastfed young infant can recognize diarrhoea because the consistency or frequency of the stools is different than normal.",
"type": "display"
}
@@ -194,7 +194,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B21S1.DE06",
+ "linkId": "Ccc.B21S1.DE06",
"text": "Breastfed",
"type": "boolean",
"required": true,
@@ -214,7 +214,7 @@
}
}
],
- "linkId": "EmCare.B21S1.DE06-help",
+ "linkId": "Ccc.B21S1.DE06-help",
"text": "Ask the caregiver if the infant is breastfed. This includes both exclusive breastfeeding or receiving breast milk and other foods/fluids.",
"type": "display"
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json b/input/resources/questionnaire/questionnaire-Ccc.b22.assessmentstests.json
similarity index 82%
rename from input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.assessmentstests.json
index 308b59d5..9a1d8cac 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.assessmentstests.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.assessmentstests.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.assessmentstests",
+ "id": "Ccc.b22.assessmentstests",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.assessmentstests"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22assessmentstests"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb22assessmentstests"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.assessmentstests",
- "name": "EmCare.B22.AssessmentsTests",
- "title": "EmCare.B22.AssessmentsTests",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.assessmentstests",
+ "name": "Ccc.B22.AssessmentsTests",
+ "title": "Ccc.B22.AssessmentsTests",
"status": "active",
"experimental": false,
"subjectType": [
@@ -250,7 +250,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.respiratoryrate"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -260,7 +260,7 @@
}
}
],
- "linkId": "EmCare.B22.RespiratoryRate",
+ "linkId": "Ccc.B22.RespiratoryRate",
"type": "group",
"required": false,
"repeats": false,
@@ -278,7 +278,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
}
},
{
@@ -289,7 +289,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01",
+ "linkId": "Ccc.B22.DE01",
"text": "Respiratory Rate (breaths per minute)",
"type": "quantity",
"required": true,
@@ -309,7 +309,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01-help",
+ "linkId": "Ccc.B22.DE01-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -334,18 +334,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE02",
+ "linkId": "Ccc.B22.DE02",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE02",
+ "code": "Ccc.B22.DE02",
"display": "Unable to perform Respiratory Rate at this time"
}
}
@@ -357,7 +357,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
}
}
],
@@ -379,11 +379,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE04",
+ "linkId": "Ccc.B22.DE04",
"text": "Respiratory Rate Second Count (breaths per minute)",
"type": "quantity",
"required": false,
@@ -403,7 +403,7 @@
}
}
],
- "linkId": "EmCare.B22.DE04-help",
+ "linkId": "Ccc.B22.DE04-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection", "type": "display" } @@ -428,18 +428,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().empty()" } } ], - "linkId": "EmCare.B22.DE05", + "linkId": "Ccc.B22.DE05", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.B22.DE05", + "code": "Ccc.B22.DE05", "display": "Respiratory Rate Second Count Not Possible" } } @@ -457,18 +457,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min')" + "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min')" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='EmCare.B22.RespiratoryRate').repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})" + "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='Ccc.B22.RespiratoryRate').repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})" } } ], - "linkId": "EmCare.B22.DE07", + "linkId": "Ccc.B22.DE07", "text": "Fast Breathing", "type": "boolean", "required": false, @@ -489,7 +489,7 @@ } } ], - "linkId": "EmCare.B22.DE07-help", + "linkId": "Ccc.B22.DE07-help", "text": "The number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age. * Under 2 months: More than 60 breaths per minute* * 2 to 11 months: More than 50 breaths per minute * 12 to 59 months: More than 40 breaths per minute *In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection", "type": "display" } @@ -501,7 +501,7 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.fluidtest" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", @@ -511,7 +511,7 @@ } } ], - "linkId": "EmCare.B22.FluidTest", + "linkId": "Ccc.B22.FluidTest", "type": "group", "required": false, "repeats": false, @@ -522,11 +522,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )" + "expression": "%resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )" } } ], - "linkId": "EmCare.B22.DE08", + "linkId": "Ccc.B22.DE08", "text": "Oral Fluid Test Results", "type": "choice", "required": true, @@ -534,36 +534,36 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE09", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE10", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE11", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE12", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE13", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE13", "display": "Drinks Normally" } } @@ -583,7 +583,7 @@ } } ], - "linkId": "EmCare.B22.DE08-help", + "linkId": "Ccc.B22.DE08-help", "text": "If a child is unconscious do not try to carry out an oral fluid test (Exact wording TBC) – Pop Up
\n\n\tIf a breastfeeding assessment and an Oral Fluid test is recommended for a child that is only breastfed then a pop up is required to ensure that the health care worker observes the signs for both and provides results for both tests.
\n\n\tOral Fluid Test
\nIf it is not possible to perform an oral fluid test, the health care worker should assume that the child is vomiting everything
\nFor a child under 6 months the health care worker can offer for the mother to breastfeed instead of receiving fluids
Caution: Do not force fluids into an unconscious child , it can be dangerous. The fluid can cause them to choke or the fluid can go into their lungs.
\n\n\tPop up box to be made available with instructions on how to carry out an oral fluid test.
\nAdditional information TBC",
"type": "display"
}
@@ -608,18 +608,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE14",
+ "linkId": "Ccc.B22.DE14",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE14",
+ "code": "Ccc.B22.DE14",
"display": "Unable to Perform Oral Fluid Test"
}
}
@@ -639,18 +639,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = true"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE09').exists() or %resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE10').exists() )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE09').exists() or %resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE10').exists() )"
}
}
],
- "linkId": "EmCare.B22.DE14a",
+ "linkId": "Ccc.B22.DE14a",
"text": "Completely Unable to Drink or Vomits Immediately / Everything",
"type": "boolean",
"required": false,
@@ -666,11 +666,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE15",
+ "linkId": "Ccc.B22.DE15",
"text": "Has the Child had anything to drink today?",
"type": "boolean",
"required": false,
@@ -682,11 +682,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE15').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE15').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE16",
+ "linkId": "Ccc.B22.DE16",
"text": "How did the child last drink",
"type": "choice",
"required": false,
@@ -694,36 +694,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE09",
"display": "Completely Unable to Drink"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE10",
"display": "Vomits Immediately / Everything"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE11",
"display": "Drinks Poorly"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE12",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE12",
"display": "Drinks Eagerly / Thirstily"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE13",
"display": "Drinks Normally"
}
}
@@ -735,7 +735,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.bronchodilatortest"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.bronchodilatortest"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -745,7 +745,7 @@
}
}
],
- "linkId": "EmCare.B22.BronchodilatorTest",
+ "linkId": "Ccc.B22.BronchodilatorTest",
"type": "group",
"required": false,
"repeats": false,
@@ -756,11 +756,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BronchodilatorTest').repeat(item).where(linkId='EmCare.B22.DE22').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BronchodilatorTest').repeat(item).where(linkId='Ccc.B22.DE22').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE17",
+ "linkId": "Ccc.B22.DE17",
"text": "Inhaled Bronchodilator Trial Results",
"type": "choice",
"required": false,
@@ -768,36 +768,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE18",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE18",
"display": "Chest Indrawing (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE19",
"display": "Respiratory Rate (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE20",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE20",
"display": "Fast Breathing (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE21",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE21",
"display": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE22",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE22",
"display": "Inhaled Bronchodilator Trial Not Feasible or Available"
}
}
@@ -817,7 +817,7 @@
}
}
],
- "linkId": "EmCare.B22.DE17-help",
+ "linkId": "Ccc.B22.DE17-help",
"text": "Provide information on how to conduct an Inhaled Bronchodilator Trial as per IMCI training – TBC",
"type": "display"
}
@@ -842,18 +842,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BronchodilatorTest').repeat(item).where(linkId='EmCare.B22.DE17').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BronchodilatorTest').repeat(item).where(linkId='Ccc.B22.DE17').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE22",
+ "linkId": "Ccc.B22.DE22",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE22",
+ "code": "Ccc.B22.DE22",
"display": "Inhaled Bronchodilator Trial Not Feasible or Available"
}
}
@@ -866,7 +866,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B22.DE21",
+ "linkId": "Ccc.B22.DE21",
"text": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)",
"type": "boolean",
"required": false,
@@ -878,7 +878,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.breastfeeding"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.breastfeeding"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -888,13 +888,13 @@
}
}
],
- "linkId": "EmCare.B22.BreastFeeding",
+ "linkId": "Ccc.B22.BreastFeeding",
"type": "group",
"required": false,
"repeats": false,
"item": [
{
- "linkId": "EmCare.B22.DE27",
+ "linkId": "Ccc.B22.DE27",
"text": "Breastfeeding Assessment",
"type": "display",
"required": false,
@@ -914,7 +914,7 @@
}
}
],
- "linkId": "EmCare.B22.DE27-help",
+ "linkId": "Ccc.B22.DE27-help",
"text": "If a breastfeeding assessment and an Oral Fluid test is recommended for a child that is only breastfed then a pop up is required to ensure that the health care worker observes the signs for both and provides results for both tests.",
"type": "display"
}
@@ -936,14 +936,14 @@
}
}
],
- "linkId": "EmCare.B22.DE41",
+ "linkId": "Ccc.B22.DE41",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE41",
+ "code": "Ccc.B22.DE41",
"display": "Breastfeeding Assessment Not Possible"
}
}
@@ -956,7 +956,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B22.DE28",
+ "linkId": "Ccc.B22.DE28",
"text": "Breastfed in the previous hour",
"type": "boolean",
"required": true,
@@ -972,11 +972,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE28').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE28').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B22.DE29",
+ "linkId": "Ccc.B22.DE29",
"text": "Mother able to wait until young infant is willing to breastfeed again",
"type": "boolean",
"required": false,
@@ -992,11 +992,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE30",
+ "linkId": "Ccc.B22.DE30",
"text": "Mother reports difficulty breastfeeding",
"type": "boolean",
"required": true,
@@ -1016,7 +1016,7 @@
}
}
],
- "linkId": "EmCare.B22.DE30-help",
+ "linkId": "Ccc.B22.DE30-help",
"text": "Provide information on what difficulty breastfeeding may include, such as: the infant feeds too often, doesn’t feed often enough, she does not have enough milk, her nipples are sore, or she has flat or inverted nipples. After feeds, the infant may be restless, cry or try to suckle again, or continue to breastfeed for a long time.",
"type": "display"
}
@@ -1032,11 +1032,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE31",
+ "linkId": "Ccc.B22.DE31",
"text": "Chin Touching Breast",
"type": "boolean",
"required": true,
@@ -1052,11 +1052,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE32",
+ "linkId": "Ccc.B22.DE32",
"text": "Mouth Wide Open",
"type": "boolean",
"required": true,
@@ -1072,11 +1072,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE33",
+ "linkId": "Ccc.B22.DE33",
"text": "Lower Lip Turned Outwards",
"type": "boolean",
"required": true,
@@ -1092,11 +1092,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE34",
+ "linkId": "Ccc.B22.DE34",
"text": "More Areola Visible above than below the Mouth",
"type": "boolean",
"required": true,
@@ -1112,11 +1112,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE35",
+ "linkId": "Ccc.B22.DE35",
"text": "Slow Deep Sucks, Sometimes Pausing",
"type": "boolean",
"required": true,
@@ -1128,18 +1128,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE40').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE35').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE31').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE32').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE33').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE34').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE40').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE35').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE31').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE32').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE33').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE34').answer.first().exists()"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE37').answer.first().value=true,'Not well Attached to Breast',iif( %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE38').answer.first().value=true , 'Good Attachment',iif( %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE39').answer.first().value=true,'Not Sucking Effectively',iif( %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE40').answer.first().value=true, 'Sucking Effectively',{}))))"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE37').answer.first().value=true,'Not well Attached to Breast',iif( %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE38').answer.first().value=true , 'Good Attachment',iif( %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE39').answer.first().value=true,'Not Sucking Effectively',iif( %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE40').answer.first().value=true, 'Sucking Effectively',{}))))"
}
}
],
- "linkId": "EmCare.B22.DE36",
+ "linkId": "Ccc.B22.DE36",
"text": "Breastfeeding Assessment Results",
"type": "string",
"required": true,
@@ -1160,11 +1160,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE31').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE32').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE33').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE34').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE31').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE32').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE33').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE34').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE37",
+ "linkId": "Ccc.B22.DE37",
"text": "Not well Attached to Breast",
"type": "boolean",
"required": false,
@@ -1184,11 +1184,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE31').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE32').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE33').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE34').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE31').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE32').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE33').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE34').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE38",
+ "linkId": "Ccc.B22.DE38",
"text": "Good Attachment",
"type": "boolean",
"required": false,
@@ -1208,11 +1208,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE35').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE35').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE39",
+ "linkId": "Ccc.B22.DE39",
"text": "Not Sucking Effectively",
"type": "boolean",
"required": false,
@@ -1232,11 +1232,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE35').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE35').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE40",
+ "linkId": "Ccc.B22.DE40",
"text": "Sucking Effectively",
"type": "boolean",
"required": false,
@@ -1252,11 +1252,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE30').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE30').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE42",
+ "linkId": "Ccc.B22.DE42",
"text": "Difficulty Breastfeeding Reported",
"type": "boolean",
"required": false,
@@ -1273,11 +1273,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE39').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B22.BreastFeeding').repeat(item).where(linkId='EmCare.B22.DE37').answer.first().value =true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE39').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B22.BreastFeeding').repeat(item).where(linkId='Ccc.B22.DE37').answer.first().value =true"
}
}
],
- "linkId": "EmCare.B22.DE44",
+ "linkId": "Ccc.B22.DE44",
"text": "Difficulty Breastfeeding Observed",
"type": "boolean",
"required": false,
@@ -1290,7 +1290,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.hemoglobin"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.hemoglobin"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -1300,7 +1300,7 @@
}
}
],
- "linkId": "EmCare.B22.Hemoglobin",
+ "linkId": "Ccc.B22.Hemoglobin",
"type": "group",
"required": false,
"repeats": false,
@@ -1311,11 +1311,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.Hemoglobin').repeat(item).where(linkId='EmCare.B22.DE82').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.Hemoglobin').repeat(item).where(linkId='Ccc.B22.DE82').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE81",
+ "linkId": "Ccc.B22.DE81",
"text": "Hemoglobin (Hb) g/dL",
"type": "quantity",
"required": true,
@@ -1340,18 +1340,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.Hemoglobin').repeat(item).where(linkId='EmCare.B22.DE81').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.Hemoglobin').repeat(item).where(linkId='Ccc.B22.DE81').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE82",
+ "linkId": "Ccc.B22.DE82",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE82",
+ "code": "Ccc.B22.DE82",
"display": "Hemoglobin Test Not Available"
}
}
@@ -1363,7 +1363,7 @@
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",
- "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.secondtemperature"
+ "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.secondtemperature"
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
@@ -1373,7 +1373,7 @@
}
}
],
- "linkId": "EmCare.B22.SecondTemperature",
+ "linkId": "Ccc.B22.SecondTemperature",
"type": "group",
"required": false,
"repeats": false,
@@ -1391,11 +1391,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE46').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE46').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE47",
+ "linkId": "Ccc.B22.DE47",
"text": "Axillary Temperature (second measurement)",
"type": "quantity",
"required": false,
@@ -1415,7 +1415,7 @@
}
}
],
- "linkId": "EmCare.B22.DE47-help",
+ "linkId": "Ccc.B22.DE47-help",
"text": "The client’s axillary temperature in degrees Celcius (temperature taken under the armpit)
\nWarning/error if above 45 and below 32 degrees Celcius.",
"type": "display"
}
@@ -1440,18 +1440,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE46",
+ "linkId": "Ccc.B22.DE46",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE46",
+ "code": "Ccc.B22.DE46",
"display": "Second Temperature Measurement Not Feasible"
}
}
@@ -1463,18 +1463,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().exists()"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, 'High',iif(%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value < 35.5 'Cel' , 'Low',iif(%resource.repeat(item).where(linkId='EmCare.B22.SecondTemperature').repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value.exists(), 'Normal',{}))))"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, 'High',iif(%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value < 35.5 'Cel' , 'Low',iif(%resource.repeat(item).where(linkId='Ccc.B22.SecondTemperature').repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value.exists(), 'Normal',{}))))"
}
}
],
- "linkId": "EmCare.B22.DE50",
+ "linkId": "Ccc.B22.DE50",
"text": "Measured Temperature (second measurement)",
"type": "string",
"required": false,
@@ -1598,11 +1598,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b7.de09"
+ "expression": "Ccc.b7.de09"
}
}
],
- "linkId": "EmCare.B7.DE09",
+ "linkId": "Ccc.B7.DE09",
"text": "Not able to drink or breastfeed",
"type": "boolean",
"required": false,
@@ -1622,11 +1622,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b7.de10"
+ "expression": "Ccc.b7.de10"
}
}
],
- "linkId": "EmCare.B7.DE10",
+ "linkId": "Ccc.B7.DE10",
"text": "Vomiting Everything",
"type": "boolean",
"required": false,
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json b/input/resources/questionnaire/questionnaire-Ccc.b22.breastfeeding.json
similarity index 83%
rename from input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.breastfeeding.json
index cc30d4c3..39bb299f 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.breastfeeding.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.breastfeeding.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.breastfeeding",
+ "id": "Ccc.b22.breastfeeding",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22breastfeeding"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb22breastfeeding"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.breastfeeding",
- "name": "EmCare.B22.BreastFeeding",
- "title": "EmCare.B22.BreastFeeding",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.breastfeeding",
+ "name": "Ccc.B22.BreastFeeding",
+ "title": "Ccc.B22.BreastFeeding",
"status": "active",
"experimental": false,
"subjectType": [
@@ -62,7 +62,7 @@
"repeats": false
},
{
- "linkId": "EmCare.B22.DE27",
+ "linkId": "Ccc.B22.DE27",
"text": "Breastfeeding Assessment",
"type": "display",
"required": false,
@@ -82,7 +82,7 @@
}
}
],
- "linkId": "EmCare.B22.DE27-help",
+ "linkId": "Ccc.B22.DE27-help",
"text": "If a breastfeeding assessment and an Oral Fluid test is recommended for a child that is only breastfed then a pop up is required to ensure that the health care worker observes the signs for both and provides results for both tests.",
"type": "display"
}
@@ -104,14 +104,14 @@
}
}
],
- "linkId": "EmCare.B22.DE41",
+ "linkId": "Ccc.B22.DE41",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE41",
+ "code": "Ccc.B22.DE41",
"display": "Breastfeeding Assessment Not Possible"
}
}
@@ -124,7 +124,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B22.DE28",
+ "linkId": "Ccc.B22.DE28",
"text": "Breastfed in the previous hour",
"type": "boolean",
"required": true,
@@ -140,11 +140,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE28').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE28').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B22.DE29",
+ "linkId": "Ccc.B22.DE29",
"text": "Mother able to wait until young infant is willing to breastfeed again",
"type": "boolean",
"required": false,
@@ -160,11 +160,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE30",
+ "linkId": "Ccc.B22.DE30",
"text": "Mother reports difficulty breastfeeding",
"type": "boolean",
"required": true,
@@ -184,7 +184,7 @@
}
}
],
- "linkId": "EmCare.B22.DE30-help",
+ "linkId": "Ccc.B22.DE30-help",
"text": "Provide information on what difficulty breastfeeding may include, such as: the infant feeds too often, doesn’t feed often enough, she does not have enough milk, her nipples are sore, or she has flat or inverted nipples. After feeds, the infant may be restless, cry or try to suckle again, or continue to breastfeed for a long time.",
"type": "display"
}
@@ -200,11 +200,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE31",
+ "linkId": "Ccc.B22.DE31",
"text": "Chin Touching Breast",
"type": "boolean",
"required": true,
@@ -220,11 +220,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE32",
+ "linkId": "Ccc.B22.DE32",
"text": "Mouth Wide Open",
"type": "boolean",
"required": true,
@@ -240,11 +240,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE33",
+ "linkId": "Ccc.B22.DE33",
"text": "Lower Lip Turned Outwards",
"type": "boolean",
"required": true,
@@ -260,11 +260,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE34",
+ "linkId": "Ccc.B22.DE34",
"text": "More Areola Visible above than below the Mouth",
"type": "boolean",
"required": true,
@@ -280,11 +280,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE41').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE41').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE35",
+ "linkId": "Ccc.B22.DE35",
"text": "Slow Deep Sucks, Sometimes Pausing",
"type": "boolean",
"required": true,
@@ -296,18 +296,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE40').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.DE35').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.DE31').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.DE32').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.DE33').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B22.DE34').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE40').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.DE35').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.DE31').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.DE32').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.DE33').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B22.DE34').answer.first().exists()"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B22.DE37').answer.first().value=true,'Not well Attached to Breast',iif( %resource.repeat(item).where(linkId='EmCare.B22.DE38').answer.first().value=true , 'Good Attachment',iif( %resource.repeat(item).where(linkId='EmCare.B22.DE39').answer.first().value=true,'Not Sucking Effectively',iif( %resource.repeat(item).where(linkId='EmCare.B22.DE40').answer.first().value=true, 'Sucking Effectively',{}))))"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B22.DE37').answer.first().value=true,'Not well Attached to Breast',iif( %resource.repeat(item).where(linkId='Ccc.B22.DE38').answer.first().value=true , 'Good Attachment',iif( %resource.repeat(item).where(linkId='Ccc.B22.DE39').answer.first().value=true,'Not Sucking Effectively',iif( %resource.repeat(item).where(linkId='Ccc.B22.DE40').answer.first().value=true, 'Sucking Effectively',{}))))"
}
}
],
- "linkId": "EmCare.B22.DE36",
+ "linkId": "Ccc.B22.DE36",
"text": "Breastfeeding Assessment Results",
"type": "string",
"required": true,
@@ -328,11 +328,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE31').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.DE32').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.DE33').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B22.DE34').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE31').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.DE32').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.DE33').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B22.DE34').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE37",
+ "linkId": "Ccc.B22.DE37",
"text": "Not well Attached to Breast",
"type": "boolean",
"required": false,
@@ -352,11 +352,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE31').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.DE32').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.DE33').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B22.DE34').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE31').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.DE32').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.DE33').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B22.DE34').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE38",
+ "linkId": "Ccc.B22.DE38",
"text": "Good Attachment",
"type": "boolean",
"required": false,
@@ -376,11 +376,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE35').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE35').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE39",
+ "linkId": "Ccc.B22.DE39",
"text": "Not Sucking Effectively",
"type": "boolean",
"required": false,
@@ -400,11 +400,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE35').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE35').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE40",
+ "linkId": "Ccc.B22.DE40",
"text": "Sucking Effectively",
"type": "boolean",
"required": false,
@@ -420,11 +420,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE30').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE30').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE42",
+ "linkId": "Ccc.B22.DE42",
"text": "Difficulty Breastfeeding Reported",
"type": "boolean",
"required": false,
@@ -441,11 +441,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE39').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B22.DE37').answer.first().value =true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE39').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B22.DE37').answer.first().value =true"
}
}
],
- "linkId": "EmCare.B22.DE44",
+ "linkId": "Ccc.B22.DE44",
"text": "Difficulty Breastfeeding Observed",
"type": "boolean",
"required": false,
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json b/input/resources/questionnaire/questionnaire-Ccc.b22.bronchodilatortest.json
similarity index 86%
rename from input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.bronchodilatortest.json
index 1971fb34..5fcb39e7 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.bronchodilatortest.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.bronchodilatortest.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.bronchodilatortest",
+ "id": "Ccc.b22.bronchodilatortest",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,12 +25,12 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.bronchodilatortest"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.bronchodilatortest",
- "name": "EmCare.B22.BronchodilatorTest",
- "title": "EmCare.B22.BronchodilatorTest",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.bronchodilatortest",
+ "name": "Ccc.B22.BronchodilatorTest",
+ "title": "Ccc.B22.BronchodilatorTest",
"status": "active",
"experimental": false,
"subjectType": [
@@ -43,11 +43,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE22').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE22').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE17",
+ "linkId": "Ccc.B22.DE17",
"text": "Inhaled Bronchodilator Trial Results",
"type": "choice",
"required": false,
@@ -55,36 +55,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE18",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE18",
"display": "Chest Indrawing (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE19",
"display": "Respiratory Rate (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE20",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE20",
"display": "Fast Breathing (post inhaled bronchodilator trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE21",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE21",
"display": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE22",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE22",
"display": "Inhaled Bronchodilator Trial Not Feasible or Available"
}
}
@@ -104,7 +104,7 @@
}
}
],
- "linkId": "EmCare.B22.DE17-help",
+ "linkId": "Ccc.B22.DE17-help",
"text": "Provide information on how to conduct an Inhaled Bronchodilator Trial as per IMCI training – TBC",
"type": "display"
}
@@ -129,18 +129,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE17').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE17').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE22",
+ "linkId": "Ccc.B22.DE22",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE22",
+ "code": "Ccc.B22.DE22",
"display": "Inhaled Bronchodilator Trial Not Feasible or Available"
}
}
@@ -153,7 +153,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B22.DE21",
+ "linkId": "Ccc.B22.DE21",
"text": "No Fast Breathing and No Chest Indrawing (post Inhaled Bronchodilator Trial)",
"type": "boolean",
"required": false,
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json b/input/resources/questionnaire/questionnaire-Ccc.b22.fluidtest.json
similarity index 83%
rename from input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.fluidtest.json
index 151ff8ae..5c6cf2ce 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.fluidtest.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.fluidtest.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.fluidtest",
+ "id": "Ccc.b22.fluidtest",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.fluidtest"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22fluidtest"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb22fluidtest"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest",
- "name": "EmCare.B22.FluidTest",
- "title": "EmCare.B22.FluidTest",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.fluidtest",
+ "name": "Ccc.B22.FluidTest",
+ "title": "Ccc.B22.FluidTest",
"status": "active",
"experimental": false,
"subjectType": [
@@ -79,11 +79,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b7.de09"
+ "expression": "Ccc.b7.de09"
}
}
],
- "linkId": "EmCare.B7.DE09",
+ "linkId": "Ccc.B7.DE09",
"text": "Not able to drink or breastfeed",
"type": "boolean",
"required": false,
@@ -103,11 +103,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b7.de10"
+ "expression": "Ccc.b7.de10"
}
}
],
- "linkId": "EmCare.B7.DE10",
+ "linkId": "Ccc.B7.DE10",
"text": "Vomiting Everything",
"type": "boolean",
"required": false,
@@ -119,11 +119,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )"
}
}
],
- "linkId": "EmCare.B22.DE08",
+ "linkId": "Ccc.B22.DE08",
"text": "Oral Fluid Test Results",
"type": "choice",
"required": true,
@@ -131,36 +131,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE09",
"display": "Completely Unable to Drink"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE10",
"display": "Vomits Immediately / Everything"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE11",
"display": "Drinks Poorly"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE12",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE12",
"display": "Drinks Eagerly / Thirstily"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE13",
"display": "Drinks Normally"
}
}
@@ -180,7 +180,7 @@
}
}
],
- "linkId": "EmCare.B22.DE08-help",
+ "linkId": "Ccc.B22.DE08-help",
"text": "If a child is unconscious do not try to carry out an oral fluid test (Exact wording TBC) – Pop Up
If a breastfeeding assessment and an Oral Fluid test is recommended for a child that is only breastfed then a pop up is required to ensure that the health care worker observes the signs for both and provides results for both tests.
\n\n\tOral Fluid Test
\nIf it is not possible to perform an oral fluid test, the health care worker should assume that the child is vomiting everything
\nFor a child under 6 months the health care worker can offer for the mother to breastfeed instead of receiving fluids
Caution: Do not force fluids into an unconscious child , it can be dangerous. The fluid can cause them to choke or the fluid can go into their lungs.
\n\n\tPop up box to be made available with instructions on how to carry out an oral fluid test.
\nAdditional information TBC",
"type": "display"
}
@@ -205,18 +205,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE08').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE08').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE14",
+ "linkId": "Ccc.B22.DE14",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE14",
+ "code": "Ccc.B22.DE14",
"display": "Unable to Perform Oral Fluid Test"
}
}
@@ -236,18 +236,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = true"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE09').exists() or %resource.repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE10').exists() )"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE09').exists() or %resource.repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE10').exists() )"
}
}
],
- "linkId": "EmCare.B22.DE14a",
+ "linkId": "Ccc.B22.DE14a",
"text": "Completely Unable to Drink or Vomits Immediately / Everything",
"type": "boolean",
"required": false,
@@ -263,11 +263,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE15",
+ "linkId": "Ccc.B22.DE15",
"text": "Has the Child had anything to drink today?",
"type": "boolean",
"required": false,
@@ -279,11 +279,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE15').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE15').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE16",
+ "linkId": "Ccc.B22.DE16",
"text": "How did the child last drink",
"type": "choice",
"required": false,
@@ -291,36 +291,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE09",
"display": "Completely Unable to Drink"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE10",
"display": "Vomits Immediately / Everything"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE11",
"display": "Drinks Poorly"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE12",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE12",
"display": "Drinks Eagerly / Thirstily"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE13",
"display": "Drinks Normally"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json b/input/resources/questionnaire/questionnaire-Ccc.b22.hemoglobin.json
similarity index 88%
rename from input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.hemoglobin.json
index 05407de3..de8c9351 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.hemoglobin.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.hemoglobin.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.hemoglobin",
+ "id": "Ccc.b22.hemoglobin",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,12 +25,12 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.hemoglobin"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.hemoglobin",
- "name": "EmCare.B22.Hemoglobin",
- "title": "EmCare.B22.Hemoglobin",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.hemoglobin",
+ "name": "Ccc.B22.Hemoglobin",
+ "title": "Ccc.B22.Hemoglobin",
"status": "active",
"experimental": false,
"subjectType": [
@@ -43,11 +43,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE82').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE82').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE81",
+ "linkId": "Ccc.B22.DE81",
"text": "Hemoglobin (Hb) g/dL",
"type": "quantity",
"required": true,
@@ -72,18 +72,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE81').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE81').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE82",
+ "linkId": "Ccc.B22.DE82",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE82",
+ "code": "Ccc.B22.DE82",
"display": "Hemoglobin Test Not Available"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json b/input/resources/questionnaire/questionnaire-Ccc.b22.respiratoryrate.json
similarity index 84%
rename from input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.respiratoryrate.json
index 0d90b910..9879f402 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.respiratoryrate.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.respiratoryrate.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.respiratoryrate",
+ "id": "Ccc.b22.respiratoryrate",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.respiratoryrate"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22respiratoryrate"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb22respiratoryrate"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.respiratoryrate",
- "name": "EmCare.B22.RespiratoryRate",
- "title": "EmCare.B22.RespiratoryRate",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.respiratoryrate",
+ "name": "Ccc.B22.RespiratoryRate",
+ "title": "Ccc.B22.RespiratoryRate",
"status": "active",
"experimental": false,
"subjectType": [
@@ -158,7 +158,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE02').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty()"
}
},
{
@@ -169,7 +169,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01",
+ "linkId": "Ccc.B22.DE01",
"text": "Respiratory Rate (breaths per minute)",
"type": "quantity",
"required": true,
@@ -189,7 +189,7 @@
}
}
],
- "linkId": "EmCare.B22.DE01-help",
+ "linkId": "Ccc.B22.DE01-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -214,18 +214,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().empty() and %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().empty() and %resource.repeat(item).where(linkId='force-collection').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE02",
+ "linkId": "Ccc.B22.DE02",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE02",
+ "code": "Ccc.B22.DE02",
"display": "Unable to perform Respiratory Rate at this time"
}
}
@@ -237,7 +237,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 2 and (%resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value > 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min') and %resource.repeat(item).where(linkId='Respiratory Rate Second Count Profile').answer.first().empty()"
}
}
],
@@ -259,11 +259,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE04",
+ "linkId": "Ccc.B22.DE04",
"text": "Respiratory Rate Second Count (breaths per minute)",
"type": "quantity",
"required": false,
@@ -283,7 +283,7 @@
}
}
],
- "linkId": "EmCare.B22.DE04-help",
+ "linkId": "Ccc.B22.DE04-help",
"text": "Count the number of breaths the child takes per minute to determine if fast breathing is present.
\nIt is very important that the child is calm and still. If the child is moving or crying, you will not be able to get an accurate count of breaths.
\nTo count the breaths per minute, use a watch with a second hand or a digital watch. Look for the breathing movement anywhere on the child\u2019s chest or abdomen.
\nThe number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age.
*In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
@@ -308,18 +308,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE05",
+ "linkId": "Ccc.B22.DE05",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE05",
+ "code": "Ccc.B22.DE05",
"display": "Respiratory Rate Second Count Not Possible"
}
}
@@ -337,18 +337,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min')"
+ "expression": "%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min')"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='EmCare.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='EmCare.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})"
+ "expression": "iif(%resource.repeat(item).where(linkId='Fast Breathing profile').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2 or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().exists() or %resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value < 60 '{Breaths}/min'),iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<2 and (%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE04').answer.first().value >= 60 '{Breaths}/min' or (%resource.repeat(item).where(linkId='second').repeat(item).where(linkId='Ccc.B22.DE05').answer.first().exists() and ( %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 60 '{Breaths}/min' or %resource.repeat(item).where(linkId='Respiratory Rate profile').answer.first().value >= 60 '{Breaths}/min' ) ) ) or %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 50 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2or %resource.repeat(item).where(linkId='Ccc.B22.DE01').answer.first().value >= 40 '{Breaths}/min' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=12 and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 60, true, false),{})"
}
}
],
- "linkId": "EmCare.B22.DE07",
+ "linkId": "Ccc.B22.DE07",
"text": "Fast Breathing",
"type": "boolean",
"required": false,
@@ -369,7 +369,7 @@
}
}
],
- "linkId": "EmCare.B22.DE07-help",
+ "linkId": "Ccc.B22.DE07-help",
"text": "The number of breaths for \u2018fast breathing\u2019 depends on the child\u2019s age. * Under 2 months: More than 60 breaths per minute* * 2 to 11 months: More than 50 breaths per minute * 12 to 59 months: More than 40 breaths per minute *In young infants, a second measurement should be taken to confirm, unless there is already another sign of possible serious bacterial infection",
"type": "display"
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json b/input/resources/questionnaire/questionnaire-Ccc.b22.secondtemperature.json
similarity index 82%
rename from input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json
rename to input/resources/questionnaire/questionnaire-Ccc.b22.secondtemperature.json
index 431df11e..1dbf2163 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b22.secondtemperature.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b22.secondtemperature.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b22.secondtemperature",
+ "id": "Ccc.b22.secondtemperature",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b22.secondtemperature"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb22secondtemperature"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb22secondtemperature"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b22.secondtemperature",
- "name": "EmCare.B22.SecondTemperature",
- "title": "EmCare.B22.SecondTemperature",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.secondtemperature",
+ "name": "Ccc.B22.SecondTemperature",
+ "title": "Ccc.B22.SecondTemperature",
"status": "active",
"experimental": false,
"subjectType": [
@@ -74,11 +74,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE46').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE46').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE47",
+ "linkId": "Ccc.B22.DE47",
"text": "Axillary Temperature (second measurement)",
"type": "quantity",
"required": false,
@@ -98,7 +98,7 @@
}
}
],
- "linkId": "EmCare.B22.DE47-help",
+ "linkId": "Ccc.B22.DE47-help",
"text": "The client’s axillary temperature in degrees Celcius (temperature taken under the armpit)
\nWarning/error if above 45 and below 32 degrees Celcius.",
"type": "display"
}
@@ -123,18 +123,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE46",
+ "linkId": "Ccc.B22.DE46",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE46",
+ "code": "Ccc.B22.DE46",
"display": "Second Temperature Measurement Not Feasible"
}
}
@@ -146,18 +146,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().exists()"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, 'High',iif(%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value < 35.5 'Cel' , 'Low',iif(%resource.repeat(item).where(linkId='EmCare.B22.DE47').answer.first().value.exists(), 'Normal',{}))))"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, 'High',iif(%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value < 35.5 'Cel' , 'Low',iif(%resource.repeat(item).where(linkId='Ccc.B22.DE47').answer.first().value.exists(), 'Normal',{}))))"
}
}
],
- "linkId": "EmCare.B22.DE50",
+ "linkId": "Ccc.B22.DE50",
"text": "Measured Temperature (second measurement)",
"type": "string",
"required": false,
diff --git a/input/resources/questionnaire/questionnaire-emcare.b23.classification.json b/input/resources/questionnaire/questionnaire-Ccc.b23.classification.json
similarity index 92%
rename from input/resources/questionnaire/questionnaire-emcare.b23.classification.json
rename to input/resources/questionnaire/questionnaire-Ccc.b23.classification.json
index d3c12818..4ff808ed 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b23.classification.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b23.classification.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b23.classification",
+ "id": "Ccc.b23.classification",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b23.classification"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb23classification"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb23classification"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification",
- "name": "EmCare.B23.Classification",
- "title": "EmCare.B23.Classification",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b23.classification",
+ "name": "Ccc.B23.Classification",
+ "title": "Ccc.B23.Classification",
"status": "active",
"experimental": false,
"subjectType": [
@@ -84,11 +84,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b6.de06"
+ "expression": "Ccc.b6.de06"
}
}
],
- "linkId": "EmCare.B6.DE06",
+ "linkId": "Ccc.B6.DE06",
"text": "Weight",
"type": "quantity",
"required": false,
@@ -115,11 +115,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b6.de08-old"
+ "expression": "Ccc.b6.de08-old"
}
}
],
- "linkId": "EmCare.B6.DE08-old",
+ "linkId": "Ccc.B6.DE08-old",
"text": "Profile Weight",
"type": "quantity",
"required": false,
@@ -146,11 +146,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b6.de08"
+ "expression": "Ccc.b6.de08"
}
}
],
- "linkId": "EmCare.B6.DE08",
+ "linkId": "Ccc.B6.DE08",
"text": "Estimated Weight",
"type": "quantity",
"required": false,
@@ -167,7 +167,7 @@
}
}
],
- "linkId": "EmCare.B23.DE01",
+ "linkId": "Ccc.B23.DE01",
"text": "Very Severe Disease",
"type": "choice",
"required": false,
@@ -175,14 +175,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -227,11 +227,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de04"
+ "expression": "Ccc.b23.de04"
}
}
],
- "linkId": "EmCare.B23.DE04",
+ "linkId": "Ccc.B23.DE04",
"type": "boolean",
"required": false,
"repeats": false
@@ -250,11 +250,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de05"
+ "expression": "Ccc.b23.de05"
}
}
],
- "linkId": "EmCare.B23.DE05",
+ "linkId": "Ccc.B23.DE05",
"type": "boolean",
"required": false,
"repeats": false
@@ -273,11 +273,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de08"
+ "expression": "Ccc.b23.de08"
}
}
],
- "linkId": "EmCare.B23.DE08",
+ "linkId": "Ccc.B23.DE08",
"type": "boolean",
"required": false,
"repeats": false
@@ -319,7 +319,7 @@
}
}
],
- "linkId": "EmCare.B23.DE03",
+ "linkId": "Ccc.B23.DE03",
"text": "Severe Pneumonia or Very Severe Disease",
"type": "choice",
"required": false,
@@ -327,14 +327,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -358,11 +358,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE04').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE04').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE04_l",
+ "linkId": "Ccc.B23.DE04_l",
"text": "with low oxygen saturation (SPO2 < 90%)",
"type": "display",
"required": false,
@@ -385,11 +385,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE05').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE05').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE05_l",
+ "linkId": "Ccc.B23.DE05_l",
"text": "with wheezing",
"type": "display",
"required": false,
@@ -431,7 +431,7 @@
}
}
],
- "linkId": "EmCare.B23.DE06",
+ "linkId": "Ccc.B23.DE06",
"text": "Pneumonia",
"type": "choice",
"required": false,
@@ -439,14 +439,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -470,11 +470,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE05').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE05').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE05_l",
+ "linkId": "Ccc.B23.DE05_l",
"text": "with wheezing",
"type": "display",
"required": false,
@@ -497,11 +497,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE08').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE08').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE08_l",
+ "linkId": "Ccc.B23.DE08_l",
"text": "with cough or difficulty breathing for 14 days or more or recurrent wheeze",
"type": "display",
"required": false,
@@ -543,7 +543,7 @@
}
}
],
- "linkId": "EmCare.B23.DE10",
+ "linkId": "Ccc.B23.DE10",
"text": "Cough or Cold",
"type": "choice",
"required": false,
@@ -551,14 +551,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -582,11 +582,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE05').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE05').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE05_l",
+ "linkId": "Ccc.B23.DE05_l",
"text": "with wheezing",
"type": "display",
"required": false,
@@ -609,11 +609,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE08').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE08').answer.first().value=true"
}
}
],
- "linkId": "EmCare.B23.DE08_l",
+ "linkId": "Ccc.B23.DE08_l",
"text": "with cough or difficulty breathing for 14 days or more or recurrent wheeze",
"type": "display",
"required": false,
@@ -655,7 +655,7 @@
}
}
],
- "linkId": "EmCare.B23.DE13",
+ "linkId": "Ccc.B23.DE13",
"text": "Severe Dehydration",
"type": "choice",
"required": false,
@@ -663,14 +663,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -711,7 +711,7 @@
}
}
],
- "linkId": "EmCare.B23.DE14",
+ "linkId": "Ccc.B23.DE14",
"text": "Some Dehydration",
"type": "choice",
"required": false,
@@ -719,14 +719,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -767,7 +767,7 @@
}
}
],
- "linkId": "EmCare.B23.DE15",
+ "linkId": "Ccc.B23.DE15",
"text": "No Dehydration",
"type": "choice",
"required": false,
@@ -775,14 +775,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -823,7 +823,7 @@
}
}
],
- "linkId": "EmCare.B23.DE16",
+ "linkId": "Ccc.B23.DE16",
"text": "Severe Persistent Diarrhoea",
"type": "choice",
"required": false,
@@ -831,14 +831,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -879,7 +879,7 @@
}
}
],
- "linkId": "EmCare.B23.DE17",
+ "linkId": "Ccc.B23.DE17",
"text": "Persistent Diarrhoea",
"type": "choice",
"required": false,
@@ -887,14 +887,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -935,7 +935,7 @@
}
}
],
- "linkId": "EmCare.B23.DE18",
+ "linkId": "Ccc.B23.DE18",
"text": "Dysentery",
"type": "choice",
"required": false,
@@ -943,14 +943,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -991,7 +991,7 @@
}
}
],
- "linkId": "EmCare.B23.DE18.a",
+ "linkId": "Ccc.B23.DE18.a",
"text": "Possible Shigella",
"type": "choice",
"required": false,
@@ -999,14 +999,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1047,7 +1047,7 @@
}
}
],
- "linkId": "EmCare.B23.DE100",
+ "linkId": "Ccc.B23.DE100",
"text": "Throat Abscess or Possible Diptheria",
"type": "choice",
"required": false,
@@ -1055,14 +1055,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1103,7 +1103,7 @@
}
}
],
- "linkId": "EmCare.B23.DE6101",
+ "linkId": "Ccc.B23.DE6101",
"text": "Streptococcal Sore Throat",
"type": "choice",
"required": false,
@@ -1111,14 +1111,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1159,7 +1159,7 @@
}
}
],
- "linkId": "EmCare.B23.DE6102",
+ "linkId": "Ccc.B23.DE6102",
"text": "Non-Streptococcal Sore Throat",
"type": "choice",
"required": false,
@@ -1167,14 +1167,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1215,7 +1215,7 @@
}
}
],
- "linkId": "EmCare.B23.DE6103",
+ "linkId": "Ccc.B23.DE6103",
"text": "No Throat Problem",
"type": "choice",
"required": false,
@@ -1223,14 +1223,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1271,7 +1271,7 @@
}
}
],
- "linkId": "EmCare.B23.DE30",
+ "linkId": "Ccc.B23.DE30",
"text": "Mastoiditis",
"type": "choice",
"required": false,
@@ -1279,14 +1279,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1327,7 +1327,7 @@
}
}
],
- "linkId": "EmCare.B23.DE31",
+ "linkId": "Ccc.B23.DE31",
"text": "Acute Ear Infection",
"type": "choice",
"required": false,
@@ -1335,14 +1335,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1387,11 +1387,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de32a"
+ "expression": "Ccc.b23.de32a"
}
}
],
- "linkId": "EmCare.B23.DE32a",
+ "linkId": "Ccc.B23.DE32a",
"type": "boolean",
"required": false,
"repeats": false
@@ -1406,7 +1406,7 @@
}
}
],
- "linkId": "EmCare.B23.DE32",
+ "linkId": "Ccc.B23.DE32",
"text": "Chronic Ear Infection",
"type": "choice",
"required": false,
@@ -1414,14 +1414,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1445,11 +1445,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE32a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE32a').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B23.DE32a_l",
+ "linkId": "Ccc.B23.DE32a_l",
"text": "with ear pain or fever",
"type": "display",
"required": false,
@@ -1491,7 +1491,7 @@
}
}
],
- "linkId": "EmCare.B23.DE33",
+ "linkId": "Ccc.B23.DE33",
"text": "No Ear Infection",
"type": "choice",
"required": false,
@@ -1499,14 +1499,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1547,7 +1547,7 @@
}
}
],
- "linkId": "EmCare.B23.DE19",
+ "linkId": "Ccc.B23.DE19",
"text": "Very Severe Febrile Disease",
"type": "choice",
"required": false,
@@ -1555,14 +1555,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1607,11 +1607,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de26a"
+ "expression": "Ccc.b23.de26a"
}
}
],
- "linkId": "EmCare.B23.DE26a",
+ "linkId": "Ccc.B23.DE26a",
"text": "Fever present every day for 7 Days or more",
"type": "boolean",
"required": false,
@@ -1627,7 +1627,7 @@
}
}
],
- "linkId": "EmCare.B23.DE104",
+ "linkId": "Ccc.B23.DE104",
"text": "Fever: possible bacterial infection",
"type": "choice",
"required": false,
@@ -1635,14 +1635,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1666,11 +1666,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE26a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE26a').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B23.DE26a_l",
+ "linkId": "Ccc.B23.DE26a_l",
"text": "Fever present every day for 7 Days or more",
"type": "display",
"required": false,
@@ -1712,7 +1712,7 @@
}
}
],
- "linkId": "EmCare.B23.DE105",
+ "linkId": "Ccc.B23.DE105",
"text": "Fever: bacterial infection unlikely",
"type": "choice",
"required": false,
@@ -1720,14 +1720,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1768,7 +1768,7 @@
}
}
],
- "linkId": "EmCare.B23.DE27",
+ "linkId": "Ccc.B23.DE27",
"text": "Severe Complicated Measles",
"type": "choice",
"required": false,
@@ -1776,14 +1776,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1824,7 +1824,7 @@
}
}
],
- "linkId": "EmCare.B23.DE28",
+ "linkId": "Ccc.B23.DE28",
"text": "Measles with Eye or Mouth Complication",
"type": "choice",
"required": false,
@@ -1832,14 +1832,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1880,7 +1880,7 @@
}
}
],
- "linkId": "EmCare.B23.DE29",
+ "linkId": "Ccc.B23.DE29",
"text": "Possible Measles",
"type": "choice",
"required": false,
@@ -1888,14 +1888,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1936,7 +1936,7 @@
}
}
],
- "linkId": "EmCare.B23.DE62",
+ "linkId": "Ccc.B23.DE62",
"text": "Severe Anaemia",
"type": "choice",
"required": false,
@@ -1944,14 +1944,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -1992,7 +1992,7 @@
}
}
],
- "linkId": "EmCare.B23.DE63",
+ "linkId": "Ccc.B23.DE63",
"text": "Anaemia",
"type": "choice",
"required": false,
@@ -2000,14 +2000,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2048,7 +2048,7 @@
}
}
],
- "linkId": "EmCare.B23.DE64",
+ "linkId": "Ccc.B23.DE64",
"text": "No Anaemia",
"type": "choice",
"required": false,
@@ -2056,14 +2056,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2104,7 +2104,7 @@
}
}
],
- "linkId": "EmCare.B23.DE34",
+ "linkId": "Ccc.B23.DE34",
"text": "Eye Infection",
"type": "choice",
"required": false,
@@ -2112,14 +2112,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2160,7 +2160,7 @@
}
}
],
- "linkId": "EmCare.B23.DE35",
+ "linkId": "Ccc.B23.DE35",
"text": "Clouding of the Cornea",
"type": "choice",
"required": false,
@@ -2168,14 +2168,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2199,11 +2199,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE36').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE36').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B23.DE36_l",
+ "linkId": "Ccc.B23.DE36_l",
"text": "New or not previously treated",
"type": "display",
"required": false,
@@ -2225,11 +2225,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de36"
+ "expression": "Ccc.b23.de36"
}
}
],
- "linkId": "EmCare.B23.DE36",
+ "linkId": "Ccc.B23.DE36",
"text": "New or not previously treated",
"type": "boolean",
"required": false,
@@ -2269,7 +2269,7 @@
}
}
],
- "linkId": "EmCare.B23.DE41",
+ "linkId": "Ccc.B23.DE41",
"text": "Papular Urticaria or Papular Pruritic Eruptions",
"type": "choice",
"required": false,
@@ -2277,14 +2277,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2325,7 +2325,7 @@
}
}
],
- "linkId": "EmCare.B23.DE42",
+ "linkId": "Ccc.B23.DE42",
"text": "Ringworm (Tinea)",
"type": "choice",
"required": false,
@@ -2333,14 +2333,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2364,7 +2364,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE43a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE43a').answer.first().value = true"
}
}
],
@@ -2390,11 +2390,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de43a"
+ "expression": "Ccc.b23.de43a"
}
}
],
- "linkId": "EmCare.B23.DE43a",
+ "linkId": "Ccc.B23.DE43a",
"text": "Scalp Infection (tinea capitis)",
"type": "boolean",
"required": false,
@@ -2434,7 +2434,7 @@
}
}
],
- "linkId": "EmCare.B23.DE44",
+ "linkId": "Ccc.B23.DE44",
"text": "Scabies",
"type": "choice",
"required": false,
@@ -2442,14 +2442,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2490,7 +2490,7 @@
}
}
],
- "linkId": "EmCare.B23.DE45",
+ "linkId": "Ccc.B23.DE45",
"text": "Chickenpox",
"type": "choice",
"required": false,
@@ -2498,14 +2498,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2529,7 +2529,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE46A').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE46A').answer.first().value = true"
}
}
],
@@ -2556,7 +2556,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE46').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE46').answer.first().value=true"
}
}
],
@@ -2582,11 +2582,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de46a"
+ "expression": "Ccc.b23.de46a"
}
}
],
- "linkId": "EmCare.B23.DE46A",
+ "linkId": "Ccc.B23.DE46A",
"type": "boolean",
"required": false,
"repeats": false
@@ -2605,11 +2605,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de46"
+ "expression": "Ccc.b23.de46"
}
}
],
- "linkId": "EmCare.B23.DE46",
+ "linkId": "Ccc.B23.DE46",
"type": "boolean",
"required": false,
"repeats": false
@@ -2648,7 +2648,7 @@
}
}
],
- "linkId": "EmCare.B23.DE47",
+ "linkId": "Ccc.B23.DE47",
"text": "Herpes Zoster",
"type": "choice",
"required": false,
@@ -2656,14 +2656,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2684,11 +2684,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de48"
+ "expression": "Ccc.b23.de48"
}
}
],
- "linkId": "EmCare.B23.DE48",
+ "linkId": "Ccc.B23.DE48",
"type": "boolean",
"required": false,
"repeats": false
@@ -2710,7 +2710,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE48').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE48').answer.first().value = true"
}
}
],
@@ -2734,11 +2734,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de48a"
+ "expression": "Ccc.b23.de48a"
}
}
],
- "linkId": "EmCare.B23.DE48a",
+ "linkId": "Ccc.B23.DE48a",
"type": "boolean",
"required": false,
"repeats": false
@@ -2760,7 +2760,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE48a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE48a').answer.first().value = true"
}
}
],
@@ -2804,7 +2804,7 @@
}
}
],
- "linkId": "EmCare.B23.DE49",
+ "linkId": "Ccc.B23.DE49",
"text": "Impetigo",
"type": "choice",
"required": false,
@@ -2812,14 +2812,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -2843,7 +2843,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE50').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE50').answer.first().value=true"
}
}
],
@@ -2870,7 +2870,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE50a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE50a').answer.first().value = true"
}
}
],
@@ -2896,11 +2896,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de50"
+ "expression": "Ccc.b23.de50"
}
}
],
- "linkId": "EmCare.B23.DE50",
+ "linkId": "Ccc.B23.DE50",
"type": "boolean",
"required": false,
"repeats": false
@@ -2919,11 +2919,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de50a"
+ "expression": "Ccc.b23.de50a"
}
}
],
- "linkId": "EmCare.B23.DE50a",
+ "linkId": "Ccc.B23.DE50a",
"type": "boolean",
"required": false,
"repeats": false
@@ -2962,7 +2962,7 @@
}
}
],
- "linkId": "EmCare.B23.DE52",
+ "linkId": "Ccc.B23.DE52",
"text": "Molluscum Contagiosum",
"type": "choice",
"required": false,
@@ -2970,14 +2970,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3001,7 +3001,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE52a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE52a').answer.first().value = true"
}
}
],
@@ -3027,11 +3027,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de52a"
+ "expression": "Ccc.b23.de52a"
}
}
],
- "linkId": "EmCare.B23.DE52a",
+ "linkId": "Ccc.B23.DE52a",
"type": "boolean",
"required": false,
"repeats": false
@@ -3070,7 +3070,7 @@
}
}
],
- "linkId": "EmCare.B23.DE53",
+ "linkId": "Ccc.B23.DE53",
"text": "Warts",
"type": "choice",
"required": false,
@@ -3078,14 +3078,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3109,7 +3109,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE53a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE53a').answer.first().value = true"
}
}
],
@@ -3135,11 +3135,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de53a"
+ "expression": "Ccc.b23.de53a"
}
}
],
- "linkId": "EmCare.B23.DE53a",
+ "linkId": "Ccc.B23.DE53a",
"type": "boolean",
"required": false,
"repeats": false
@@ -3178,7 +3178,7 @@
}
}
],
- "linkId": "EmCare.B23.DE54",
+ "linkId": "Ccc.B23.DE54",
"text": "Seborrhoeic Dermatitis",
"type": "choice",
"required": false,
@@ -3186,14 +3186,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3217,7 +3217,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE55').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE55').answer.first().value = true"
}
}
],
@@ -3243,11 +3243,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de55"
+ "expression": "Ccc.b23.de55"
}
}
],
- "linkId": "EmCare.B23.DE55",
+ "linkId": "Ccc.B23.DE55",
"type": "boolean",
"required": false,
"repeats": false
@@ -3285,7 +3285,7 @@
}
}
],
- "linkId": "EmCare.B23.DE56",
+ "linkId": "Ccc.B23.DE56",
"text": "Fixed Drug Reaction",
"type": "choice",
"required": false,
@@ -3293,14 +3293,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3340,7 +3340,7 @@
}
}
],
- "linkId": "EmCare.B23.DE57",
+ "linkId": "Ccc.B23.DE57",
"text": "Eczema",
"type": "choice",
"required": false,
@@ -3348,14 +3348,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3379,7 +3379,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE57a').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE57a').answer.first().value = true"
}
}
],
@@ -3406,7 +3406,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE57b').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE57b').answer.first().value = true"
}
}
],
@@ -3433,7 +3433,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE57c').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE57c').answer.first().value = true"
}
}
],
@@ -3459,11 +3459,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de57a"
+ "expression": "Ccc.b23.de57a"
}
}
],
- "linkId": "EmCare.B23.DE57a",
+ "linkId": "Ccc.B23.DE57a",
"type": "boolean",
"required": false,
"repeats": false
@@ -3482,11 +3482,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de57b"
+ "expression": "Ccc.b23.de57b"
}
}
],
- "linkId": "EmCare.B23.DE57b",
+ "linkId": "Ccc.B23.DE57b",
"type": "boolean",
"required": false,
"repeats": false
@@ -3505,11 +3505,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de57c"
+ "expression": "Ccc.b23.de57c"
}
}
],
- "linkId": "EmCare.B23.DE57c",
+ "linkId": "Ccc.B23.DE57c",
"type": "boolean",
"required": false,
"repeats": false
@@ -3548,7 +3548,7 @@
}
}
],
- "linkId": "EmCare.B23.DE58",
+ "linkId": "Ccc.B23.DE58",
"text": "Steven Johnson Syndrome (SJS)",
"type": "choice",
"required": false,
@@ -3556,14 +3556,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3604,7 +3604,7 @@
}
}
],
- "linkId": "EmCare.B23.DE59",
+ "linkId": "Ccc.B23.DE59",
"text": "Mouth Sores or Ulcer",
"type": "choice",
"required": false,
@@ -3612,14 +3612,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3643,7 +3643,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B23.DE60').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B23.DE60').answer.first().value = true"
}
}
],
@@ -3669,11 +3669,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
"valueExpression": {
"language": "text/cql-identifier",
- "expression": "emcare.b23.de60"
+ "expression": "Ccc.b23.de60"
}
}
],
- "linkId": "EmCare.B23.DE60",
+ "linkId": "Ccc.B23.DE60",
"type": "boolean",
"required": false,
"repeats": false
@@ -3712,7 +3712,7 @@
}
}
],
- "linkId": "EmCare.B23.DE61",
+ "linkId": "Ccc.B23.DE61",
"text": "Oral Thrush",
"type": "choice",
"required": false,
@@ -3720,14 +3720,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3768,7 +3768,7 @@
}
}
],
- "linkId": "EmCare.B23.DE106",
+ "linkId": "Ccc.B23.DE106",
"text": "Very Low Weight for Age",
"type": "choice",
"required": false,
@@ -3776,14 +3776,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3824,7 +3824,7 @@
}
}
],
- "linkId": "EmCare.B23.DE107",
+ "linkId": "Ccc.B23.DE107",
"text": "Low Weight for Age",
"type": "choice",
"required": false,
@@ -3832,14 +3832,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3880,7 +3880,7 @@
}
}
],
- "linkId": "EmCare.B23.DE108",
+ "linkId": "Ccc.B23.DE108",
"text": "Low MUAC or visual report of wasting",
"type": "choice",
"required": false,
@@ -3888,14 +3888,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -3911,336 +3911,336 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE01",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE01",
"display": "Very Severe Disease"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE03",
"display": "Severe Pneumonia or Very Severe Disease"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE06",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE06",
"display": "Pneumonia"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE10",
"display": "Cough or Cold"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE13",
"display": "Severe Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE14",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE14",
"display": "Some Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE15",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE15",
"display": "No Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE16",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE16",
"display": "Severe Persistent Diarrhoea"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE17",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE17",
"display": "Persistent Diarrhoea"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE18",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE18",
"display": "Dysentery"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE18.a",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE18.a",
"display": "Possible Shigella"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE100",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE100",
"display": "Throat Abscess or Possible Diptheria"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE6101",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE6101",
"display": "Streptococcal Sore Throat"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE6102",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE6102",
"display": "Non-Streptococcal Sore Throat"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE6103",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE6103",
"display": "No Throat Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE30",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE30",
"display": "Mastoiditis"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE31",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE31",
"display": "Acute Ear Infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE32",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE32",
"display": "Chronic Ear Infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE33",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE33",
"display": "No Ear Infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE19",
"display": "Very Severe Febrile Disease"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE104",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE104",
"display": "Fever: possible bacterial infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE105",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE105",
"display": "Fever: bacterial infection unlikely"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE27",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE27",
"display": "Severe Complicated Measles"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE28",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE28",
"display": "Measles with Eye or Mouth Complication"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE29",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE29",
"display": "Possible Measles"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE62",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE62",
"display": "Severe Anaemia"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE63",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE63",
"display": "Anaemia"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE64",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE64",
"display": "No Anaemia"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE34",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE34",
"display": "Eye Infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE35",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE35",
"display": "Clouding of the Cornea"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE41",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE41",
"display": "Papular Urticaria or Papular Pruritic Eruptions"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE42",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE42",
"display": "Ringworm (Tinea)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE44",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE44",
"display": "Scabies"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE45",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE45",
"display": "Chickenpox"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE47",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE47",
"display": "Herpes Zoster"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE49",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE49",
"display": "Impetigo"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE52",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE52",
"display": "Molluscum Contagiosum"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE53",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE53",
"display": "Warts"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE54",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE54",
"display": "Seborrhoeic Dermatitis"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE56",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE56",
"display": "Fixed Drug Reaction"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE57",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE57",
"display": "Eczema"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE58",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE58",
"display": "Steven Johnson Syndrome (SJS)"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE59",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE59",
"display": "Mouth Sores or Ulcer"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE61",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE61",
"display": "Oral Thrush"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE106",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE106",
"display": "Very Low Weight for Age"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE107",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE107",
"display": "Low Weight for Age"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE108",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE108",
"display": "Low MUAC or visual report of wasting"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "collector",
"display": "Add other classifications"
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json b/input/resources/questionnaire/questionnaire-Ccc.b23.classification.m.json
similarity index 93%
rename from input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json
rename to input/resources/questionnaire/questionnaire-Ccc.b23.classification.m.json
index aa002a6f..00ae0ada 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b23.classification.m.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b23.classification.m.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b23.classification.m",
+ "id": "Ccc.b23.classification.m",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b23.classification.m"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb23classificationm"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb23classificationm"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b23.classification.m",
- "name": "EmCare.B23.Classification.m",
- "title": "EmCare.B23.Classification.m",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b23.classification.m",
+ "name": "Ccc.B23.Classification.m",
+ "title": "Ccc.B23.Classification.m",
"status": "active",
"experimental": false,
"subjectType": [
@@ -132,7 +132,7 @@
}
}
],
- "linkId": "EmCare.B23.DE83",
+ "linkId": "Ccc.B23.DE83",
"text": "Possible Serious Bacterial Infection OR Very Severe Disease",
"type": "choice",
"required": false,
@@ -140,14 +140,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -188,7 +188,7 @@
}
}
],
- "linkId": "EmCare.B23.DE06",
+ "linkId": "Ccc.B23.DE06",
"text": "Pneumonia",
"type": "choice",
"required": false,
@@ -196,14 +196,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -244,7 +244,7 @@
}
}
],
- "linkId": "EmCare.B23.DE85",
+ "linkId": "Ccc.B23.DE85",
"text": "Local Infection",
"type": "choice",
"required": false,
@@ -252,14 +252,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -299,7 +299,7 @@
}
}
],
- "linkId": "EmCare.B23.DE86",
+ "linkId": "Ccc.B23.DE86",
"text": "Infection Unlikely",
"type": "choice",
"required": false,
@@ -307,14 +307,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -354,7 +354,7 @@
}
}
],
- "linkId": "EmCare.B23.DE106",
+ "linkId": "Ccc.B23.DE106",
"text": "Very Low Weight for Age",
"type": "choice",
"required": false,
@@ -362,14 +362,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -410,7 +410,7 @@
}
}
],
- "linkId": "EmCare.B23.DE87",
+ "linkId": "Ccc.B23.DE87",
"text": "Severe Jaundice",
"type": "choice",
"required": false,
@@ -418,14 +418,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -465,7 +465,7 @@
}
}
],
- "linkId": "EmCare.B23.DE88",
+ "linkId": "Ccc.B23.DE88",
"text": "Jaundice",
"type": "choice",
"required": false,
@@ -473,14 +473,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -520,7 +520,7 @@
}
}
],
- "linkId": "EmCare.B23.DE89",
+ "linkId": "Ccc.B23.DE89",
"text": "No Jaundice",
"type": "choice",
"required": false,
@@ -528,14 +528,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -576,7 +576,7 @@
}
}
],
- "linkId": "EmCare.B23.DE13",
+ "linkId": "Ccc.B23.DE13",
"text": "Severe Dehydration",
"type": "choice",
"required": false,
@@ -584,14 +584,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -632,7 +632,7 @@
}
}
],
- "linkId": "EmCare.B23.DE14",
+ "linkId": "Ccc.B23.DE14",
"text": "Some Dehydration",
"type": "choice",
"required": false,
@@ -640,14 +640,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -688,7 +688,7 @@
}
}
],
- "linkId": "EmCare.B23.DE15",
+ "linkId": "Ccc.B23.DE15",
"text": "No Dehydration",
"type": "choice",
"required": false,
@@ -696,14 +696,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -813,7 +813,7 @@
}
}
],
- "linkId": "EmCare.B23.DE94",
+ "linkId": "Ccc.B23.DE94",
"text": "Feeding Problem and / or Low Weight for Age",
"type": "choice",
"required": false,
@@ -821,14 +821,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -856,7 +856,7 @@
}
}
],
- "linkId": "EmCare.B23.DE96",
+ "linkId": "Ccc.B23.DE96",
"text": "Low weight for age",
"type": "display",
"required": false,
@@ -883,7 +883,7 @@
}
}
],
- "linkId": "EmCare.B23.DE97",
+ "linkId": "Ccc.B23.DE97",
"text": "Oral thrush",
"type": "display",
"required": false,
@@ -910,7 +910,7 @@
}
}
],
- "linkId": "EmCare.B23.DE95",
+ "linkId": "Ccc.B23.DE95",
"text": "Feeding problem",
"type": "display",
"required": false,
@@ -949,7 +949,7 @@
}
}
],
- "linkId": "EmCare.B23.DE98",
+ "linkId": "Ccc.B23.DE98",
"text": "No Feeding Problem",
"type": "choice",
"required": false,
@@ -957,14 +957,14 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "agree",
"display": "Agree"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "disagree",
"display": "Disagree"
}
@@ -980,98 +980,98 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE83",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE83",
"display": "Possible Serious Bacterial Infection OR Very Severe Disease"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE06",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE06",
"display": "Pneumonia"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE85",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE85",
"display": "Local Infection"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE86",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE86",
"display": "Infection Unlikely"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE106",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE106",
"display": "Very Low Weight for Age"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE87",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE87",
"display": "Severe Jaundice"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE88",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE88",
"display": "Jaundice"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE89",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE89",
"display": "No Jaundice"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE13",
"display": "Severe Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE14",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE14",
"display": "Some Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE15",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE15",
"display": "No Dehydration"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE94",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE94",
"display": "Feeding Problem and / or Low Weight for Age"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B23.DE98",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B23.DE98",
"display": "No Feeding Problem"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
"code": "collector",
"display": "Add other classifications"
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json b/input/resources/questionnaire/questionnaire-Ccc.b6.measurements.json
similarity index 85%
rename from input/resources/questionnaire/questionnaire-emcare.b6.measurements.json
rename to input/resources/questionnaire/questionnaire-Ccc.b6.measurements.json
index f274cb34..06e400c5 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b6.measurements.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b6.measurements.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b6.measurements",
+ "id": "Ccc.b6.measurements",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b6.measurements"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b6.measurements"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb6measurements"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb6measurements"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b6.measurements",
- "name": "EmCare.B6.Measurements",
- "title": "EmCare.B6.Measurements",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b6.measurements",
+ "name": "Ccc.B6.Measurements",
+ "title": "Ccc.B6.Measurements",
"status": "active",
"experimental": false,
"subjectType": [
@@ -54,11 +54,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE04').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE04').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE01",
+ "linkId": "Ccc.B6.DE01",
"text": "Axillary Temperature (degrees Celcius)",
"type": "quantity",
"required": true,
@@ -78,7 +78,7 @@
}
}
],
- "linkId": "EmCare.B6.DE01-help",
+ "linkId": "Ccc.B6.DE01-help",
"text": "The client’s axillary temperature in degrees Celcius (temperature taken under the armpit)
\nWarning/error if above 45 and below 32 degrees Celcius.",
"type": "display"
}
@@ -103,18 +103,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE04",
+ "linkId": "Ccc.B6.DE04",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE04",
+ "code": "Ccc.B6.DE04",
"display": "Thermometer not available"
}
}
@@ -130,11 +130,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE04').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE04').answer.first().exists()"
}
}
],
- "linkId": "EmCare.B6.DE05",
+ "linkId": "Ccc.B6.DE05",
"text": "Hot to Touch",
"type": "boolean",
"required": true,
@@ -146,18 +146,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().exists()"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2,'High',iif(%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().value < 35.5 'Cel', 'Low',iif(%resource.repeat(item).where(linkId='EmCare.B6.DE01').answer.first().value.exists(), 'Normal',{}))))"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().value >= 38.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2, '2',iif(%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().value >= 38 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value< 2 or %resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().value >= 37.5 'Cel' and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 2,'High',iif(%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().value < 35.5 'Cel', 'Low',iif(%resource.repeat(item).where(linkId='Ccc.B6.DE01').answer.first().value.exists(), 'Normal',{}))))"
}
}
],
- "linkId": "EmCare.B6.DE01A",
+ "linkId": "Ccc.B6.DE01A",
"text": "Measured Temperature",
"type": "string",
"required": false,
@@ -178,7 +178,7 @@
}
}
],
- "linkId": "EmCare.B6.DE01A-help",
+ "linkId": "Ccc.B6.DE01A-help",
"text": "The client’s axillary temperature in degrees Celcius (temperature taken under the armpit)",
"type": "display"
}
@@ -197,11 +197,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE07').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE07').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE06",
+ "linkId": "Ccc.B6.DE06",
"text": "Weight (Kg)",
"type": "quantity",
"required": true,
@@ -226,18 +226,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE06').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE06').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE07",
+ "linkId": "Ccc.B6.DE07",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE07",
+ "code": "Ccc.B6.DE07",
"display": "Weight cannot be measured"
}
}
@@ -253,11 +253,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='EmCare.B6.DE07').answer.first().exists() and %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().exists(), %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().value, {})"
+ "expression": "iif(%resource.repeat(item).where(linkId='Ccc.B6.DE07').answer.first().exists() and %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().exists(), %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().value, {})"
}
}
],
- "linkId": "EmCare.B6.DE08",
+ "linkId": "Ccc.B6.DE08",
"text": "Estimated Weight",
"type": "quantity",
"required": false,
@@ -289,7 +289,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE08').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE08').answer.first().exists()"
}
},
{
@@ -353,7 +353,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='pastWeightActualised').answer.first().exists() and %resource.repeat(item).where(linkId='EmCare.B6.DE07').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='pastWeightActualised').answer.first().exists() and %resource.repeat(item).where(linkId='Ccc.B6.DE07').answer.first().exists()"
}
}
],
@@ -369,7 +369,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='pastWeightActualised').answer.first().empty() and %resource.repeat(item).where(linkId='EmCare.B6.DE07').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='pastWeightActualised').answer.first().empty() and %resource.repeat(item).where(linkId='Ccc.B6.DE07').answer.first().exists()"
}
}
],
@@ -398,7 +398,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE11').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().empty()) or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().exists()"
+ "expression": "(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE11').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().empty()) or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().exists()"
}
}
],
@@ -427,18 +427,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE10",
+ "linkId": "Ccc.B6.DE10",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE10",
+ "code": "Ccc.B6.DE10",
"display": "Prefer to measure length"
}
}
@@ -461,11 +461,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().exists(), %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().value-0.7 'cm',%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().value)"
+ "expression": "iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().exists(), %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().value-0.7 'cm',%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().value)"
}
}
],
- "linkId": "EmCare.B6.DE09",
+ "linkId": "Ccc.B6.DE09",
"text": "Height",
"type": "quantity",
"required": false,
@@ -490,18 +490,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().empty() and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().empty() and %resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE11",
+ "linkId": "Ccc.B6.DE11",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE11",
+ "code": "Ccc.B6.DE11",
"display": "Height cannot be measured"
}
}
@@ -520,7 +520,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE12a').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE13').answer.first().empty()"
+ "expression": "(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE12a').answer.first().empty() and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE13').answer.first().empty()"
}
}
],
@@ -547,11 +547,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().exists(), %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().value+0.7 'cm', %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().value)"
+ "expression": "iif(%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >= 24 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().exists(), %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Height Q').answer.first().value+0.7 'cm', %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().value)"
}
}
],
- "linkId": "EmCare.B6.DE12",
+ "linkId": "Ccc.B6.DE12",
"text": "Length",
"type": "quantity",
"required": false,
@@ -576,18 +576,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE13",
+ "linkId": "Ccc.B6.DE13",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE13",
+ "code": "Ccc.B6.DE13",
"display": "Length cannot be measured"
}
}
@@ -612,18 +612,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE10').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Length Q').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value<24 or %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().exists()) and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE10').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE12a",
+ "linkId": "Ccc.B6.DE12a",
"type": "choice",
"required": false,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE12a",
+ "code": "Ccc.B6.DE12a",
"display": "Prefer to measure height"
}
}
@@ -639,11 +639,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B6.DE06').answer.first().exists()"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B6.DE06').answer.first().exists()"
}
}
],
- "linkId": "EmCare.B6.DE16",
+ "linkId": "Ccc.B6.DE16",
"text": "Weight for Age (WFA) Z Scores",
"type": "integer",
"required": false,
@@ -662,11 +662,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=6 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE17a').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=6 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE17a').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE17",
+ "linkId": "Ccc.B6.DE17",
"text": "MUAC (mm)",
"type": "quantity",
"required": true,
@@ -686,7 +686,7 @@
}
}
],
- "linkId": "EmCare.B6.DE17-help",
+ "linkId": "Ccc.B6.DE17-help",
"text": "Mid Upper Arm Circumference",
"type": "display"
}
@@ -711,18 +711,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=6 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE17').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=6 and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE17').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B6.DE17a",
+ "linkId": "Ccc.B6.DE17a",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B6.DE17a",
+ "code": "Ccc.B6.DE17a",
"display": "MUAC cannot be measured"
}
}
@@ -747,11 +747,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=2 and %resource.repeat(item).where(linkId='EmCare.B6.DE07').answer.first().value =true and %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 6 'months' or (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >=6 'months' and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='EmCare.B6.DE17').answer.first().empty()))"
+ "expression": "%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value>=2 and %resource.repeat(item).where(linkId='Ccc.B6.DE07').answer.first().value =true and %resource.repeat(item).where(linkId='pastWeightActualised').answer.first().empty() and (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value < 6 'months' or (%resource.repeat(item).where(linkId='AgeInMonths').answer.first().value >=6 'months' and %resource.repeat(item).where(linkId='HeightOrLength').repeat(item).where(linkId='Ccc.B6.DE17').answer.first().empty()))"
}
}
],
- "linkId": "EmCare.B6.DE18",
+ "linkId": "Ccc.B6.DE18",
"text": "Visually assess for whether underweight (for drug dose calculation)",
"type": "choice",
"required": false,
@@ -759,22 +759,22 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B6.DE19",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B6.DE19",
"display": "Does not appear to be Underweight"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B6.DE20",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B6.DE20",
"display": "Appears to be Underweight"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B6.DE21",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B6.DE21",
"display": "Appears to be Severely Underweight"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json b/input/resources/questionnaire/questionnaire-Ccc.b7.lti-dangersigns.json
similarity index 86%
rename from input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json
rename to input/resources/questionnaire/questionnaire-Ccc.b7.lti-dangersigns.json
index 4e757342..38c36c35 100644
--- a/input/resources/questionnaire/questionnaire-emcare.b7.lti-dangersigns.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.b7.lti-dangersigns.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.b7.lti-dangersigns",
+ "id": "Ccc.b7.lti-dangersigns",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.b7.lti-dangersigns"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcareb7ltidangersigns"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Cccb7ltidangersigns"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.b7.lti-dangersigns",
- "name": "EmCare.B7.LTI-DangerSigns",
- "title": "EmCare.B7.LTI-DangerSigns",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.b7.lti-dangersigns",
+ "name": "Ccc.B7.LTI-DangerSigns",
+ "title": "Ccc.B7.LTI-DangerSigns",
"status": "active",
"experimental": false,
"subjectType": [
@@ -67,7 +67,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B7.DE02",
+ "linkId": "Ccc.B7.DE02",
"text": "Convulsing Now",
"type": "boolean",
"required": true,
@@ -100,7 +100,7 @@
}
}
],
- "linkId": "EmCare.B7.DE02-help",
+ "linkId": "Ccc.B7.DE02-help",
"text": "During a convulsion, the child\u2019s arms and legs stiffen because the muscles are contracting. The child may lose consciousness or not be able to respond to spoken directions.",
"type": "display"
}
@@ -112,11 +112,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B7.DE02').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B7.DE02').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B7-B8-B9.DE01",
+ "linkId": "Ccc.B7-B8-B9.DE01",
"text": "Continue to Assess Sick Child",
"type": "choice",
"required": true,
@@ -124,15 +124,15 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B7-B8-B9.DE03",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B7-B8-B9.DE03",
"display": "End consultation"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B7-B8-B9.DE02",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B7-B8-B9.DE02",
"display": "Stabilised, continue consultation"
}
}
@@ -144,7 +144,7 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B7.DE02').answer.first().value = false or %resource.repeat(item).where(linkId='EmCare.B7-B8-B9.DE01').answer.first().value.code = 'EmCare.B7-B8-B9.DE02'"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B7.DE02').answer.first().value = false or %resource.repeat(item).where(linkId='Ccc.B7-B8-B9.DE01').answer.first().value.code = 'Ccc.B7-B8-B9.DE02'"
}
}
],
@@ -163,11 +163,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='EmCare.B7.DE02').answer.first().value = false and AgeInMonth.cql >=2"
+ "expression": "%resource.repeat(item).where(linkId='Ccc.B7.DE02').answer.first().value = false and AgeInMonth.cql >=2"
}
}
],
- "linkId": "EmCare.B7.DE03",
+ "linkId": "Ccc.B7.DE03",
"text": "Convulsion(s) in this Illness",
"type": "boolean",
"required": true,
@@ -187,7 +187,7 @@
}
}
],
- "linkId": "EmCare.B7.DE03-help",
+ "linkId": "Ccc.B7.DE03-help",
"text": "During a convulsion, the child\u2019s arms and legs stiffen because the muscles are contracting. The child may lose consciousness or not be able to respond to spoken directions. Use words the caregiver understands. For example, the caregiver may call convulsions \u201cfits\u201d or \u201cspasms.\u201d",
"type": "display"
}
@@ -200,7 +200,7 @@
"valueCode": "horizontal"
}
],
- "linkId": "EmCare.B7.DE08b",
+ "linkId": "Ccc.B7.DE08b",
"text": "Unconscious or Lethargic",
"type": "boolean",
"required": true,
@@ -220,7 +220,7 @@
}
}
],
- "linkId": "EmCare.B7.DE08b-help",
+ "linkId": "Ccc.B7.DE08b-help",
"text": "A lethargic child is not awake and alert when she should be. The child is drowsy and does not show interest in what is happening around her.
Often the lethargic child does not look at his caregiver or watch your face when you talk, or will not respond if you clap or snap your fingers. The child may stare blankly and appear not to notice what is going on around him.
\n\n\tAn unconscious child cannot be wakened. He does not respond when he is touched, shaken, or spoken to. Ask the caregiver if the child seems unusually sleepy or if she cannot wake the child. Look to see if the child wakens when the caregiver talks or shakes the child or when you clap your hands.", "type": "display" } @@ -236,11 +236,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE08b').answer.first().value = true" + "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE08b').answer.first().value = true" } } ], - "linkId": "EmCare.B7.DE08", + "linkId": "Ccc.B7.DE08", "text": "Unconscious", "type": "boolean", "required": true, @@ -260,7 +260,7 @@ } } ], - "linkId": "EmCare.B7.DE08-help", + "linkId": "Ccc.B7.DE08-help", "text": "An unconscious child cannot be wakened. He does not respond when he is touched, shaken, or spoken to. Ask the caregiver if the child seems unusually sleepy or if she cannot wake the child. Look to see if the child wakens when the caregiver talks or shakes the child or when you clap your hands.", "type": "display" } @@ -276,11 +276,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE08b').answer.first().value = true" + "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE08b').answer.first().value = true" } } ], - "linkId": "EmCare.B7.DE08a", + "linkId": "Ccc.B7.DE08a", "text": "Lethargic", "type": "boolean", "required": true, @@ -300,7 +300,7 @@ } } ], - "linkId": "EmCare.B7.DE08a-help", + "linkId": "Ccc.B7.DE08a-help", "text": "A lethargic child is not awake and alert when she should be. The child is drowsy and does not show interest in what is happening around her.
\n\n\tOften the lethargic child does not look at his caregiver or watch your face when you talk, or will not respond if you clap or snap your fingers. The child may stare blankly and appear not to notice what is going on around him. An unconscious child cannot be wakened. He does not respond when he is touched, shaken, or spoken to. Ask the caregiver if the child seems unusually sleepy or if she cannot wake the child. Look to see if the child wakens when the caregiver talks or shakes the child or when you clap your hands.", "type": "display" } @@ -313,7 +313,7 @@ "valueCode": "horizontal" } ], - "linkId": "EmCare.B7.DE09", + "linkId": "Ccc.B7.DE09", "text": "Not able to drink or breastfeed", "type": "boolean", "required": true, @@ -333,7 +333,7 @@ } } ], - "linkId": "EmCare.B7.DE09-help", + "linkId": "Ccc.B7.DE09-help", "text": "A child has the sign not able to drink or breastfeed if the child is not able to suck or swallow when offered a drink or breast milk.
\n\n\tWhen you ask the caregiver if the child is able to drink, make sure that she understands the question. If she says that her child is not able to drink or breastfeed, ask her to describe what happens when she offers the child something to drink. For example, is the child able to take fluid into his mouth and swallow it?
\nIf you are not sure about the caregiver\u2019s answer, ask her to offer the child a drink of clean water or breast milk. Look to see if the child is swallowing the water or breast milk.
A child who is breastfed may have difficulty sucking when his nose is blocked. If the child\u2019s nose is blocked, clear it. If the child can breastfeed after the nose is cleared, the child does not have the danger sign, \u201cnot able to drink or breastfeed.\u201d", "type": "display" } @@ -346,7 +346,7 @@ "valueCode": "horizontal" } ], - "linkId": "EmCare.B7.DE10", + "linkId": "Ccc.B7.DE10", "text": "Vomiting Everything", "type": "boolean", "required": true, @@ -366,7 +366,7 @@ } } ], - "linkId": "EmCare.B7.DE10-help", + "linkId": "Ccc.B7.DE10-help", "text": "A child who is not able to hold anything down at all has the sign \u201cvomits everything\u201d \u2013 everything that goes down comes back up. A child who vomits everything will not be able to hold down food, fluids, or oral drugs. A child who vomits several times but can hold down some fluids does not have this general danger sign. When you ask the question, use words that the caregiver understands. Give her time to answer. If the caregiver is not sure if the child is vomiting everything, help her to make her answer clear. For example, ask the caregiver how often the child vomits. Also ask if each time the child swallows food or fluids, does the child vomit? If you are not sure of the caregiver\u2019s answers, ask her to offer the child a drink. See if the child vomits.", "type": "display" } @@ -376,17 +376,17 @@ "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire", - "valueCanonical": "https://smart.who.int/ccc/Questionnaire/emcare.b22.fluidtest" + "valueCanonical": "https://smart.who.int/ccc/Questionnaire/Ccc.b22.fluidtest" }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value=true" } } ], - "linkId": "EmCare.B22.FluidTest", + "linkId": "Ccc.B22.FluidTest", "type": "group", "required": false, "repeats": false, @@ -397,11 +397,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )" + "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().empty() and ( %resource.repeat(item).where(linkId='oftrp').answer.empty() or %resource.repeat(item).where(linkId='oftrp').answer.first().value=true )" } } ], - "linkId": "EmCare.B22.DE08", + "linkId": "Ccc.B22.DE08", "text": "Oral Fluid Test Results", "type": "choice", "required": true, @@ -409,36 +409,36 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE09", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE09", "display": "Completely Unable to Drink" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE10", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE10", "display": "Vomits Immediately / Everything" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE11", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE11", "display": "Drinks Poorly" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE12", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE12", "display": "Drinks Eagerly / Thirstily" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.B22.DE13", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.B22.DE13", "display": "Drinks Normally" } } @@ -458,7 +458,7 @@ } } ], - "linkId": "EmCare.B22.DE08-help", + "linkId": "Ccc.B22.DE08-help", "text": "If a child is unconscious do not try to carry out an oral fluid test (Exact wording TBC) – Pop Up
\n\n\tIf a breastfeeding assessment and an Oral Fluid test is recommended for a child that is only breastfed then a pop up is required to ensure that the health care worker observes the signs for both and provides results for both tests.
\n\n\tOral Fluid Test
\nIf it is not possible to perform an oral fluid test, the health care worker should assume that the child is vomiting everything
\nFor a child under 6 months the health care worker can offer for the mother to breastfeed instead of receiving fluids
Caution: Do not force fluids into an unconscious child , it can be dangerous. The fluid can cause them to choke or the fluid can go into their lungs.
\n\n\tPop up box to be made available with instructions on how to carry out an oral fluid test.
\nAdditional information TBC",
"type": "display"
}
@@ -483,18 +483,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.first().empty()"
+ "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.first().empty()"
}
}
],
- "linkId": "EmCare.B22.DE14",
+ "linkId": "Ccc.B22.DE14",
"type": "choice",
"required": true,
"repeats": true,
"answerOption": [
{
"valueCoding": {
- "code": "EmCare.B22.DE14",
+ "code": "Ccc.B22.DE14",
"display": "Unable to Perform Oral Fluid Test"
}
}
@@ -514,18 +514,18 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = true"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE09').exists() or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE08').answer.where(value.code='EmCare.B22.DE10').exists() )"
+ "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().exists() and (%resource.repeat(item).where(linkId='DS').answer.first().value = true or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE09').exists() or %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE08').answer.where(value.code='Ccc.B22.DE10').exists() )"
}
}
],
- "linkId": "EmCare.B22.DE14a",
+ "linkId": "Ccc.B22.DE14a",
"text": "Completely Unable to Drink or Vomits Immediately / Everything",
"type": "boolean",
"required": false,
@@ -541,11 +541,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B7.DE10').answer.first().value = false"
+ "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE14').answer.first().value = true and %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE09').answer.first().value= false and %resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B7.DE10').answer.first().value = false"
}
}
],
- "linkId": "EmCare.B22.DE15",
+ "linkId": "Ccc.B22.DE15",
"text": "Has the Child had anything to drink today?",
"type": "boolean",
"required": false,
@@ -557,11 +557,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='EmCare.B22.FluidTest').repeat(item).where(linkId='EmCare.B22.DE15').answer.first().value = true"
+ "expression": "%resource.repeat(item).where(linkId='stable-child').repeat(item).where(linkId='Ccc.B22.FluidTest').repeat(item).where(linkId='Ccc.B22.DE15').answer.first().value = true"
}
}
],
- "linkId": "EmCare.B22.DE16",
+ "linkId": "Ccc.B22.DE16",
"text": "How did the child last drink",
"type": "choice",
"required": false,
@@ -569,36 +569,36 @@
"answerOption": [
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE09",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE09",
"display": "Completely Unable to Drink"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE10",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE10",
"display": "Vomits Immediately / Everything"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE11",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE11",
"display": "Drinks Poorly"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE12",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE12",
"display": "Drinks Eagerly / Thirstily"
}
},
{
"valueCoding": {
- "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes",
- "code": "EmCare.B22.DE13",
+ "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes",
+ "code": "Ccc.B22.DE13",
"display": "Drinks Normally"
}
}
diff --git a/input/resources/questionnaire/questionnaire-emcare.treatment.json b/input/resources/questionnaire/questionnaire-Ccc.treatment.json
similarity index 88%
rename from input/resources/questionnaire/questionnaire-emcare.treatment.json
rename to input/resources/questionnaire/questionnaire-Ccc.treatment.json
index 7b683f6c..0a6f5505 100644
--- a/input/resources/questionnaire/questionnaire-emcare.treatment.json
+++ b/input/resources/questionnaire/questionnaire-Ccc.treatment.json
@@ -1,6 +1,6 @@
{
"resourceType": "Questionnaire",
- "id": "emcare.treatment",
+ "id": "Ccc.treatment",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"
@@ -25,16 +25,16 @@
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap",
- "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcare.treatment"
+ "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccc.treatment"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/cqf-library",
- "valueCanonical": "https://smart.who.int/ccc/Library/emcaretreatment"
+ "valueCanonical": "https://smart.who.int/ccc/Library/Ccctreatment"
}
],
- "url": "https://smart.who.int/ccc/Questionnaire/emcare.treatment",
- "name": "EmCare.Treatment",
- "title": "EmCare.Treatment",
+ "url": "https://smart.who.int/ccc/Questionnaire/Ccc.treatment",
+ "name": "Ccc.Treatment",
+ "title": "Ccc.Treatment",
"status": "active",
"experimental": false,
"subjectType": [
@@ -81,11 +81,11 @@
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
"valueExpression": {
"language": "text/fhirpath",
- "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE01').answer.first().value=true"
+ "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE01').answer.first().value=true"
}
}
],
- "linkId": "EmCare.C10.IT.DE01",
+ "linkId": "Ccc.C10.IT.DE01",
"text": "
\u27a2 Give one dose of rectal diazepam if convulsing now, repeat after 10 minutes if convulsion has not stopped
\n\n\t\u27a2 Give any pre-referral treatment immediately
\n\n\t\u27a2 Treat to prevent low blood sugar
\n\n\t\u27a2 Keep the child warm
\n\n\t\u27a2 Refer URGENTLY to hospital*.
\n\n\t*Exception: If lethargy is the only sign and child is dehydrated, rehydrated and assess.
", "type": "display", "required": false, @@ -97,11 +97,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE02').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE02').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE02", + "linkId": "Ccc.C10.IT.DE02", "text": "\u27a2 Give first dose of intramuscular Cefotaxime
\n\n\t\u27a2If wheezing present, give one dose of rapid acting bronchodilator* pre-referral
\n\n\t\u27a2Treat the child to prevent low blood sugar
\n\n\t\u27a2Refer URGENTLY to hospital
\n\n\t*Nebulized salbutamol, salbutamol inhaler with spacer, or subcutaneous epinephrine (adrenaline)
", "type": "display", "required": false, @@ -113,11 +113,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE03').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE03').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE03", + "linkId": "Ccc.C10.IT.DE03", "text": "\u27a2**Give oral Amoxicillin twice daily for 5 days**
\n\n\t\u27a2If wheezing (or disappeared after inhaled salbutamol) give inhaled or oral salbutamol three times a day for 5 days*
\n\n\t\u27a2Soothe the throat and relieve the cough with a safe remedy.
\n\n\t\u27a2If coughing for \u226514 days or recurrent wheeze, refer for possible TB or asthma assessment
\n\n\t\u27a2Advise mother when to return immediately
\n\n\t\u27a2Follow-up in 3 days
\n\n\t\u27a2Give oral Zinc once daily for 10-14 days.
\n\n\t*If inhaled bronchodilator is not available, oral salbutamol may be tried but not recommended for treatment of severe acute wheeze.
", "type": "display", "required": false, @@ -129,11 +129,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE04').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE04').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE04", + "linkId": "Ccc.C10.IT.DE04", "text": "\u27a2If wheezing (or disappeared after inhaled salbutamol) give inhaled or oral salbutamol three times a day for 5 days**
\n\n\t\u27a2Soothe the throat and relieve the cough with a safe remedy.
\n\n\t\u27a2If coughing for \u226514 days or recurrent wheeze, refer for possible TB or asthma assessment
\n\n\t\u27a2Advise mother when to return immediately
\n\n\t\u27a2Follow-up in 5 days if not improving
", "type": "display", "required": false, @@ -145,11 +145,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE05').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE05').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE05", + "linkId": "Ccc.C10.IT.DE05", "text": "\u27a2 If child has no other severe classification:* Give fluid for severe dehydration (plan C) OR
\n\n\t\u27a2 If child also has another severe classification:
\n\n * Refer URGENTLY to hospital with mother giving frequent sips of ORS on the way.\n * Advise the mother to continue breastfeeding.\n\n\t\u27a2If child is 2 years or older and there is cholera in your area, give oral co-trimoxazole twice daily for 3 days or oral erythromycin 4 times a day for 3 days for cholera.
", "type": "display", "required": false, @@ -161,11 +161,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE06').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE06').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE06", + "linkId": "Ccc.C10.IT.DE06", "text": "\u27a2Give Plan B for some dehydration:
\n\n\t\u27a2 If child also has another severe classification:
\n\n\t\u27a2Advise mother when to return immediately.
\n\n\t\u27a2Follow-up in 5 days if not improving.
", "type": "display", "required": false, @@ -177,11 +177,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE07').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE07').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE07", + "linkId": "Ccc.C10.IT.DE07", "text": "\u27a2Give Plan A for no dehydration:
\n\n\t\u27a2 If child also has another severe classification:
\n\n\t\u27a2Advise mother when to return immediately.
\n\n\t\u27a2Follow-up in 5 days if not improving.
", "type": "display", "required": false, @@ -193,11 +193,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE08').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE08').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE08", + "linkId": "Ccc.C10.IT.DE08", "text": "\u27a2Treat dehydration before referral unless the child has another severe classification.
\n\n\t\u27a2Refer to hospital.
", "type": "display", "required": false, @@ -209,11 +209,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE09').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE09').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE09", + "linkId": "Ccc.C10.IT.DE09", "text": "\u27a2Advise the mother on feeding a child who has persistent diarrhoea.
\n\n\t\u27a2Give multivitamins and minerals (including zinc once daily) for 14 days.
\n\n\t\u27a2Follow-up in 5 days.
", "type": "display", "required": false, @@ -225,11 +225,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE10').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE10').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE10", + "linkId": "Ccc.C10.IT.DE10", "text": "\u27a2Treat dehydration before referral unless the child has another severe classification.
\n\n\t\u27a2Refer to hospital.
", "type": "display", "required": false, @@ -241,11 +241,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE11').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE11').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE11", + "linkId": "Ccc.C10.IT.DE11", "text": "\u27a2Give Oral Metronidazole three times daily for 10 days.
\n\n\t\u27a2Treat dehydration if present.
\n\n\t\u27a2Follow-up in 3 days.
", "type": "display", "required": false, @@ -257,11 +257,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE12').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE12').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE12", + "linkId": "Ccc.C10.IT.DE12", "text": "\u27a2 Give first dose of intramuscular Procaine Penicillin pre-referral; if unavailable or allergic to penicillin give first dose of oral Erythromycin pre-referral.
\n\n\t\u27a2 Give one dose of oral Paracetamol for pain or high fever (38.5\u00b0C or above).
\n\n\t\u27a2 REFER URGENTLY to hospital.
", "type": "display", "required": false, @@ -273,11 +273,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE13').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE13').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE13", + "linkId": "Ccc.C10.IT.DE13", "text": "\u27a2 Give single dose of intramuscular benzathine penicillin, or if unavailable give oral amoxicillin twice daily for 10 days; if allergic to penicillin give oral erythromycin 4 times daily for 10 days
\n\n\t\u27a2 **Give oral paracetamol for pain or high fever (38.5\u00b0C or above), continue to give every 6 hours (4 times / day) until pain and/or high fever gone. **
\n\n\t\u27a2 Soothe the throat with a safe remedy.
\n\n\t\u27a2 Follow-up in 5 days if not improving.
\n\n\t\u27a2 Advise the mother when to return immediately
", "type": "display", "required": false, @@ -289,11 +289,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE14').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE14').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE14", + "linkId": "Ccc.C10.IT.DE14", "text": "h1.Non-Streptococcal Sore Throat\n\n\t\u27a2 Give oral paracetamol for pain or high fever (38.5\u00b0C or above), continue to give every 6 hours (4 times / day) until pain/high fever gone.
\n\n\t\u27a2 Soothe the throat with a safe remedy.
\n\n\t\u27a2 Follow-up in 5 days if not improving.
\n\n\t\u27a2 Advise the mother when to return immediately", "type": "display", "required": false, @@ -305,11 +305,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE15').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE15').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE15", + "linkId": "Ccc.C10.IT.DE15", "text": "
\u27a2 Give oral paracetamol for pain or high fever (38.5\u00b0C or above), continue to give every 6 hours (4 times / day) until pain /high fever gone.
\n\n\t\u27a2 Advise the mother when to return immediately
", "type": "display", "required": false, @@ -321,11 +321,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE16').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE16').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE16", + "linkId": "Ccc.C10.IT.DE16", "text": "\u27a2 Give first dose of intramuscular Cefotaxime
\n\n\t\u27a2 Give one dose of oral Paracetamol for pain or high fever (38.5\u00b0C or above).
\n\n\t\u27a2 Refer URGENTLY to hospital
", "type": "display", "required": false, @@ -337,11 +337,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE17').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE17').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE17", + "linkId": "Ccc.C10.IT.DE17", "text": "\u27a2 Give an appropriate oral antibiotic:
\n\n\t\u00a0\u00a0\u00a0\u00a0 * First-line: Oral Amoxicillin twice daily for 10 days\n\u00a0\u00a0\u00a0\u00a0 * Second-line: Oral Co-trimoxazole twice daily for 10 days\n\u00a0\u00a0\u00a0\u00a0 * If allergic to amoxicillin and co-trimoxazole, give Oral Erythromycin 4 times daily for 10 days
\n\n\t\u27a2 Give oral paracetamol for pain or high fever (38.5\u00b0C or above), continue to give every 6 hours (4 times / day) until pain/high fever gone.
\n\n\t\u27a2 If ear discharge: Dry the ear by wicking at least 3 times daily
\n\n\t\u27a2 Advise the mother when to return immediately.
\n\n\t\u27a2 Follow-up in 5 days
", "type": "display", "required": false, @@ -353,11 +353,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE18').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE18').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE18", + "linkId": "Ccc.C10.IT.DE18", "text": "\u27a2 Dry the ear by wicking
\n\n\t\u27a2 Refer to ENT specialist.
\n\n\t\u27a2 If ear pain or fever, give an appropriate oral antibiotic:
\n\n\t\u27a2**Give one dose of oral Paracetamol in clinic for pain or high fever (38.5\u00b0C or above),** continue to give every 6 hours (4 times / day) until pain/high fever gone.
", "type": "display", "required": false, @@ -369,11 +369,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE19').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE19').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE19", + "linkId": "Ccc.C10.IT.DE19", "text": "\u27a2No treatment
\n\n\t\u27a2Refer to ENT specialist.
", "type": "display", "required": false, @@ -385,11 +385,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE20').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE20').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE20", + "linkId": "Ccc.C10.IT.DE20", "text": "\u27a2 Give first dose of intramuscular Cefotaxime
\n\n\t\u27a2 Treat the child to prevent low blood sugar
\n\n\t\u27a2 Give one dose of oral Paracetamol for high fever (38.5\u00b0C or above).
\n\n\t\u27a2 Refer URGENTLY to hospital
", "type": "display", "required": false, @@ -401,11 +401,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE21').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE21').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE21", + "linkId": "Ccc.C10.IT.DE21", "text": "\u27a2 Treat apparent cause of fever.
\n\n\t\u27a2 Give one dose of oral Paracetamol in clinic for high fever (38.5\u00b0C or above). continue to give every 6 hours (4 times / day) until high fever gone.
\n\n\t\u27a2 Follow up in 3 days if fever persists
\n\n\t\u27a2 Advise the mother when to return immediately
\n\n\t\u27a2 If fever present every day for more than 7 days, refer for assessment
", "type": "display", "required": false, @@ -417,11 +417,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE22').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE22').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE22", + "linkId": "Ccc.C10.IT.DE22", "text": "\u27a2 Give one dose of oral Paracetamol in clinic for high fever (38.5\u00b0C or above). continue to give every 6 hours (4 times / day) until high fever gone.
\n\n\t\u27a2 Follow up in 3 days if fever persists
\n\n\t\u27a2 Advise the mother when to return immediately
\n\n\t\u27a2 If fever present every day for more than 7 days, refer for assessment
", "type": "display", "required": false, @@ -433,11 +433,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE23').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE23').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE23", + "linkId": "Ccc.C10.IT.DE23", "text": "\u27a2 Give first dose of oral Vitamin A if the child has not had a dose within the past month and is not on RUTF
\n\n\t\u27a2 Give first dose of Intramuscular Cefotaxime
\n\n\t\u27a2 Give one dose of oral Paracetamol for high fever (38.5\u00b0C or above).
\n\n\t\u27a2 If clouding of the of cornea or pus draining from the eye, apply Tetracycline eye ointment 4 times daily until there is no pus discharge
\n\n\t\u27a2 Treat to prevent low blood sugar.
\n\n\t\u27a2 Refer URGENTLY to hospital.
", "type": "display", "required": false, @@ -449,11 +449,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE24').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE24').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE24", + "linkId": "Ccc.C10.IT.DE24", "text": "\u27a2 Give oral Vitamin A if the child has not had a dose within the past month and is not on RUTF – first dose in clinic and one dose to give at home the next day
\n\n\t\u27a2 If pus draining from the eye, apply Tetracycline eye ointment 4 times daily until there is no pus discharge
\n\n\t\u27a2 If mouth ulcers, treat twice daily with gentian violet until 48 hrs after the ulcers have been cured
\n\n\t\u27a2 **Give one dose of oral Paracetamol in clinic for pain or high fever (38.5\u00b0C or above), continue to give every 6 hours (4 times / day) until pain/high fever gone.
\n\n\t\u27a2 Follow up in 3 days
\n\n\t\u27a2 Advise mother when to return immediately
", "type": "display", "required": false, @@ -465,11 +465,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE25').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE25').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE25", + "linkId": "Ccc.C10.IT.DE25", "text": "\u27a2 Send for blood sample
\n\n\t\u27a2 Give oral Vitamin A if the child has not had a dose within the past month and is not on RUTF – first dose in clinic and one dose to give at home the next day
\n\n\t\u27a2 Advise mother when to return immediately.
", "type": "display", "required": false, @@ -481,11 +481,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE42').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE42').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE42", + "linkId": "Ccc.C10.IT.DE42", "text": "\u27a2Treat to prevent low blood sugar
\n\n\t\u27a2Refer URGENTLY to hospital.
", "type": "display", "required": false, @@ -497,11 +497,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE43').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE43').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE43", + "linkId": "Ccc.C10.IT.DE43", "text": "\u27a2Give oral Iron* once daily for 14 days
\n\n\t\u27a2Assess the child`s feeding and counsel the mother on feeding according to the FOOD box or the COUNSEL THE MOTHER chart.
\n\n\t\u27a2Advise mother when to return immediately
\n\n\t\u27a2If feeding problem, follow-up in 5 days.
\n\n\t\u27a2Follow -up in 14 days & do Hb;
\n\n\t\u27a2If no improvement or rise in Hb refer.
\n\n\t*Except if the child has sickle cell aneamia or thalassaemia or family history of any hemolytic disease e.g., G6PD which need urgent treatment.\n\t\t
\u27a2Counsel the mother on feeding.
", "type": "display", "required": false, @@ -529,11 +529,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE26').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE26').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE26", + "linkId": "Ccc.C10.IT.DE26", "text": "\u27a2 If pus draining from the eye, apply Tetracycline eye ointment 4 times daily until there is no pus discharge
", "type": "display", "required": false, @@ -545,11 +545,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE27').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE27').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE27", + "linkId": "Ccc.C10.IT.DE27", "text": "\u27a2If clouding of the cornea is new or not previously treated, REFER
", "type": "display", "required": false, @@ -561,11 +561,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE28').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE28').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE28", + "linkId": "Ccc.C10.IT.DE28", "text": "\u27a2Trim finger nails and avoid scratching.
\n\n\t\u27a2Refer if no improvement after 2 weeks or if underlying malignancy or systemic disease is suspected.
", "type": "display", "required": false, @@ -577,11 +577,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE29').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE29').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE29", + "linkId": "Ccc.C10.IT.DE29", "text": "\u27a2Avoid sharing clothes, towels and toiletries (e.g. brushes and combs) to prevent spreading the infection to others.
\n\n\t\u27a2All close contacts should be treated simultaneously (even if not itchy).
\n\n\t\u27a2Treat contacts over 6 years of age with Benzyl Benzoate:
\n\n\t\u27a2Limit contact with other children and pregnant women until all lesions have crusted.
\n\n\t\u27a2Refer urgently if severe rash or complications (e.g. pneumonia, jaundice, meningitis, myocarditis, hepatitis).
", "type": "display", "required": false, @@ -625,11 +625,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE32').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE32').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE32", + "linkId": "Ccc.C10.IT.DE32", "text": "\u27a2Keep lesions clean and dry.\n\t
\u27a2Good personal and household hygiene to avoid spread of infection.
\n\n\t\u27a2Wash and soak sores in soapy water to soften and remove crusts.
\n\n\t\u27a2Apply antiseptic 8 hourly: Povidone iodine 5% cream or 10% ointment.
\n\n\t\u27a2Drain pus if fluctuant.
\n\n\t\u27a2Give antibiotic if extensive lesions: Cephalexin, oral, 12-25mg/kg/dose 6 hourly for 5 days
\n\n\t\u27a2Refer urgently if child has fever and or if infection extends to the muscles.
", "type": "display", "required": false, @@ -657,11 +657,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE34').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE34').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE34", + "linkId": "Ccc.C10.IT.DE34", "text": "\u27a2Allow to heal spontaneously if few in number.\n\t
\u00a0\u00a0 – No response to treatment
\n\n\t\u00a0\u00a0 – Lesions close to the eye (to an ophthalmologist).
", "type": "display", "required": false, @@ -673,11 +673,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE35').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE35').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE35", + "linkId": "Ccc.C10.IT.DE35", "text": "\u27a2May be left alone to wait for improvement
\n\n\t\u27a2Apply salicylic acid 15-20% to the warts\n\t\t
\u27a2Refer if extensive
", "type": "display", "required": false, @@ -689,11 +689,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE36').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE36').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE36", + "linkId": "Ccc.C10.IT.DE36", "text": "\u27a2Apply hydrocortisone 1% cream to the face and flexures.
\n\n\t\u27a2 Stop the offending medication.
\n\n\t\u27a2 Bath in warm water using soap substitutes only once daily.
\n\n\t\u27a2 Stop medication
\n\n\t\u27a2 Treat mouth ulcers twice daily with gentian violet until 48 hrs after the ulcers have been cured
\n\n\t\u27a2 Give oral Paracetamol every 6 hours (4 times / day) for pain until pain is gone
\n\n\t\u27a2 Refer if mouth ulcers deep or extensive", "type": "display", "required": false, @@ -769,11 +769,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE41').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE41').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE41", + "linkId": "Ccc.C10.IT.DE41", "text": "
\u27a2 Give half-strength gentian violet (0.25%) 4 times daily for 7 days.
", "type": "display", "required": false, @@ -785,11 +785,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE45').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE45').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE45", + "linkId": "Ccc.C10.IT.DE45", "text": "\u27a2 Refer to nutrition clinic for further assessment
", "type": "display", "required": false, @@ -801,11 +801,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE46').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE46').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE46", + "linkId": "Ccc.C10.IT.DE46", "text": "\u27a2 Refer to nutrition clinic for further assessment
", "type": "display", "required": false, @@ -817,11 +817,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE47').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE47').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE47", + "linkId": "Ccc.C10.IT.DE47", "text": "\u27a2 Refer to nutrition clinic for further assessment
", "type": "display", "required": false, @@ -850,11 +850,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE48').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE48').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE48", + "linkId": "Ccc.C10.IT.DE48", "text": "\u27a2 Give first dose of intramuscuar (IM) antibiotics
\n\n\t\u27a2 Treat to prevent low blood sugar
\n\n\t\u27a2 Advise the mother on how to keep infant warm on the way to hospital
\n\n\t\u27a2 Refer URGENTLY to hospital
\n\n\tOR
\n\n\t\u27a2 If referral REFUSED or NOT FEASIBLE treat in the clinic untill referral is feasible\u00a0 (see charts on pages 12-13, and 19-20 and Treat Possible Serious Bacterial Infection or Very Severe Disease if referral is refused or is not feasible)
", "type": "display", "required": false, @@ -866,11 +866,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE49').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE49').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE49", + "linkId": "Ccc.C10.IT.DE49", "text": "\u27a2 Give oral amoxicillin 2 times per day, for 7 days
\n\n\t\u27a2 Advise the mother to give home care
\n\n\t\u27a2 Follow up in 3 days
", "type": "display", "required": false, @@ -882,11 +882,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE50').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE50').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE50", + "linkId": "Ccc.C10.IT.DE50", "text": "\u27a2 Give oral amoxicillin 2 times per day, for 5 days
\n\n\t\u27a2 Teach the mother how to treat local infections at home
\n\n\t\u27a2 Advise the mother to give home care
\n\n\t\u27a2 Follow up in 2 days
", "type": "display", "required": false, @@ -898,11 +898,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE51').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE51').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE51", + "linkId": "Ccc.C10.IT.DE51", "text": "\u27a2Advise the mother on giving home care to the young infant
", "type": "display", "required": false, @@ -914,11 +914,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE52').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE52').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE52", + "linkId": "Ccc.C10.IT.DE52", "text": "Severe Jaundice\n\n\t\u27a2 Treat to prevent low blood sugar
\n\n\t\u27a2 Advise the mother how to keep the infant warm on the way to the hospital
\n\n\t\u27a2 Refer URGENTLY to hospital", "type": "display", "required": false, @@ -930,11 +930,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE53').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE53').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE53", + "linkId": "Ccc.C10.IT.DE53", "text": "
\u27a2Advise the mother to give home care
\n\n\t\u27a2Advise the mother to return immediately if the infant’s palms or soles appear yellow
\n\n\t\u27a2If young infant is older than 3 weeks, refer to hospital for assessment
\n\n\t\u27a2Follow-up in 1 day
", "type": "display", "required": false, @@ -946,11 +946,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE54').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE54').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE54", + "linkId": "Ccc.C10.IT.DE54", "text": "\u27a2Advise the mother on giving home care to the young infant
", "type": "display", "required": false, @@ -962,11 +962,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE55').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE55').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE55", + "linkId": "Ccc.C10.IT.DE55", "text": "\u27a2 If infant has no other severe classification:
\n\n\t\u27a2 If infant has another severe classification:
\n\n\t\u27a2 Advise the mother how to keep the infant warm on the way to the hospital.
", "type": "display", "required": false, @@ -978,11 +978,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE56').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE56').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE56", + "linkId": "Ccc.C10.IT.DE56", "text": "\u27a2Give fluid and breastmilk for Some Dehydration (Plan B)
\n\n\tOR
\n\n\t\u27a2 If the infant has another severe classification:
\n\n\t\u27a2Advise the mother when to return immediately
\n\n\t\u27a2Follow-up in 2 days if no improvement
", "type": "display", "required": false, @@ -994,11 +994,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE57').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE57').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE57", + "linkId": "Ccc.C10.IT.DE57", "text": "\u27a2Give fluids and breastmilk to treat diarrhoea at home (Plan A)
\n\n\t\u27a2Advise the mother when to return immediately
\n\n\t\u27a2Follow-up in 2 days if no improvement
", "type": "display", "required": false, @@ -1010,11 +1010,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE58').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE58').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE58", + "linkId": "Ccc.C10.IT.DE58", "text": "\u27a2 REFER to hospital for Kangaroo Mother Care
\n\n\t\u27a2 Treat to prevent low blood sugar
\n\n\t\u27a2 Advise the mother to keep the young infant warm on the way to hospital
", "type": "display", "required": false, @@ -1026,11 +1026,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE59').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE59').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE59", + "linkId": "Ccc.C10.IT.DE59", "text": "\u27a2Advise mother on giving home care to the young infant
\n\n\t\u27a2Praise the mother for feeding the infant well
\n\n\t\u27a2If not breastfed, advise mother to continue feeding, and ensure good hygiene
", "type": "display", "required": false, @@ -1042,11 +1042,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='load-EmCare.C10.IT.DE60').answer.first().value=true" + "expression": "%resource.repeat(item).where(linkId='load-Ccc.C10.IT.DE60').answer.first().value=true" } } ], - "linkId": "EmCare.C10.IT.DE60", + "linkId": "Ccc.C10.IT.DE60", "text": "\u27a2Among infants who are breastfed:
\n\n\t\u27a2Among infants who are not breastfed:
\n\n\t\u27a2If Low Weight for Age, advise the mother on how to feed and keep the low-weight infant warm at home
\n\n\t\u27a2If the infant has thrush, teach the mother to treat thrush at home
\n\n\t\u27a2Follow up Feeding Problem or Thrush in 2 days
\n\n\t\u27a2Among infants who are breastfed, follow up infants who have Low Weight for Age within 14 days
\n\n\t\u27a2Among infants who are not breastfed, follow up infants who have Low Weight for Age within 7 days
", "type": "display", "required": false, @@ -1068,11 +1068,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de01" + "expression": "load-Ccc.c10.it.de01" } } ], - "linkId": "load-EmCare.C10.IT.DE01", + "linkId": "load-Ccc.C10.IT.DE01", "type": "boolean", "required": false, "repeats": false @@ -1091,11 +1091,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de02" + "expression": "load-Ccc.c10.it.de02" } } ], - "linkId": "load-EmCare.C10.IT.DE02", + "linkId": "load-Ccc.C10.IT.DE02", "type": "boolean", "required": false, "repeats": false @@ -1114,11 +1114,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de03" + "expression": "load-Ccc.c10.it.de03" } } ], - "linkId": "load-EmCare.C10.IT.DE03", + "linkId": "load-Ccc.C10.IT.DE03", "type": "boolean", "required": false, "repeats": false @@ -1137,11 +1137,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de04" + "expression": "load-Ccc.c10.it.de04" } } ], - "linkId": "load-EmCare.C10.IT.DE04", + "linkId": "load-Ccc.C10.IT.DE04", "type": "boolean", "required": false, "repeats": false @@ -1160,11 +1160,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de05" + "expression": "load-Ccc.c10.it.de05" } } ], - "linkId": "load-EmCare.C10.IT.DE05", + "linkId": "load-Ccc.C10.IT.DE05", "type": "boolean", "required": false, "repeats": false @@ -1183,11 +1183,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de06" + "expression": "load-Ccc.c10.it.de06" } } ], - "linkId": "load-EmCare.C10.IT.DE06", + "linkId": "load-Ccc.C10.IT.DE06", "type": "boolean", "required": false, "repeats": false @@ -1206,11 +1206,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de07" + "expression": "load-Ccc.c10.it.de07" } } ], - "linkId": "load-EmCare.C10.IT.DE07", + "linkId": "load-Ccc.C10.IT.DE07", "type": "boolean", "required": false, "repeats": false @@ -1229,11 +1229,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de08" + "expression": "load-Ccc.c10.it.de08" } } ], - "linkId": "load-EmCare.C10.IT.DE08", + "linkId": "load-Ccc.C10.IT.DE08", "type": "boolean", "required": false, "repeats": false @@ -1252,11 +1252,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de09" + "expression": "load-Ccc.c10.it.de09" } } ], - "linkId": "load-EmCare.C10.IT.DE09", + "linkId": "load-Ccc.C10.IT.DE09", "type": "boolean", "required": false, "repeats": false @@ -1275,11 +1275,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de10" + "expression": "load-Ccc.c10.it.de10" } } ], - "linkId": "load-EmCare.C10.IT.DE10", + "linkId": "load-Ccc.C10.IT.DE10", "type": "boolean", "required": false, "repeats": false @@ -1298,11 +1298,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de11" + "expression": "load-Ccc.c10.it.de11" } } ], - "linkId": "load-EmCare.C10.IT.DE11", + "linkId": "load-Ccc.C10.IT.DE11", "type": "boolean", "required": false, "repeats": false @@ -1321,11 +1321,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de12" + "expression": "load-Ccc.c10.it.de12" } } ], - "linkId": "load-EmCare.C10.IT.DE12", + "linkId": "load-Ccc.C10.IT.DE12", "type": "boolean", "required": false, "repeats": false @@ -1344,11 +1344,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de13" + "expression": "load-Ccc.c10.it.de13" } } ], - "linkId": "load-EmCare.C10.IT.DE13", + "linkId": "load-Ccc.C10.IT.DE13", "type": "boolean", "required": false, "repeats": false @@ -1367,11 +1367,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de14" + "expression": "load-Ccc.c10.it.de14" } } ], - "linkId": "load-EmCare.C10.IT.DE14", + "linkId": "load-Ccc.C10.IT.DE14", "type": "boolean", "required": false, "repeats": false @@ -1390,11 +1390,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de15" + "expression": "load-Ccc.c10.it.de15" } } ], - "linkId": "load-EmCare.C10.IT.DE15", + "linkId": "load-Ccc.C10.IT.DE15", "type": "boolean", "required": false, "repeats": false @@ -1413,11 +1413,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de16" + "expression": "load-Ccc.c10.it.de16" } } ], - "linkId": "load-EmCare.C10.IT.DE16", + "linkId": "load-Ccc.C10.IT.DE16", "type": "boolean", "required": false, "repeats": false @@ -1436,11 +1436,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de17" + "expression": "load-Ccc.c10.it.de17" } } ], - "linkId": "load-EmCare.C10.IT.DE17", + "linkId": "load-Ccc.C10.IT.DE17", "type": "boolean", "required": false, "repeats": false @@ -1459,11 +1459,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de18" + "expression": "load-Ccc.c10.it.de18" } } ], - "linkId": "load-EmCare.C10.IT.DE18", + "linkId": "load-Ccc.C10.IT.DE18", "type": "boolean", "required": false, "repeats": false @@ -1482,11 +1482,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de19" + "expression": "load-Ccc.c10.it.de19" } } ], - "linkId": "load-EmCare.C10.IT.DE19", + "linkId": "load-Ccc.C10.IT.DE19", "type": "boolean", "required": false, "repeats": false @@ -1505,11 +1505,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de20" + "expression": "load-Ccc.c10.it.de20" } } ], - "linkId": "load-EmCare.C10.IT.DE20", + "linkId": "load-Ccc.C10.IT.DE20", "type": "boolean", "required": false, "repeats": false @@ -1528,11 +1528,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de21" + "expression": "load-Ccc.c10.it.de21" } } ], - "linkId": "load-EmCare.C10.IT.DE21", + "linkId": "load-Ccc.C10.IT.DE21", "type": "boolean", "required": false, "repeats": false @@ -1551,11 +1551,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de22" + "expression": "load-Ccc.c10.it.de22" } } ], - "linkId": "load-EmCare.C10.IT.DE22", + "linkId": "load-Ccc.C10.IT.DE22", "type": "boolean", "required": false, "repeats": false @@ -1574,11 +1574,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de23" + "expression": "load-Ccc.c10.it.de23" } } ], - "linkId": "load-EmCare.C10.IT.DE23", + "linkId": "load-Ccc.C10.IT.DE23", "type": "boolean", "required": false, "repeats": false @@ -1597,11 +1597,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de24" + "expression": "load-Ccc.c10.it.de24" } } ], - "linkId": "load-EmCare.C10.IT.DE24", + "linkId": "load-Ccc.C10.IT.DE24", "type": "boolean", "required": false, "repeats": false @@ -1620,11 +1620,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de25" + "expression": "load-Ccc.c10.it.de25" } } ], - "linkId": "load-EmCare.C10.IT.DE25", + "linkId": "load-Ccc.C10.IT.DE25", "type": "boolean", "required": false, "repeats": false @@ -1643,11 +1643,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de42" + "expression": "load-Ccc.c10.it.de42" } } ], - "linkId": "load-EmCare.C10.IT.DE42", + "linkId": "load-Ccc.C10.IT.DE42", "type": "boolean", "required": false, "repeats": false @@ -1666,11 +1666,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de43" + "expression": "load-Ccc.c10.it.de43" } } ], - "linkId": "load-EmCare.C10.IT.DE43", + "linkId": "load-Ccc.C10.IT.DE43", "type": "boolean", "required": false, "repeats": false @@ -1689,11 +1689,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de44" + "expression": "load-Ccc.c10.it.de44" } } ], - "linkId": "load-EmCare.C10.IT.DE44", + "linkId": "load-Ccc.C10.IT.DE44", "type": "boolean", "required": false, "repeats": false @@ -1712,11 +1712,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de26" + "expression": "load-Ccc.c10.it.de26" } } ], - "linkId": "load-EmCare.C10.IT.DE26", + "linkId": "load-Ccc.C10.IT.DE26", "type": "boolean", "required": false, "repeats": false @@ -1735,11 +1735,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de27" + "expression": "load-Ccc.c10.it.de27" } } ], - "linkId": "load-EmCare.C10.IT.DE27", + "linkId": "load-Ccc.C10.IT.DE27", "type": "boolean", "required": false, "repeats": false @@ -1758,11 +1758,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de28" + "expression": "load-Ccc.c10.it.de28" } } ], - "linkId": "load-EmCare.C10.IT.DE28", + "linkId": "load-Ccc.C10.IT.DE28", "type": "boolean", "required": false, "repeats": false @@ -1781,11 +1781,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de29" + "expression": "load-Ccc.c10.it.de29" } } ], - "linkId": "load-EmCare.C10.IT.DE29", + "linkId": "load-Ccc.C10.IT.DE29", "type": "boolean", "required": false, "repeats": false @@ -1804,11 +1804,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de30" + "expression": "load-Ccc.c10.it.de30" } } ], - "linkId": "load-EmCare.C10.IT.DE30", + "linkId": "load-Ccc.C10.IT.DE30", "type": "boolean", "required": false, "repeats": false @@ -1827,11 +1827,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de31" + "expression": "load-Ccc.c10.it.de31" } } ], - "linkId": "load-EmCare.C10.IT.DE31", + "linkId": "load-Ccc.C10.IT.DE31", "type": "boolean", "required": false, "repeats": false @@ -1850,11 +1850,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de32" + "expression": "load-Ccc.c10.it.de32" } } ], - "linkId": "load-EmCare.C10.IT.DE32", + "linkId": "load-Ccc.C10.IT.DE32", "type": "boolean", "required": false, "repeats": false @@ -1873,11 +1873,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de33" + "expression": "load-Ccc.c10.it.de33" } } ], - "linkId": "load-EmCare.C10.IT.DE33", + "linkId": "load-Ccc.C10.IT.DE33", "type": "boolean", "required": false, "repeats": false @@ -1896,11 +1896,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de34" + "expression": "load-Ccc.c10.it.de34" } } ], - "linkId": "load-EmCare.C10.IT.DE34", + "linkId": "load-Ccc.C10.IT.DE34", "type": "boolean", "required": false, "repeats": false @@ -1919,11 +1919,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de35" + "expression": "load-Ccc.c10.it.de35" } } ], - "linkId": "load-EmCare.C10.IT.DE35", + "linkId": "load-Ccc.C10.IT.DE35", "type": "boolean", "required": false, "repeats": false @@ -1942,11 +1942,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de36" + "expression": "load-Ccc.c10.it.de36" } } ], - "linkId": "load-EmCare.C10.IT.DE36", + "linkId": "load-Ccc.C10.IT.DE36", "type": "boolean", "required": false, "repeats": false @@ -1965,11 +1965,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de37" + "expression": "load-Ccc.c10.it.de37" } } ], - "linkId": "load-EmCare.C10.IT.DE37", + "linkId": "load-Ccc.C10.IT.DE37", "type": "boolean", "required": false, "repeats": false @@ -1988,11 +1988,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de38" + "expression": "load-Ccc.c10.it.de38" } } ], - "linkId": "load-EmCare.C10.IT.DE38", + "linkId": "load-Ccc.C10.IT.DE38", "type": "boolean", "required": false, "repeats": false @@ -2011,11 +2011,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de39" + "expression": "load-Ccc.c10.it.de39" } } ], - "linkId": "load-EmCare.C10.IT.DE39", + "linkId": "load-Ccc.C10.IT.DE39", "type": "boolean", "required": false, "repeats": false @@ -2034,11 +2034,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de40" + "expression": "load-Ccc.c10.it.de40" } } ], - "linkId": "load-EmCare.C10.IT.DE40", + "linkId": "load-Ccc.C10.IT.DE40", "type": "boolean", "required": false, "repeats": false @@ -2057,11 +2057,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de41" + "expression": "load-Ccc.c10.it.de41" } } ], - "linkId": "load-EmCare.C10.IT.DE41", + "linkId": "load-Ccc.C10.IT.DE41", "type": "boolean", "required": false, "repeats": false @@ -2080,11 +2080,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de45" + "expression": "load-Ccc.c10.it.de45" } } ], - "linkId": "load-EmCare.C10.IT.DE45", + "linkId": "load-Ccc.C10.IT.DE45", "type": "boolean", "required": false, "repeats": false @@ -2103,11 +2103,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de46" + "expression": "load-Ccc.c10.it.de46" } } ], - "linkId": "load-EmCare.C10.IT.DE46", + "linkId": "load-Ccc.C10.IT.DE46", "type": "boolean", "required": false, "repeats": false @@ -2126,11 +2126,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de47" + "expression": "load-Ccc.c10.it.de47" } } ], - "linkId": "load-EmCare.C10.IT.DE47", + "linkId": "load-Ccc.C10.IT.DE47", "type": "boolean", "required": false, "repeats": false @@ -2149,11 +2149,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de48" + "expression": "load-Ccc.c10.it.de48" } } ], - "linkId": "load-EmCare.C10.IT.DE48", + "linkId": "load-Ccc.C10.IT.DE48", "type": "boolean", "required": false, "repeats": false @@ -2172,11 +2172,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de49" + "expression": "load-Ccc.c10.it.de49" } } ], - "linkId": "load-EmCare.C10.IT.DE49", + "linkId": "load-Ccc.C10.IT.DE49", "type": "boolean", "required": false, "repeats": false @@ -2195,11 +2195,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de50" + "expression": "load-Ccc.c10.it.de50" } } ], - "linkId": "load-EmCare.C10.IT.DE50", + "linkId": "load-Ccc.C10.IT.DE50", "type": "boolean", "required": false, "repeats": false @@ -2218,11 +2218,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de51" + "expression": "load-Ccc.c10.it.de51" } } ], - "linkId": "load-EmCare.C10.IT.DE51", + "linkId": "load-Ccc.C10.IT.DE51", "type": "boolean", "required": false, "repeats": false @@ -2241,11 +2241,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de52" + "expression": "load-Ccc.c10.it.de52" } } ], - "linkId": "load-EmCare.C10.IT.DE52", + "linkId": "load-Ccc.C10.IT.DE52", "type": "boolean", "required": false, "repeats": false @@ -2264,11 +2264,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de53" + "expression": "load-Ccc.c10.it.de53" } } ], - "linkId": "load-EmCare.C10.IT.DE53", + "linkId": "load-Ccc.C10.IT.DE53", "type": "boolean", "required": false, "repeats": false @@ -2287,11 +2287,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de54" + "expression": "load-Ccc.c10.it.de54" } } ], - "linkId": "load-EmCare.C10.IT.DE54", + "linkId": "load-Ccc.C10.IT.DE54", "type": "boolean", "required": false, "repeats": false @@ -2310,11 +2310,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de55" + "expression": "load-Ccc.c10.it.de55" } } ], - "linkId": "load-EmCare.C10.IT.DE55", + "linkId": "load-Ccc.C10.IT.DE55", "type": "boolean", "required": false, "repeats": false @@ -2333,11 +2333,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de56" + "expression": "load-Ccc.c10.it.de56" } } ], - "linkId": "load-EmCare.C10.IT.DE56", + "linkId": "load-Ccc.C10.IT.DE56", "type": "boolean", "required": false, "repeats": false @@ -2356,11 +2356,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de57" + "expression": "load-Ccc.c10.it.de57" } } ], - "linkId": "load-EmCare.C10.IT.DE57", + "linkId": "load-Ccc.C10.IT.DE57", "type": "boolean", "required": false, "repeats": false @@ -2379,11 +2379,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de58" + "expression": "load-Ccc.c10.it.de58" } } ], - "linkId": "load-EmCare.C10.IT.DE58", + "linkId": "load-Ccc.C10.IT.DE58", "type": "boolean", "required": false, "repeats": false @@ -2402,11 +2402,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de59" + "expression": "load-Ccc.c10.it.de59" } } ], - "linkId": "load-EmCare.C10.IT.DE59", + "linkId": "load-Ccc.C10.IT.DE59", "type": "boolean", "required": false, "repeats": false @@ -2425,11 +2425,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/cql-identifier", - "expression": "load-emcare.c10.it.de60" + "expression": "load-Ccc.c10.it.de60" } } ], - "linkId": "load-EmCare.C10.IT.DE60", + "linkId": "load-Ccc.C10.IT.DE60", "type": "boolean", "required": false, "repeats": false diff --git a/input/resources/questionnaire/questionnaire-emcarea.registration.p.json b/input/resources/questionnaire/questionnaire-Ccca.registration.p.json similarity index 85% rename from input/resources/questionnaire/questionnaire-emcarea.registration.p.json rename to input/resources/questionnaire/questionnaire-Ccca.registration.p.json index 9ccc56ad..a8733c02 100644 --- a/input/resources/questionnaire/questionnaire-emcarea.registration.p.json +++ b/input/resources/questionnaire/questionnaire-Ccca.registration.p.json @@ -1,6 +1,6 @@ { "resourceType": "Questionnaire", - "id": "emcarea.registration.p", + "id": "Ccca.registration.p", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire" @@ -52,7 +52,7 @@ "valueExpression": { "name": "dol", "language": "text/fhirpath", - "expression": "iif( %resource.repeat(item).where(linkId='EmCare.A.DE14.d').answer.first().exists() ,%resource.repeat(item).where(linkId='EmCare.A.DE14.d').answer.first().value , 0 days)" + "expression": "iif( %resource.repeat(item).where(linkId='Ccc.A.DE14.d').answer.first().exists() ,%resource.repeat(item).where(linkId='Ccc.A.DE14.d').answer.first().value , 0 days)" } }, { @@ -60,7 +60,7 @@ "valueExpression": { "name": "wol", "language": "text/fhirpath", - "expression": "iif( %resource.repeat(item).where(linkId='EmCare.A.DE14.w').answer.first().exists(),%resource.repeat(item).where(linkId='EmCare.A.DE14.w').answer.first().value , 0 weeks)" + "expression": "iif( %resource.repeat(item).where(linkId='Ccc.A.DE14.w').answer.first().exists(),%resource.repeat(item).where(linkId='Ccc.A.DE14.w').answer.first().value , 0 weeks)" } }, { @@ -68,7 +68,7 @@ "valueExpression": { "name": "mol", "language": "text/fhirpath", - "expression": "iif( %resource.repeat(item).where(linkId='EmCare.A.DE13.mo').answer.first().exists(),%resource.repeat(item).where(linkId='EmCare.A.DE13.mo').answer.first().value , 0 months)" + "expression": "iif( %resource.repeat(item).where(linkId='Ccc.A.DE13.mo').answer.first().exists(),%resource.repeat(item).where(linkId='Ccc.A.DE13.mo').answer.first().value , 0 months)" } }, { @@ -76,7 +76,7 @@ "valueExpression": { "name": "yol", "language": "text/fhirpath", - "expression": "iif( %resource.repeat(item).where(linkId='EmCare.A.DE13.a').answer.first().exists(),%resource.repeat(item).where(linkId='EmCare.A.DE13.a').answer.first().value, 0 years)" + "expression": "iif( %resource.repeat(item).where(linkId='Ccc.A.DE13.a').answer.first().exists(),%resource.repeat(item).where(linkId='Ccc.A.DE13.a').answer.first().value, 0 years)" } }, { @@ -89,12 +89,12 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://smart.who.int/ccc/StructureMap/emcarea.registration.p" + "valueCanonical": "https://smart.who.int/ccc/StructureMap/Ccca.registration.p" } ], - "url": "https://smart.who.int/ccc/Questionnaire/emcarea.registration.p", - "name": "EmCareA.Registration.P", - "title": "EmCareA.Registration.P", + "url": "https://smart.who.int/ccc/Questionnaire/Ccca.registration.p", + "name": "CccA.Registration.P", + "title": "CccA.Registration.P", "status": "active", "experimental": false, "subjectType": [ @@ -102,7 +102,7 @@ ], "item": [ { - "linkId": "EmCare.A.DE01", + "linkId": "Ccc.A.DE01", "text": "National Unique identification", "type": "string", "required": false, @@ -124,14 +124,14 @@ } } ], - "linkId": "EmCare.A.DE03", + "linkId": "Ccc.A.DE03", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.A.DE03", + "code": "Ccc.A.DE03", "display": "Child's Identity unknown/prefer to remain anonymous" } } @@ -143,11 +143,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE03').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE03').answer.first().empty()" } } ], - "linkId": "EmCare.A.DE04", + "linkId": "Ccc.A.DE04", "text": "First Name", "type": "string", "required": true, @@ -159,11 +159,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE03').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE03').answer.first().empty()" } } ], - "linkId": "EmCare.A.DE05", + "linkId": "Ccc.A.DE05", "text": "Middle Name", "type": "string", "required": false, @@ -175,11 +175,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE03').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE03').answer.first().empty()" } } ], - "linkId": "EmCare.A.DE06", + "linkId": "Ccc.A.DE06", "text": "Last Name", "type": "string", "required": true, @@ -191,7 +191,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE11').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE11').answer.first().empty()" } } ], @@ -224,14 +224,14 @@ } } ], - "linkId": "EmCare.A.DE11", + "linkId": "Ccc.A.DE11", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.A.DE11", + "code": "Ccc.A.DE11", "display": "Date of Birth not known" } } @@ -256,11 +256,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE11').answer.first().exists()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE11').answer.first().exists()" } } ], - "linkId": "EmCare.A.DE12", + "linkId": "Ccc.A.DE12", "text": "Provide an estimated age or estimated date of birth", "type": "choice", "required": false, @@ -268,22 +268,22 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE13", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE13", "display": "Estimated age in years/months for child (2 months or older)" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE14", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE14", "display": "Estimated age in weeks/days for young infant (under 2 months old)" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE15", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE15", "display": "Estimated Date of Birth" } } @@ -295,11 +295,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE15'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE15'" } } ], - "linkId": "EmCare.A.DE15.1", + "linkId": "Ccc.A.DE15.1", "text": "Estimated Date of Birth", "type": "date", "required": false, @@ -311,7 +311,7 @@ "extension": [ { "url": "key", - "valueId": "EmCare.A.DE14.d" + "valueId": "Ccc.A.DE14.d" }, { "url": "expression", @@ -342,11 +342,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE14'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE14'" } } ], - "linkId": "EmCare.A.DE14.d", + "linkId": "Ccc.A.DE14.d", "text": "Age in days", "type": "quantity", "required": false, @@ -358,7 +358,7 @@ "extension": [ { "url": "key", - "valueId": "EmCare.A.DE14.w" + "valueId": "Ccc.A.DE14.w" }, { "url": "expression", @@ -389,11 +389,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE14'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE14'" } } ], - "linkId": "EmCare.A.DE14.w", + "linkId": "Ccc.A.DE14.w", "text": "Age in weeks", "type": "quantity", "required": false, @@ -405,7 +405,7 @@ "extension": [ { "url": "key", - "valueId": "EmCare.A.DE13.mo" + "valueId": "Ccc.A.DE13.mo" }, { "url": "expression", @@ -436,11 +436,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE13'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE13'" } } ], - "linkId": "EmCare.A.DE13.mo", + "linkId": "Ccc.A.DE13.mo", "text": "Age in months", "type": "quantity", "required": false, @@ -452,7 +452,7 @@ "extension": [ { "url": "key", - "valueId": "EmCare.A.DE13.a" + "valueId": "Ccc.A.DE13.a" }, { "url": "expression", @@ -483,11 +483,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE13'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE13'" } } ], - "linkId": "EmCare.A.DE13.a", + "linkId": "Ccc.A.DE13.a", "text": "Age in years", "type": "quantity", "required": false, @@ -529,11 +529,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "(%resource.repeat(item).where(linkId='EmCare.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value < 4 'weeks'" + "expression": "(%resource.repeat(item).where(linkId='Ccc.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value < 4 'weeks'" } } ], - "linkId": "EmCare.A.DE13.2.d", + "linkId": "Ccc.A.DE13.2.d", "text": "Estimated age in days", "type": "quantity", "required": false, @@ -556,11 +556,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "(%resource.repeat(item).where(linkId='EmCare.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value >= 4 'weeks' and %resource.repeat(item).where(linkId='eweek').answer.first().value< 104 'weeks'" + "expression": "(%resource.repeat(item).where(linkId='Ccc.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value >= 4 'weeks' and %resource.repeat(item).where(linkId='eweek').answer.first().value< 104 'weeks'" } } ], - "linkId": "EmCare.A.DE13.2.mo", + "linkId": "Ccc.A.DE13.2.mo", "text": "Estimated age in months", "type": "quantity", "required": false, @@ -583,11 +583,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "(%resource.repeat(item).where(linkId='EmCare.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value >= 104 'weeks'" + "expression": "(%resource.repeat(item).where(linkId='Ccc.A.DE08').answer.first().exists() or %resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE15') and %resource.repeat(item).where(linkId='eweek').answer.first().value >= 104 'weeks'" } } ], - "linkId": "EmCare.A.DE13.2.a", + "linkId": "Ccc.A.DE13.2.a", "text": "Estimated age in year", "type": "quantity", "required": false, @@ -599,7 +599,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE13' or %resource.repeat(item).where(linkId='EmCare.A.DE12').answer.first().value.code = 'EmCare.A.DE14'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE13' or %resource.repeat(item).where(linkId='Ccc.A.DE12').answer.first().value.code = 'Ccc.A.DE14'" } }, { @@ -627,11 +627,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "iif( %resource.repeat(item).where(linkId='dob').answer.first().exists(),%resource.repeat(item).where(linkId='dob').answer.first().value,iif( %resource.repeat(item).where(linkId='EmCare.A.DE15.1').answer.first().exists(),%resource.repeat(item).where(linkId='EmCare.A.DE15.1').answer.first().value, %cdob ))" + "expression": "iif( %resource.repeat(item).where(linkId='dob').answer.first().exists(),%resource.repeat(item).where(linkId='dob').answer.first().value,iif( %resource.repeat(item).where(linkId='Ccc.A.DE15.1').answer.first().exists(),%resource.repeat(item).where(linkId='Ccc.A.DE15.1').answer.first().value, %cdob ))" } } ], - "linkId": "EmCare.A.DE08", + "linkId": "Ccc.A.DE08", "text": "Consolidated Date of Birth", "type": "date", "required": false, @@ -647,7 +647,7 @@ } } ], - "linkId": "EmCare.A.DE16", + "linkId": "Ccc.A.DE16", "text": "Sex", "type": "choice", "required": true, @@ -655,8 +655,8 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE17", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE17", "display": "Female" } }, @@ -671,8 +671,8 @@ } ], "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE18", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE18", "display": "Male" } }, @@ -687,8 +687,8 @@ } ], "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE19", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE19", "display": "Not Specified" } } @@ -705,7 +705,7 @@ "valueBoolean": true } ], - "linkId": "EmCare.A.DE48", + "linkId": "Ccc.A.DE48", "text": "Caregiver", "type": "boolean", "required": false, @@ -730,7 +730,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE48').answer.first().empty() and %resource.repeat(item).where(linkId='EmCare.A.DE03').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE48').answer.first().empty() and %resource.repeat(item).where(linkId='Ccc.A.DE03').answer.first().empty()" } } ], @@ -778,7 +778,7 @@ } } ], - "linkId": "emcarerelatedpersoncaregiverid", + "linkId": "Cccrelatedpersoncaregiverid", "type": "string", "required": false, "repeats": false @@ -789,38 +789,38 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='emcarerelatedpersoncaregiverid').answer.first().exists()" + "expression": "%resource.repeat(item).where(linkId='Cccrelatedpersoncaregiverid').answer.first().exists()" } } ], - "linkId": "EmCare.A.DE21.1", + "linkId": "Ccc.A.DE21.1", "type": "group", "required": false, "repeats": false, "item": [ { - "linkId": "EmCare.A.DE21", + "linkId": "Ccc.A.DE21", "text": "Caregiver First Name", "type": "string", "required": true, "repeats": false }, { - "linkId": "EmCare.A.DE22", + "linkId": "Ccc.A.DE22", "text": "Caregiver Middle Name", "type": "string", "required": false, "repeats": false }, { - "linkId": "EmCare.A.DE23", + "linkId": "Ccc.A.DE23", "text": "Caregiver Last Name", "type": "string", "required": true, "repeats": false }, { - "linkId": "EmCare.A.DE35", + "linkId": "Ccc.A.DE35", "text": "Primary Caregiver’s Mobile telephone number", "type": "integer", "required": false, @@ -851,11 +851,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE48').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE48').answer.first().empty()" } } ], - "linkId": "EmCare.A.DE24", + "linkId": "Ccc.A.DE24", "text": "Caregiver’s Relationship to Client", "type": "choice", "required": true, @@ -863,43 +863,43 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE25", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE25", "display": "Mother" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE26", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE26", "display": "Father" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE27", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE27", "display": "Sibling" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE28", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE28", "display": "Extended family" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE29", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE29", "display": "Legal Guardian" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE30", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE30", "display": "Not Related" } } @@ -911,12 +911,12 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE21.1').repeat(item).where(linkId='EmCare.A.DE24').answer.first().value.code != 'EmCare.A.DE25'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE21.1').repeat(item).where(linkId='Ccc.A.DE24').answer.first().value.code != 'Ccc.A.DE25'" } } ], - "linkId": "EmCare.A.DE31", - "definition": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", + "linkId": "Ccc.A.DE31", + "definition": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", "text": "Biological Mother Vital Status", "type": "choice", "required": true, @@ -924,22 +924,22 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE46", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE46", "display": "Dead" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE34", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE34", "display": "Alive" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE33", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE33", "display": "Unknown" } } @@ -959,7 +959,7 @@ } } ], - "linkId": "EmCare.A.DE31-help", + "linkId": "Ccc.A.DE31-help", "text": "The client’s mother and/or father’s vital status.", "type": "display" } @@ -971,12 +971,12 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE21.1').repeat(item).where(linkId='EmCare.A.DE24').answer.first().value.code != 'EmCare.A.DE26'" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE21.1').repeat(item).where(linkId='Ccc.A.DE24').answer.first().value.code != 'Ccc.A.DE26'" } } ], - "linkId": "EmCare.A.DE32", - "definition": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", + "linkId": "Ccc.A.DE32", + "definition": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", "text": "Biological Father Vital Status", "type": "choice", "required": true, @@ -984,22 +984,22 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE46", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE46", "display": "Dead" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE34", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE34", "display": "Alive" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc/CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE33", + "system": "https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE33", "display": "Unknown" } } @@ -1019,7 +1019,7 @@ } } ], - "linkId": "EmCare.A.DE32-help", + "linkId": "Ccc.A.DE32-help", "text": "The client’s mother and/or father’s vital status.", "type": "display" } @@ -1044,18 +1044,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='emcarerelatedpersoncaregiverid').answer.first().value.code = 'newCaregiver' or %resource.repeat(item).where(linkId='EmCare.A.DE48').answer.first().exists()" + "expression": "%resource.repeat(item).where(linkId='Cccrelatedpersoncaregiverid').answer.first().value.code = 'newCaregiver' or %resource.repeat(item).where(linkId='Ccc.A.DE48').answer.first().exists()" } } ], - "linkId": "EmCare.A.DE38", + "linkId": "Ccc.A.DE38", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.A.DE38", + "code": "Ccc.A.DE38", "display": "Caregiver wants to receive SMS or other messages regarding the child's visits and health status" } } diff --git a/input/resources/questionnaire/questionnaire-emcareb.registration.e.json b/input/resources/questionnaire/questionnaire-Cccb.registration.e.json similarity index 86% rename from input/resources/questionnaire/questionnaire-emcareb.registration.e.json rename to input/resources/questionnaire/questionnaire-Cccb.registration.e.json index 58d3f293..4e3d6b31 100644 --- a/input/resources/questionnaire/questionnaire-emcareb.registration.e.json +++ b/input/resources/questionnaire/questionnaire-Cccb.registration.e.json @@ -1,6 +1,6 @@ { "resourceType": "Questionnaire", - "id": "emcareb.registration.e", + "id": "Cccb.registration.e", "meta": { "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire" @@ -25,12 +25,12 @@ }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", - "valueCanonical": "https://smart.who.int/ccc//StructureMap/emcareb.registration.e" + "valueCanonical": "https://smart.who.int/ccc//StructureMap/Cccb.registration.e" } ], - "url": "https://smart.who.int/ccc//Questionnaire/emcareb.registration.e", - "name": "EmCareB.Registration.E", - "title": "EmCareB.Registration.E", + "url": "https://smart.who.int/ccc//Questionnaire/Cccb.registration.e", + "name": "CccB.Registration.E", + "title": "CccB.Registration.E", "status": "active", "experimental": false, "subjectType": [ @@ -38,7 +38,7 @@ ], "item": [ { - "linkId": "EmCare.B3.DE01", + "linkId": "Ccc.B3.DE01", "text": "Reason for Consultation", "type": "choice", "required": false, @@ -46,15 +46,15 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.B3.DE03", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.B3.DE03", "display": "Sick Child" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.B3.DE04", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.B3.DE04", "display": "Routine visit (Well child/infant)" } } @@ -70,11 +70,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.B3.DE01').answer.first().value.code = 'EmCare.B3.DE04'" + "expression": "%resource.repeat(item).where(linkId='Ccc.B3.DE01').answer.first().value.code = 'Ccc.B3.DE04'" } } ], - "linkId": "EmCare.B3.DE05", + "linkId": "Ccc.B3.DE05", "text": "Is the child sick Today?", "type": "boolean", "required": true, @@ -86,11 +86,11 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.B3.DE01').answer.first().value.code = 'EmCare.B3.DE02'" + "expression": "%resource.repeat(item).where(linkId='Ccc.B3.DE01').answer.first().value.code = 'Ccc.B3.DE02'" } } ], - "linkId": "EmCare.B3.DE06", + "linkId": "Ccc.B3.DE06", "text": "Type of Consultation", "type": "choice", "required": false, @@ -98,15 +98,15 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.B3.DE07", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.B3.DE07", "display": "Initial visit" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.B3.DE08", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.B3.DE08", "display": "Follow Up" } } @@ -132,14 +132,14 @@ "valueBoolean": true } ], - "linkId": "EmCare.A.DE39", + "linkId": "Ccc.A.DE39", "type": "choice", "required": false, "repeats": true, "answerOption": [ { "valueCoding": { - "code": "EmCare.A.DE39", + "code": "Ccc.A.DE39", "display": "Person/People accompanying child today?" } } @@ -164,7 +164,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='EmCare.A.DE39').answer.first().empty()" + "expression": "%resource.repeat(item).where(linkId='Ccc.A.DE39').answer.first().empty()" } } ], @@ -212,7 +212,7 @@ } } ], - "linkId": "emcarerelatedpersoncaregiverid", + "linkId": "Cccrelatedpersoncaregiverid", "type": "string", "required": false, "repeats": false @@ -223,31 +223,31 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%resource.repeat(item).where(linkId='emcarerelatedpersoncaregiverid').answer.first().exists()" + "expression": "%resource.repeat(item).where(linkId='Cccrelatedpersoncaregiverid').answer.first().exists()" } } ], - "linkId": "EmCare.A.DE39.1", + "linkId": "Ccc.A.DE39.1", "type": "group", "required": false, "repeats": false, "item": [ { - "linkId": "EmCare.A.DE40", + "linkId": "Ccc.A.DE40", "text": "Person/People accompanying child First Name", "type": "string", "required": true, "repeats": false }, { - "linkId": "EmCare.A.DE41", + "linkId": "Ccc.A.DE41", "text": "Person/People accompanying child Middle Name", "type": "string", "required": false, "repeats": false }, { - "linkId": "EmCare.A.DE42", + "linkId": "Ccc.A.DE42", "text": "Person/People accompanying child Last Name", "type": "string", "required": true, @@ -273,7 +273,7 @@ "repeats": false }, { - "linkId": "EmCare.A.DE43", + "linkId": "Ccc.A.DE43", "text": "Person/People accompanying child’s Relationship to Client", "type": "choice", "required": true, @@ -281,43 +281,43 @@ "answerOption": [ { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE25", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE25", "display": "Mother" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE26", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE26", "display": "Father" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE27", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE27", "display": "Sibling" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE28", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE28", "display": "Extended family" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE29", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE29", "display": "Legal Guardian" } }, { "valueCoding": { - "system": "https://smart.who.int/ccc//CodeSystem/emcare-custom-codes", - "code": "EmCare.A.DE30", + "system": "https://smart.who.int/ccc//CodeSystem/Ccc-custom-codes", + "code": "Ccc.A.DE30", "display": "Not Related" } } diff --git a/input/resources/structuredefinition/structuredefinition-emcare-condition.json b/input/resources/structuredefinition/structuredefinition-Ccc-condition.json similarity index 82% rename from input/resources/structuredefinition/structuredefinition-emcare-condition.json rename to input/resources/structuredefinition/structuredefinition-Ccc-condition.json index 8ad06c18..cf19494b 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-condition.json +++ b/input/resources/structuredefinition/structuredefinition-Ccc-condition.json @@ -1,12 +1,12 @@ { "resourceType": "StructureDefinition", - "id": "emcare-condition", - "url": "https://smart.who.int/ccc/StructureDefinition/emcare-condition", - "name": "EmCare Condition", - "title": "EmCare Condition", + "id": "Ccc-condition", + "url": "https://smart.who.int/ccc/StructureDefinition/Ccc-condition", + "name": "Ccc Condition", + "title": "Ccc Condition", "status": "active", "experimental": false, - "description": "EmCare Condition", + "description": "Ccc Condition", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, diff --git a/input/resources/structuredefinition/structuredefinition-emcare-observation.json b/input/resources/structuredefinition/structuredefinition-Ccc-observation.json similarity index 68% rename from input/resources/structuredefinition/structuredefinition-emcare-observation.json rename to input/resources/structuredefinition/structuredefinition-Ccc-observation.json index d1a6efa8..a6862b59 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-observation.json +++ b/input/resources/structuredefinition/structuredefinition-Ccc-observation.json @@ -1,12 +1,12 @@ { "resourceType": "StructureDefinition", - "id": "emcare-observation", - "url": "https://smart.who.int/ccc/StructureDefinition/emcare-observation", - "name": "EmCare Observation", - "title": "EmCare Observation", + "id": "Ccc-observation", + "url": "https://smart.who.int/ccc/StructureDefinition/Ccc-observation", + "name": "Ccc Observation", + "title": "Ccc Observation", "status": "active", "experimental": false, - "description": "EmCare Observation", + "description": "Ccc Observation", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, diff --git a/input/resources/structuredefinition/structuredefinition-emcare-patient.json b/input/resources/structuredefinition/structuredefinition-Ccc-patient.json similarity index 95% rename from input/resources/structuredefinition/structuredefinition-emcare-patient.json rename to input/resources/structuredefinition/structuredefinition-Ccc-patient.json index 3db341c7..b1df0245 100644 --- a/input/resources/structuredefinition/structuredefinition-emcare-patient.json +++ b/input/resources/structuredefinition/structuredefinition-Ccc-patient.json @@ -1,12 +1,12 @@ { "resourceType": "StructureDefinition", - "id": "emcare-patient", - "url": "https://smart.who.int/ccc/StructureDefinition/emcare-patient", - "name": "EmCare Patient", - "title": "EmCare Patient", + "id": "Ccc-patient", + "url": "https://smart.who.int/ccc/StructureDefinition/Ccc-patient", + "name": "Ccc Patient", + "title": "Ccc Patient", "status": "active", "experimental": false, - "description": "EmCare Patient", + "description": "Ccc Patient", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, diff --git a/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json b/input/resources/structuremap/structuremap-Ccc.b10-14.symptoms.2m.p.json similarity index 89% rename from input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json rename to input/resources/structuremap/structuremap-Ccc.b10-14.symptoms.2m.p.json index 6deda213..847dba98 100644 --- a/input/resources/structuremap/structuremap-emcare.b10-14.symptoms.2m.p.json +++ b/input/resources/structuremap/structuremap-Ccc.b10-14.symptoms.2m.p.json @@ -1,12 +1,12 @@ { "resourceType": "StructureMap", - "id": "emcare.b10-14.symptoms.2m.p", + "id": "Ccc.b10-14.symptoms.2m.p", "text": { "status": "generated", - "div": "map "https://smart.who.int/ccc/StructureMap/emcare.b10-14.symptoms.2m.p" = "emcare.b10-14.symptoms.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s1de05(src, tgt) "d130047c";\r\n } "56a76d73";\r\n } "79141fc8";\r\n } "08fbbbd7";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s1de06(src, tgt) "008a3623";\r\n } "d784044d";\r\n } "805abc9e";\r\n } "446767cc";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s1de01(src, tgt) "04d8e898";\r\n } "b2d824f5";\r\n } "0d7d74bd";\r\n } "dd9bd984";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s1de02(src, tgt) "d90e5fb1";\r\n } "5cae2191";\r\n } "ab1692fb";\r\n } "119f6765";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n } "bfd970ae";\r\n } "b8eb69b0";\r\n } "e1f73648";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s1de02(src, tgt) "39c1737c";\r\n } "891a881e";\r\n } "6e6d1885";\r\n } "a9e046d7";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s1de05(src, tgt) "1721269a";\r\n } "c1e233d8";\r\n } "c6a3d5c5";\r\n } "e17a9583";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb12s1de02(src, tgt) "df55b281";\r\n } "0a52cb1c";\r\n } "1593137e";\r\n } "744c4bf9";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb12s1de03(src, tgt) "fc6edbe7";\r\n } "5330779a";\r\n } "c692777e";\r\n } "8d04eb57";\r\n src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcarebgde06(src, tgt) "ca782de1";\r\n } "1b87f3fc";\r\n } "9ac4a378";\r\n } "f72a0439";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb12s1de06(src, tgt) "ce301cb0";\r\n } "c80f2620";\r\n } "27eb1328";\r\n } "e6da0780";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s1de01(src, tgt) "0a3c13d2";\r\n } "0ca270e1";\r\n } "6e77deb0";\r\n } "b8334cd6";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s1de02(src, tgt) "cd788051";\r\n } "2c880586";\r\n } "50966861";\r\n } "78170861";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s1de03(src, tgt) "323bf4ac";\r\n } "681ae227";\r\n } "b8f4f3f5";\r\n } "e5a07dfd";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s1de04(src, tgt) "28267d58";\r\n } "4ea18833";\r\n } "82346f75";\r\n } "b63e24e4";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s1de03(src, tgt) "ab7fc76a";\r\n } "22d8b79e";\r\n } "991ff5c6";\r\n } "102c5ae9";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s1de01(src, tgt) "6baaff63";\r\n } "f7186bc6";\r\n } "19883e88";\r\n } "90d2b417";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s1de02(src, tgt) "49187687";\r\n } "0063faef";\r\n } "7df08969";\r\n } "6f9d4b85";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s1de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE05' "code-emcareb10s1de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s1de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s1de05";\r\n } "bdab9370";\r\n } "f75f2b05";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE06' "code-emcareb10s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "156b25ae";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE01' "code-emcareb10s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s1de01";\r\n } "bdab9370";\r\n } "1b302dc5";\r\n}\r\n\r\ngroup emcareobservationemcareb10s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S1.DE02' "code-emcareb10s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "84c804e5";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s1de01";\r\n } "bdab9370";\r\n } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE02' "code-emcareb11s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "78040096";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s1de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE05' "code-emcareb11s1de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s1de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s1de05";\r\n } "bdab9370";\r\n } "999566e5";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb12s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE02' "code-emcareb12s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb12s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb12s1de02";\r\n } "bdab9370";\r\n } "2980a862";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb12s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE03' "code-emcareb12s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "0684c220";\r\n}\r\n\r\ngroup emcareobservationemcarebgde06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcarebgde06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B.G.DE06' "code-emcarebgde06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B.G.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcarebgde06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcarebgde06";\r\n } "bdab9370";\r\n } "d670d189";\r\n}\r\n\r\ngroup emcareobservationemcareb12s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb12s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S1.DE06' "code-emcareb12s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B12S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb12s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb12s1de06";\r\n } "bdab9370";\r\n } "fcb16134";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE01' "code-emcareb13s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb13s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb13s1de01";\r\n } "bdab9370";\r\n } "61c82b53";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE02' "code-emcareb13s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb13s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb13s1de02";\r\n } "bdab9370";\r\n } "f246fc63";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE03' "code-emcareb13s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb13s1de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb13s1de03";\r\n } "bdab9370";\r\n } "1e1d8c32";\r\n}\r\n\r\ngroup emcareobservationemcareb13s1de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s1de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S1.DE04' "code-emcareb13s1de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S1.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "9fc99c98";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE03' "code-emcareb14s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s1de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s1de03";\r\n } "bdab9370";\r\n } "bc3a888b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE01' "code-emcareb14s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s1de01";\r\n } "bdab9370";\r\n } "fb67ce2c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S1.DE02' "code-emcareb14s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s1de02";\r\n } "bdab9370";\r\n } "9802d7f8";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b10-14.symptoms.2m.p" = "Ccc.b10-14.symptoms.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s1de05(src, tgt) "d130047c";\r\n } "56a76d73";\r\n } "79141fc8";\r\n } "08fbbbd7";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s1de06(src, tgt) "008a3623";\r\n } "d784044d";\r\n } "805abc9e";\r\n } "446767cc";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s1de01(src, tgt) "04d8e898";\r\n } "b2d824f5";\r\n } "0d7d74bd";\r\n } "dd9bd984";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s1de02(src, tgt) "d90e5fb1";\r\n } "5cae2191";\r\n } "ab1692fb";\r\n } "119f6765";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s1de01(src, tgt) "43d4af59";\r\n } "bfd970ae";\r\n } "b8eb69b0";\r\n } "e1f73648";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s1de02(src, tgt) "39c1737c";\r\n } "891a881e";\r\n } "6e6d1885";\r\n } "a9e046d7";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s1de05(src, tgt) "1721269a";\r\n } "c1e233d8";\r\n } "c6a3d5c5";\r\n } "e17a9583";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb12s1de02(src, tgt) "df55b281";\r\n } "0a52cb1c";\r\n } "1593137e";\r\n } "744c4bf9";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb12s1de03(src, tgt) "fc6edbe7";\r\n } "5330779a";\r\n } "c692777e";\r\n } "8d04eb57";\r\n src.item first as item where (linkId = 'Ccc.B.G.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccbgde06(src, tgt) "ca782de1";\r\n } "1b87f3fc";\r\n } "9ac4a378";\r\n } "f72a0439";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb12s1de06(src, tgt) "ce301cb0";\r\n } "c80f2620";\r\n } "27eb1328";\r\n } "e6da0780";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s1de01(src, tgt) "0a3c13d2";\r\n } "0ca270e1";\r\n } "6e77deb0";\r\n } "b8334cd6";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s1de02(src, tgt) "cd788051";\r\n } "2c880586";\r\n } "50966861";\r\n } "78170861";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s1de03(src, tgt) "323bf4ac";\r\n } "681ae227";\r\n } "b8f4f3f5";\r\n } "e5a07dfd";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s1de04(src, tgt) "28267d58";\r\n } "4ea18833";\r\n } "82346f75";\r\n } "b63e24e4";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s1de03(src, tgt) "ab7fc76a";\r\n } "22d8b79e";\r\n } "991ff5c6";\r\n } "102c5ae9";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s1de01(src, tgt) "6baaff63";\r\n } "f7186bc6";\r\n } "19883e88";\r\n } "90d2b417";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s1de02(src, tgt) "49187687";\r\n } "0063faef";\r\n } "7df08969";\r\n } "6f9d4b85";\r\n}\r\n\r\ngroup CccobservationCccb10s1de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S1.DE05' "code-Cccb10s1de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s1de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s1de05";\r\n } "bdab9370";\r\n } "f75f2b05";\r\n}\r\n\r\ngroup CccobservationCccb10s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S1.DE06' "code-Cccb10s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "156b25ae";\r\n}\r\n\r\ngroup CccobservationCccb10s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S1.DE01' "code-Cccb10s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s1de01";\r\n } "bdab9370";\r\n } "1b302dc5";\r\n}\r\n\r\ngroup CccobservationCccb10s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S1.DE02' "code-Cccb10s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "84c804e5";\r\n}\r\n\r\ngroup CccobservationCccb11s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S1.DE01' "code-Cccb11s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s1de01";\r\n } "bdab9370";\r\n } "7b8564b3";\r\n}\r\n\r\ngroup CccobservationCccb11s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S1.DE02' "code-Cccb11s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "78040096";\r\n}\r\n\r\ngroup CccobservationCccb11s1de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S1.DE05' "code-Cccb11s1de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s1de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s1de05";\r\n } "bdab9370";\r\n } "999566e5";\r\n}\r\n\r\ngroup CccobservationCccb12s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B12S1.DE02' "code-Cccb12s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s1de02";\r\n } "bdab9370";\r\n } "2980a862";\r\n}\r\n\r\ngroup CccobservationCccb12s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B12S1.DE03' "code-Cccb12s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "0684c220";\r\n}\r\n\r\ngroup CccobservationCccbgde06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccbgde06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B.G.DE06' "code-Cccbgde06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B.G.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccbgde06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccbgde06";\r\n } "bdab9370";\r\n } "d670d189";\r\n}\r\n\r\ngroup CccobservationCccb12s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B12S1.DE06' "code-Cccb12s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B12S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s1de06";\r\n } "bdab9370";\r\n } "fcb16134";\r\n}\r\n\r\ngroup CccobservationCccb13s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S1.DE01' "code-Cccb13s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de01";\r\n } "bdab9370";\r\n } "61c82b53";\r\n}\r\n\r\ngroup CccobservationCccb13s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S1.DE02' "code-Cccb13s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de02";\r\n } "bdab9370";\r\n } "f246fc63";\r\n}\r\n\r\ngroup CccobservationCccb13s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S1.DE03' "code-Cccb13s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s1de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s1de03";\r\n } "bdab9370";\r\n } "1e1d8c32";\r\n}\r\n\r\ngroup CccobservationCccb13s1de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s1de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S1.DE04' "code-Cccb13s1de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S1.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "9fc99c98";\r\n}\r\n\r\ngroup CccobservationCccb14s1de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S1.DE03' "code-Cccb14s1de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de03";\r\n } "bdab9370";\r\n } "bc3a888b";\r\n}\r\n\r\ngroup CccobservationCccb14s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S1.DE01' "code-Cccb14s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de01";\r\n } "bdab9370";\r\n } "fb67ce2c";\r\n}\r\n\r\ngroup CccobservationCccb14s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S1.DE02' "code-Cccb14s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s1de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s1de02";\r\n } "bdab9370";\r\n } "9802d7f8";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b10-16.signs.2m.p" = "emcare.b10-16.signs.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s2de03(src, tgt) "9be992ee";\r\n } "36f7a9cc";\r\n } "079b8b98";\r\n } "366acbd3";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s2de04(src, tgt) "22bcca4b";\r\n } "32ccd4c5";\r\n } "a7c78146";\r\n } "b19e39bf";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s2de05(src, tgt) "1d8e3cbc";\r\n } "bf103e1e";\r\n } "76d6b934";\r\n } "98782720";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s2de06(src, tgt) "c80bf08a";\r\n } "1045a48d";\r\n } "3d816032";\r\n } "530045b2";\r\n src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb10s2de07(src, tgt) "8ed85169";\r\n } "115f4673";\r\n } "c898e9da";\r\n } "b4fdeee3";\r\n } "92a14f88";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n } "df9369ca";\r\n } "b1634b07";\r\n } "bf55dba7";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n } "52eb002b";\r\n } "c096f5b2";\r\n } "f35e6a90";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n } "011caec9";\r\n } "431cd0b3";\r\n } "5a3f8e99";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb17s1de01(src, tgt) "13df0b77";\r\n } "ebf73588";\r\n } "4de1b457";\r\n } "eb36da14";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb17s1de02(src, tgt) "df66de05";\r\n } "cef4a910";\r\n } "7a411b35";\r\n } "f5194f29";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb17s1de06(src, tgt) "7dcc4fe7";\r\n } "57c20bc9";\r\n } "a315006a";\r\n } "371f2fa4";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb17s1de07(src, tgt) "6d9d7efe";\r\n } "666ea04b";\r\n } "555380a9";\r\n } "6484a938";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s2de01(src, tgt) "988862af";\r\n } "6071237c";\r\n } "b8724cd8";\r\n } "06c49c87";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s2de02(src, tgt) "f885cd9f";\r\n } "56652867";\r\n } "d0f4b9f9";\r\n } "530eefb8";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb13s2de03(src, tgt) "e686d739";\r\n } "c2d82e76";\r\n } "1aafb16b";\r\n } "9b54ee4f";\r\n src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb12s2de01(src, tgt) "d9032a0e";\r\n } "471ac9ec";\r\n } "364c39dc";\r\n } "387028ff";\r\n src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb12s2de05(src, tgt) "b4d067ef";\r\n } "260342c7";\r\n } "bd3ec4be";\r\n } "325408a5";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de01(src, tgt) "3c803bdc";\r\n } "8df3ea2e";\r\n } "f8052c53";\r\n } "91d8a216";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de02(src, tgt) "e05b3a93";\r\n } "0c924a74";\r\n } "56da7549";\r\n } "2aa25144";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de03(src, tgt) "9ccb1879";\r\n } "017fcd3f";\r\n } "05f51940";\r\n } "7c588606";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de04(src, tgt) "0e9ceef0";\r\n } "083b89d9";\r\n } "776651be";\r\n } "9007e632";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de05(src, tgt) "7f44dd5a";\r\n } "c001deab";\r\n } "280ba472";\r\n } "c672d1b7";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de07t(src, tgt) "37b45a1a";\r\n } "971c989b";\r\n } "f56a8acb";\r\n } "f0e0c1c7";\r\n } "2caf0a2d";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE07').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de07f(src, tgt) "ed6e13a0";\r\n } "52c7fa66";\r\n } "81854047";\r\n } "a9b43d6e";\r\n } "fed21ad9";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de08t(src, tgt) "31d968a5";\r\n } "05db12b8";\r\n } "adbfce41";\r\n } "89575f40";\r\n } "294cc680";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE08').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de08f(src, tgt) "1a79fb79";\r\n } "3f5690dd";\r\n } "a36f6b02";\r\n } "3d64a953";\r\n } "37580d33";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de09t(src, tgt) "28edea0e";\r\n } "7f261203";\r\n } "a883e98f";\r\n } "158e3fbb";\r\n } "e1eb3d64";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE06').exists() and src.item.where(linkId = 'EmCare.B14S2.DE06').answer.where(value.code = 'EmCare.B14S2.DE09').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de06emcareb14s2de09f(src, tgt) "838bc2fd";\r\n } "fe14ec44";\r\n } "e465613c";\r\n } "7ec9bbca";\r\n } "ae01960a";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de10(src, tgt) "c7bb4c66";\r\n } "f8c64c2f";\r\n } "b824f2ed";\r\n } "76d01623";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de11(src, tgt) "075dfab4";\r\n } "e7decefb";\r\n } "258af3ea";\r\n } "0a0c8d1d";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de12(src, tgt) "5c4fb26d";\r\n } "8b35df2f";\r\n } "1def7e4a";\r\n } "23fadae9";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de18t(src, tgt) "441e433a";\r\n } "c6a25fe8";\r\n } "3ce60159";\r\n } "d174fa68";\r\n } "ac7d700b";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE18').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de18f(src, tgt) "97a383dc";\r\n } "2dc8d6f1";\r\n } "e831d44b";\r\n } "01b18454";\r\n } "451ac430";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de19t(src, tgt) "176edab8";\r\n } "6066f6c8";\r\n } "983ce7ec";\r\n } "19ed849e";\r\n } "3852f24c";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE19').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de19f(src, tgt) "817f40b1";\r\n } "be332abb";\r\n } "5233dec2";\r\n } "b6313d6e";\r\n } "a8b58d8a";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de21t(src, tgt) "aa5b0432";\r\n } "0ec5642c";\r\n } "0d215d93";\r\n } "4854d5df";\r\n } "ae0dcf93";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE21').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de21f(src, tgt) "e4468f91";\r\n } "cd3aebda";\r\n } "13f1b93a";\r\n } "c43d8495";\r\n } "15560381";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de22t(src, tgt) "ab612b0e";\r\n } "5f99713d";\r\n } "0f879b99";\r\n } "8071df60";\r\n } "c9c52b13";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE22').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de22f(src, tgt) "123f16cb";\r\n } "6839cab1";\r\n } "cd6d3ddf";\r\n } "ab20fd0d";\r\n } "1392af91";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de23t(src, tgt) "a59d13f2";\r\n } "6fa9b4c3";\r\n } "a59cf8e8";\r\n } "d5f2929d";\r\n } "0b62df00";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE23').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de23f(src, tgt) "6596445b";\r\n } "960ec6df";\r\n } "388ca68d";\r\n } "25b5d6b1";\r\n } "87288d6a";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de25t(src, tgt) "072f0d04";\r\n } "bdb49f20";\r\n } "1ac2bcc1";\r\n } "43511064";\r\n } "6a58313a";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE25').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de25f(src, tgt) "81e79970";\r\n } "224b2fb2";\r\n } "021a8b72";\r\n } "368d9ecb";\r\n } "8441e89f";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de31t(src, tgt) "b35eaf3c";\r\n } "a1596adf";\r\n } "bab60838";\r\n } "17feed2f";\r\n } "4912861f";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE31').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de31f(src, tgt) "0c07de59";\r\n } "8c4edf8a";\r\n } "f51215d7";\r\n } "76689bf7";\r\n } "f8037952";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de32t(src, tgt) "304d4aab";\r\n } "6fe3eb64";\r\n } "14dd9fb8";\r\n } "a671b882";\r\n } "1c1c4815";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE32').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de32f(src, tgt) "6f919233";\r\n } "5708f6bd";\r\n } "833ec3a9";\r\n } "cdb61927";\r\n } "3a489200";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de33t(src, tgt) "0b3f6de9";\r\n } "980b8c8b";\r\n } "94d31e8a";\r\n } "d37d7b65";\r\n } "d888db70";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE33').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de33f(src, tgt) "8660b336";\r\n } "dd13171e";\r\n } "3580783e";\r\n } "d31d16ef";\r\n } "e3f7e3de";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de35t(src, tgt) "fdc56916";\r\n } "83c3b9d5";\r\n } "19244b4d";\r\n } "97672cc7";\r\n } "0ba97eaa";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE35').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de35f(src, tgt) "aca6e81a";\r\n } "c68620da";\r\n } "be69b7d3";\r\n } "12e78229";\r\n } "a1231c31";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de36t(src, tgt) "ac250feb";\r\n } "e61326dd";\r\n } "9cab4235";\r\n } "cc1e3733";\r\n } "fd0dd1e1";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE36').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de36f(src, tgt) "6c995c67";\r\n } "b2720395";\r\n } "061de0de";\r\n } "e329544f";\r\n } "6190a03e";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de37t(src, tgt) "e70adb73";\r\n } "4bc7d51a";\r\n } "cd87f1e7";\r\n } "66356988";\r\n } "1d47d233";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE13').exists() and src.item.where(linkId = 'EmCare.B14S2.DE13').answer.where(value.code = 'EmCare.B14S2.DE37').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de13emcareb14s2de37f(src, tgt) "216b6583";\r\n } "191d63ec";\r\n } "f1af8fee";\r\n } "9b50cdfb";\r\n } "1e5890e8";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de19a(src, tgt) "001e9c80";\r\n } "d2eb23fb";\r\n } "f21f5e42";\r\n } "0b69df95";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de22a(src, tgt) "bccd876e";\r\n } "95095060";\r\n } "255ee6cb";\r\n } "d708ca5c";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de23a(src, tgt) "d2d3bcd4";\r\n } "990f2716";\r\n } "b0df7a91";\r\n } "c2f9a858";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de24(src, tgt) "fd1e1903";\r\n } "8deeed15";\r\n } "711ceb12";\r\n } "2394e366";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de30(src, tgt) "48133b0b";\r\n } "b13f149c";\r\n } "e8395f1e";\r\n } "a612d3de";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de30b(src, tgt) "e092d9f2";\r\n } "49fe0265";\r\n } "f83e6d8d";\r\n } "ee1ec67e";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de31a(src, tgt) "e36dddc9";\r\n } "dd872982";\r\n } "ec36bfb0";\r\n } "09b48cf7";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de31b(src, tgt) "a400e31e";\r\n } "29aa3e32";\r\n } "4d8d5769";\r\n } "8023b5d8";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de32a(src, tgt) "ebc4362a";\r\n } "7b8431db";\r\n } "63050b98";\r\n } "7898f754";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de34(src, tgt) "1b1e3f3d";\r\n } "92cdef51";\r\n } "0f34721b";\r\n } "5f2fd5be";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de36a(src, tgt) "3a34cb4f";\r\n } "cf05f31f";\r\n } "62bf6f61";\r\n } "9ab3add7";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de36b(src, tgt) "b4115e85";\r\n } "a80a9c42";\r\n } "7cf10a5a";\r\n } "a41011e3";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de36c(src, tgt) "714801e7";\r\n } "aed593a3";\r\n } "10ad35b3";\r\n } "c7681e2f";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb14s2de38(src, tgt) "695d29c8";\r\n } "dd9951a6";\r\n } "dbe4c0ed";\r\n } "046ea4db";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de44t(src, tgt) "54047125";\r\n } "67759d25";\r\n } "b7a4c6f7";\r\n } "2df98dca";\r\n } "39bf7130";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE44').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de44f(src, tgt) "ff18b722";\r\n } "7ce88931";\r\n } "d99ebaca";\r\n } "e398081f";\r\n } "0b39dd54";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de45t(src, tgt) "3db9ce97";\r\n } "2b1d1228";\r\n } "694fcde8";\r\n } "8d2528b2";\r\n } "5702646c";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE45').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de45f(src, tgt) "00fcb42e";\r\n } "be31bcba";\r\n } "b54e492c";\r\n } "84ddf53c";\r\n } "71ef3401";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de46t(src, tgt) "10098170";\r\n } "321eb396";\r\n } "84fc742e";\r\n } "75bfd082";\r\n } "9a6c19cd";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE46').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de46f(src, tgt) "6aa2bb98";\r\n } "71cfb393";\r\n } "05fac2b4";\r\n } "f1cb924b";\r\n } "d52ab655";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47') then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de47t(src, tgt) "5e647793";\r\n } "f179975e";\r\n } "c179f0cb";\r\n } "630de842";\r\n } "2a472f41";\r\n src where src.item.where(linkId = 'EmCare.B14S2.DE43').exists() and src.item.where(linkId = 'EmCare.B14S2.DE43').answer.where(value.code = 'EmCare.B14S2.DE47').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb14s2de43emcareb14s2de47f(src, tgt) "46287011";\r\n } "19fb566f";\r\n } "4464667a";\r\n } "ff1524d9";\r\n } "1d4733d3";\r\n src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb15s2de01(src, tgt) "0e40abb2";\r\n } "6b463abd";\r\n } "75a9eb5b";\r\n } "f3f997c1";\r\n src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb15s2de09(src, tgt) "41e89548";\r\n } "fbbb4fbf";\r\n } "ba468419";\r\n } "91fe7c34";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE03' "code-emcareb10s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s2de03";\r\n } "bdab9370";\r\n } "f8989270";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE04' "code-emcareb10s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s2de04";\r\n } "bdab9370";\r\n } "84e99b62";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE05' "code-emcareb10s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s2de05";\r\n } "bdab9370";\r\n } "822a6b5c";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE06' "code-emcareb10s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B10S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb10s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb10s2de06";\r\n } "bdab9370";\r\n } "ccfb93d4";\r\n}\r\n\r\ngroup emcareobservationemcareb10s2de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb10s2de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B10S2.DE07' "code-emcareb10s2de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n itm1.item first as item where (linkId = 'EmCare.B10S2.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "eef20b5e";\r\n } "c5b03c7d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "52679414";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s2de06";\r\n } "bdab9370";\r\n } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb17s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE01' "code-emcareb17s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb17s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb17s1de01";\r\n } "bdab9370";\r\n } "11b37b57";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb17s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE02' "code-emcareb17s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "239f6c79";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb17s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE06' "code-emcareb17s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb17s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb17s1de06";\r\n } "bdab9370";\r\n } "2dd51df6";\r\n}\r\n\r\ngroup emcareobservationemcareb17s1de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb17s1de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B17S1.DE07' "code-emcareb17s1de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B17S1.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "21ffdb9d";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE01' "code-emcareb13s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb13s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb13s2de01";\r\n } "bdab9370";\r\n } "eabd29fd";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE02' "code-emcareb13s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb13s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb13s2de02";\r\n } "bdab9370";\r\n } "5b651554";\r\n}\r\n\r\ngroup emcareobservationemcareb13s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb13s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B13S2.DE03' "code-emcareb13s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B13S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b937d9f0";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb12s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S2.DE01' "code-emcareb12s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B12S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb12s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb12s2de01";\r\n } "bdab9370";\r\n } "de146d59";\r\n}\r\n\r\ngroup emcareobservationemcareb12s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb12s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B12S2.DE05' "code-emcareb12s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B12S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb12s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb12s2de05";\r\n } "bdab9370";\r\n } "c913991e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE01' "code-emcareb14s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de01";\r\n } "bdab9370";\r\n } "ffbd856e";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE02' "code-emcareb14s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de02";\r\n } "bdab9370";\r\n } "0fee727b";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE03' "code-emcareb14s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de03";\r\n } "bdab9370";\r\n } "35101ce1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE04' "code-emcareb14s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de04";\r\n } "bdab9370";\r\n } "b57020c5";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE05' "code-emcareb14s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de05";\r\n } "bdab9370";\r\n } "0b745de8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de07f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE07' "code-emcareobservationemcareb14s2de06emcareb14s2de07f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de08f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE08' "code-emcareobservationemcareb14s2de06emcareb14s2de08f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de06emcareb14s2de09f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE06&EmCare.B14S2.DE09' "code-emcareobservationemcareb14s2de06emcareb14s2de09f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de10(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE10' "code-emcareb14s2de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de10";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de10";\r\n } "bdab9370";\r\n } "686fa0c0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de11(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de11";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE11' "code-emcareb14s2de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE11') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de11";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de11";\r\n } "bdab9370";\r\n } "9d9704d8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE12' "code-emcareb14s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de12";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de12";\r\n } "bdab9370";\r\n } "51199b07";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE18' "code-emcareobservationemcareb14s2de13emcareb14s2de18f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE19' "code-emcareobservationemcareb14s2de13emcareb14s2de19f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE21' "code-emcareobservationemcareb14s2de13emcareb14s2de21f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE22' "code-emcareobservationemcareb14s2de13emcareb14s2de22f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de23f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE23' "code-emcareobservationemcareb14s2de13emcareb14s2de23f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de25f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE25' "code-emcareobservationemcareb14s2de13emcareb14s2de25f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de31f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE31' "code-emcareobservationemcareb14s2de13emcareb14s2de31f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de32f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE32' "code-emcareobservationemcareb14s2de13emcareb14s2de32f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de33f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE33' "code-emcareobservationemcareb14s2de13emcareb14s2de33f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de35f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE35' "code-emcareobservationemcareb14s2de13emcareb14s2de35f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de36f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE36' "code-emcareobservationemcareb14s2de13emcareb14s2de36f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de13emcareb14s2de37f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE13&EmCare.B14S2.DE37' "code-emcareobservationemcareb14s2de13emcareb14s2de37f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de19a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de19a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE19a' "code-emcareb14s2de19a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE19a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de19a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de19a";\r\n } "bdab9370";\r\n } "7704f1e6";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de22a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de22a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE22A' "code-emcareb14s2de22a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE22A') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de22a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de22a";\r\n } "bdab9370";\r\n } "34b4bff4";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de23a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de23a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE23a' "code-emcareb14s2de23a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE23a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de23a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de23a";\r\n } "bdab9370";\r\n } "cbc06169";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de24(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de24";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE24' "code-emcareb14s2de24";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE24') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de24";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de24";\r\n } "bdab9370";\r\n } "a8bffbd0";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE30' "code-emcareb14s2de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de30";\r\n } "bdab9370";\r\n } "5c4c116c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de30b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de30b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE30b' "code-emcareb14s2de30b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE30b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de30b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de30b";\r\n } "bdab9370";\r\n } "b2203142";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de31a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE31a' "code-emcareb14s2de31a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE31a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de31a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de31a";\r\n } "bdab9370";\r\n } "c1d62dd8";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de31b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de31b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE31b' "code-emcareb14s2de31b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE31b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de31b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de31b";\r\n } "bdab9370";\r\n } "53c39908";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de32a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de32a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE32a' "code-emcareb14s2de32a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE32a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de32a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de32a";\r\n } "bdab9370";\r\n } "a295ad88";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE34' "code-emcareb14s2de34";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de34";\r\n } "bdab9370";\r\n } "6bc4a7ea";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de36a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36a' "code-emcareb14s2de36a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de36a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de36a";\r\n } "bdab9370";\r\n } "72b21d5c";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de36b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36b' "code-emcareb14s2de36b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de36b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de36b";\r\n } "bdab9370";\r\n } "d3720173";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de36c(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de36c";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE36c' "code-emcareb14s2de36c";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE36c') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb14s2de36c";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb14s2de36c";\r\n } "bdab9370";\r\n } "4f384bfd";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de38(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb14s2de38";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE38' "code-emcareb14s2de38";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B14S2.DE38') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "d40efaa7";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de44f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE44' "code-emcareobservationemcareb14s2de43emcareb14s2de44f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de45f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE45' "code-emcareobservationemcareb14s2de43emcareb14s2de45f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de46f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE46' "code-emcareobservationemcareb14s2de43emcareb14s2de46f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb14s2de43emcareb14s2de47f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B14S2.DE43&EmCare.B14S2.DE47' "code-emcareobservationemcareb14s2de43emcareb14s2de47f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb15s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B15S2.DE01' "code-emcareb15s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B15S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "aa55388e";\r\n}\r\n\r\ngroup emcareobservationemcareb15s2de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb15s2de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B15S2.DE09' "code-emcareb15s2de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B15S2.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "2a2ced9b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b10-16.signs.2m.p" = "Ccc.b10-16.signs.2m.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s2de03(src, tgt) "9be992ee";\r\n } "36f7a9cc";\r\n } "079b8b98";\r\n } "366acbd3";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s2de04(src, tgt) "22bcca4b";\r\n } "32ccd4c5";\r\n } "a7c78146";\r\n } "b19e39bf";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s2de05(src, tgt) "1d8e3cbc";\r\n } "bf103e1e";\r\n } "76d6b934";\r\n } "98782720";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s2de06(src, tgt) "c80bf08a";\r\n } "1045a48d";\r\n } "3d816032";\r\n } "530045b2";\r\n src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n itm1.item first as item where (linkId = 'Ccc.B10S2.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb10s2de07(src, tgt) "8ed85169";\r\n } "115f4673";\r\n } "c898e9da";\r\n } "b4fdeee3";\r\n } "92a14f88";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de01(src, tgt) "571f12fb";\r\n } "df9369ca";\r\n } "b1634b07";\r\n } "bf55dba7";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de02(src, tgt) "35df08c4";\r\n } "52eb002b";\r\n } "c096f5b2";\r\n } "f35e6a90";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de06(src, tgt) "048f10f9";\r\n } "011caec9";\r\n } "431cd0b3";\r\n } "5a3f8e99";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb17s1de01(src, tgt) "13df0b77";\r\n } "ebf73588";\r\n } "4de1b457";\r\n } "eb36da14";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb17s1de02(src, tgt) "df66de05";\r\n } "cef4a910";\r\n } "7a411b35";\r\n } "f5194f29";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb17s1de06(src, tgt) "7dcc4fe7";\r\n } "57c20bc9";\r\n } "a315006a";\r\n } "371f2fa4";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb17s1de07(src, tgt) "6d9d7efe";\r\n } "666ea04b";\r\n } "555380a9";\r\n } "6484a938";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s2de01(src, tgt) "988862af";\r\n } "6071237c";\r\n } "b8724cd8";\r\n } "06c49c87";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s2de02(src, tgt) "f885cd9f";\r\n } "56652867";\r\n } "d0f4b9f9";\r\n } "530eefb8";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb13s2de03(src, tgt) "e686d739";\r\n } "c2d82e76";\r\n } "1aafb16b";\r\n } "9b54ee4f";\r\n src.item first as item where (linkId = 'Ccc.B12S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb12s2de01(src, tgt) "d9032a0e";\r\n } "471ac9ec";\r\n } "364c39dc";\r\n } "387028ff";\r\n src.item first as item where (linkId = 'Ccc.B12S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb12s2de05(src, tgt) "b4d067ef";\r\n } "260342c7";\r\n } "bd3ec4be";\r\n } "325408a5";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de01(src, tgt) "3c803bdc";\r\n } "8df3ea2e";\r\n } "f8052c53";\r\n } "91d8a216";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de02(src, tgt) "e05b3a93";\r\n } "0c924a74";\r\n } "56da7549";\r\n } "2aa25144";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de03(src, tgt) "9ccb1879";\r\n } "017fcd3f";\r\n } "05f51940";\r\n } "7c588606";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de04(src, tgt) "0e9ceef0";\r\n } "083b89d9";\r\n } "776651be";\r\n } "9007e632";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de05(src, tgt) "7f44dd5a";\r\n } "c001deab";\r\n } "280ba472";\r\n } "c672d1b7";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de07t(src, tgt) "37b45a1a";\r\n } "971c989b";\r\n } "f56a8acb";\r\n } "f0e0c1c7";\r\n } "2caf0a2d";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').exists() and src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE07').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de07f(src, tgt) "ed6e13a0";\r\n } "52c7fa66";\r\n } "81854047";\r\n } "a9b43d6e";\r\n } "fed21ad9";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE08') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de08t(src, tgt) "31d968a5";\r\n } "05db12b8";\r\n } "adbfce41";\r\n } "89575f40";\r\n } "294cc680";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').exists() and src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE08').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de08f(src, tgt) "1a79fb79";\r\n } "3f5690dd";\r\n } "a36f6b02";\r\n } "3d64a953";\r\n } "37580d33";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE09') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de09t(src, tgt) "28edea0e";\r\n } "7f261203";\r\n } "a883e98f";\r\n } "158e3fbb";\r\n } "e1eb3d64";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE06').exists() and src.item.where(linkId = 'Ccc.B14S2.DE06').answer.where(value.code = 'Ccc.B14S2.DE09').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de06Cccb14s2de09f(src, tgt) "838bc2fd";\r\n } "fe14ec44";\r\n } "e465613c";\r\n } "7ec9bbca";\r\n } "ae01960a";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de10(src, tgt) "c7bb4c66";\r\n } "f8c64c2f";\r\n } "b824f2ed";\r\n } "76d01623";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE11') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de11(src, tgt) "075dfab4";\r\n } "e7decefb";\r\n } "258af3ea";\r\n } "0a0c8d1d";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de12(src, tgt) "5c4fb26d";\r\n } "8b35df2f";\r\n } "1def7e4a";\r\n } "23fadae9";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE18') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de18t(src, tgt) "441e433a";\r\n } "c6a25fe8";\r\n } "3ce60159";\r\n } "d174fa68";\r\n } "ac7d700b";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE18').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de18f(src, tgt) "97a383dc";\r\n } "2dc8d6f1";\r\n } "e831d44b";\r\n } "01b18454";\r\n } "451ac430";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE19') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de19t(src, tgt) "176edab8";\r\n } "6066f6c8";\r\n } "983ce7ec";\r\n } "19ed849e";\r\n } "3852f24c";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE19').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de19f(src, tgt) "817f40b1";\r\n } "be332abb";\r\n } "5233dec2";\r\n } "b6313d6e";\r\n } "a8b58d8a";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE21') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de21t(src, tgt) "aa5b0432";\r\n } "0ec5642c";\r\n } "0d215d93";\r\n } "4854d5df";\r\n } "ae0dcf93";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE21').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de21f(src, tgt) "e4468f91";\r\n } "cd3aebda";\r\n } "13f1b93a";\r\n } "c43d8495";\r\n } "15560381";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE22') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de22t(src, tgt) "ab612b0e";\r\n } "5f99713d";\r\n } "0f879b99";\r\n } "8071df60";\r\n } "c9c52b13";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE22').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de22f(src, tgt) "123f16cb";\r\n } "6839cab1";\r\n } "cd6d3ddf";\r\n } "ab20fd0d";\r\n } "1392af91";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE23') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de23t(src, tgt) "a59d13f2";\r\n } "6fa9b4c3";\r\n } "a59cf8e8";\r\n } "d5f2929d";\r\n } "0b62df00";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE23').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de23f(src, tgt) "6596445b";\r\n } "960ec6df";\r\n } "388ca68d";\r\n } "25b5d6b1";\r\n } "87288d6a";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE25') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de25t(src, tgt) "072f0d04";\r\n } "bdb49f20";\r\n } "1ac2bcc1";\r\n } "43511064";\r\n } "6a58313a";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE25').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de25f(src, tgt) "81e79970";\r\n } "224b2fb2";\r\n } "021a8b72";\r\n } "368d9ecb";\r\n } "8441e89f";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE31') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de31t(src, tgt) "b35eaf3c";\r\n } "a1596adf";\r\n } "bab60838";\r\n } "17feed2f";\r\n } "4912861f";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE31').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de31f(src, tgt) "0c07de59";\r\n } "8c4edf8a";\r\n } "f51215d7";\r\n } "76689bf7";\r\n } "f8037952";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE32') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de32t(src, tgt) "304d4aab";\r\n } "6fe3eb64";\r\n } "14dd9fb8";\r\n } "a671b882";\r\n } "1c1c4815";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE32').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de32f(src, tgt) "6f919233";\r\n } "5708f6bd";\r\n } "833ec3a9";\r\n } "cdb61927";\r\n } "3a489200";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE33') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de33t(src, tgt) "0b3f6de9";\r\n } "980b8c8b";\r\n } "94d31e8a";\r\n } "d37d7b65";\r\n } "d888db70";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE33').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de33f(src, tgt) "8660b336";\r\n } "dd13171e";\r\n } "3580783e";\r\n } "d31d16ef";\r\n } "e3f7e3de";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE35') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de35t(src, tgt) "fdc56916";\r\n } "83c3b9d5";\r\n } "19244b4d";\r\n } "97672cc7";\r\n } "0ba97eaa";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE35').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de35f(src, tgt) "aca6e81a";\r\n } "c68620da";\r\n } "be69b7d3";\r\n } "12e78229";\r\n } "a1231c31";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE36') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de36t(src, tgt) "ac250feb";\r\n } "e61326dd";\r\n } "9cab4235";\r\n } "cc1e3733";\r\n } "fd0dd1e1";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE36').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de36f(src, tgt) "6c995c67";\r\n } "b2720395";\r\n } "061de0de";\r\n } "e329544f";\r\n } "6190a03e";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE37') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de37t(src, tgt) "e70adb73";\r\n } "4bc7d51a";\r\n } "cd87f1e7";\r\n } "66356988";\r\n } "1d47d233";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE13').exists() and src.item.where(linkId = 'Ccc.B14S2.DE13').answer.where(value.code = 'Ccc.B14S2.DE37').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de13Cccb14s2de37f(src, tgt) "216b6583";\r\n } "191d63ec";\r\n } "f1af8fee";\r\n } "9b50cdfb";\r\n } "1e5890e8";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE19a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de19a(src, tgt) "001e9c80";\r\n } "d2eb23fb";\r\n } "f21f5e42";\r\n } "0b69df95";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE22A') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de22a(src, tgt) "bccd876e";\r\n } "95095060";\r\n } "255ee6cb";\r\n } "d708ca5c";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE23a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de23a(src, tgt) "d2d3bcd4";\r\n } "990f2716";\r\n } "b0df7a91";\r\n } "c2f9a858";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE24') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de24(src, tgt) "fd1e1903";\r\n } "8deeed15";\r\n } "711ceb12";\r\n } "2394e366";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de30(src, tgt) "48133b0b";\r\n } "b13f149c";\r\n } "e8395f1e";\r\n } "a612d3de";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE30b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de30b(src, tgt) "e092d9f2";\r\n } "49fe0265";\r\n } "f83e6d8d";\r\n } "ee1ec67e";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE31a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de31a(src, tgt) "e36dddc9";\r\n } "dd872982";\r\n } "ec36bfb0";\r\n } "09b48cf7";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE31b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de31b(src, tgt) "a400e31e";\r\n } "29aa3e32";\r\n } "4d8d5769";\r\n } "8023b5d8";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE32a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de32a(src, tgt) "ebc4362a";\r\n } "7b8431db";\r\n } "63050b98";\r\n } "7898f754";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de34(src, tgt) "1b1e3f3d";\r\n } "92cdef51";\r\n } "0f34721b";\r\n } "5f2fd5be";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de36a(src, tgt) "3a34cb4f";\r\n } "cf05f31f";\r\n } "62bf6f61";\r\n } "9ab3add7";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de36b(src, tgt) "b4115e85";\r\n } "a80a9c42";\r\n } "7cf10a5a";\r\n } "a41011e3";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36c') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de36c(src, tgt) "714801e7";\r\n } "aed593a3";\r\n } "10ad35b3";\r\n } "c7681e2f";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb14s2de38(src, tgt) "695d29c8";\r\n } "dd9951a6";\r\n } "dbe4c0ed";\r\n } "046ea4db";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE44') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de44t(src, tgt) "54047125";\r\n } "67759d25";\r\n } "b7a4c6f7";\r\n } "2df98dca";\r\n } "39bf7130";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').exists() and src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE44').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de44f(src, tgt) "ff18b722";\r\n } "7ce88931";\r\n } "d99ebaca";\r\n } "e398081f";\r\n } "0b39dd54";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE45') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de45t(src, tgt) "3db9ce97";\r\n } "2b1d1228";\r\n } "694fcde8";\r\n } "8d2528b2";\r\n } "5702646c";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').exists() and src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE45').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de45f(src, tgt) "00fcb42e";\r\n } "be31bcba";\r\n } "b54e492c";\r\n } "84ddf53c";\r\n } "71ef3401";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE46') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de46t(src, tgt) "10098170";\r\n } "321eb396";\r\n } "84fc742e";\r\n } "75bfd082";\r\n } "9a6c19cd";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').exists() and src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE46').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de46f(src, tgt) "6aa2bb98";\r\n } "71cfb393";\r\n } "05fac2b4";\r\n } "f1cb924b";\r\n } "d52ab655";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE47') then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de47t(src, tgt) "5e647793";\r\n } "f179975e";\r\n } "c179f0cb";\r\n } "630de842";\r\n } "2a472f41";\r\n src where src.item.where(linkId = 'Ccc.B14S2.DE43').exists() and src.item.where(linkId = 'Ccc.B14S2.DE43').answer.where(value.code = 'Ccc.B14S2.DE47').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE43') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb14s2de43Cccb14s2de47f(src, tgt) "46287011";\r\n } "19fb566f";\r\n } "4464667a";\r\n } "ff1524d9";\r\n } "1d4733d3";\r\n src.item first as item where (linkId = 'Ccc.B15S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb15s2de01(src, tgt) "0e40abb2";\r\n } "6b463abd";\r\n } "75a9eb5b";\r\n } "f3f997c1";\r\n src.item first as item where (linkId = 'Ccc.B15S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb15s2de09(src, tgt) "41e89548";\r\n } "fbbb4fbf";\r\n } "ba468419";\r\n } "91fe7c34";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n}\r\n\r\ngroup CccobservationCccb10s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S2.DE03' "code-Cccb10s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s2de03";\r\n } "bdab9370";\r\n } "f8989270";\r\n}\r\n\r\ngroup CccobservationCccb10s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S2.DE04' "code-Cccb10s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s2de04";\r\n } "bdab9370";\r\n } "84e99b62";\r\n}\r\n\r\ngroup CccobservationCccb10s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S2.DE05' "code-Cccb10s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s2de05";\r\n } "bdab9370";\r\n } "822a6b5c";\r\n}\r\n\r\ngroup CccobservationCccb10s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S2.DE06' "code-Cccb10s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B10S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb10s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb10s2de06";\r\n } "bdab9370";\r\n } "ccfb93d4";\r\n}\r\n\r\ngroup CccobservationCccb10s2de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb10s2de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B10S2.DE07' "code-Cccb10s2de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Oxygen_Saturation' then {\r\n itm1.item first as item where (linkId = 'Ccc.B10S2.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "eef20b5e";\r\n } "c5b03c7d";\r\n}\r\n\r\ngroup CccobservationCccb11s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE01' "code-Cccb11s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "52679414";\r\n}\r\n\r\ngroup CccobservationCccb11s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE02' "code-Cccb11s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "73bc942d";\r\n}\r\n\r\ngroup CccobservationCccb11s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE06' "code-Cccb11s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s2de06";\r\n } "bdab9370";\r\n } "47e72c0c";\r\n}\r\n\r\ngroup CccobservationCccb17s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb17s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B17S1.DE01' "code-Cccb17s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb17s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb17s1de01";\r\n } "bdab9370";\r\n } "11b37b57";\r\n}\r\n\r\ngroup CccobservationCccb17s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb17s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B17S1.DE02' "code-Cccb17s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "239f6c79";\r\n}\r\n\r\ngroup CccobservationCccb17s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb17s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B17S1.DE06' "code-Cccb17s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb17s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb17s1de06";\r\n } "bdab9370";\r\n } "2dd51df6";\r\n}\r\n\r\ngroup CccobservationCccb17s1de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb17s1de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B17S1.DE07' "code-Cccb17s1de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B17S1.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "21ffdb9d";\r\n}\r\n\r\ngroup CccobservationCccb13s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S2.DE01' "code-Cccb13s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s2de01";\r\n } "bdab9370";\r\n } "eabd29fd";\r\n}\r\n\r\ngroup CccobservationCccb13s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S2.DE02' "code-Cccb13s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb13s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb13s2de02";\r\n } "bdab9370";\r\n } "5b651554";\r\n}\r\n\r\ngroup CccobservationCccb13s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb13s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B13S2.DE03' "code-Cccb13s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B13S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b937d9f0";\r\n}\r\n\r\ngroup CccobservationCccb12s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B12S2.DE01' "code-Cccb12s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B12S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s2de01";\r\n } "bdab9370";\r\n } "de146d59";\r\n}\r\n\r\ngroup CccobservationCccb12s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb12s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B12S2.DE05' "code-Cccb12s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B12S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb12s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb12s2de05";\r\n } "bdab9370";\r\n } "c913991e";\r\n}\r\n\r\ngroup CccobservationCccb14s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE01' "code-Cccb14s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de01";\r\n } "bdab9370";\r\n } "ffbd856e";\r\n}\r\n\r\ngroup CccobservationCccb14s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE02' "code-Cccb14s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de02";\r\n } "bdab9370";\r\n } "0fee727b";\r\n}\r\n\r\ngroup CccobservationCccb14s2de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE03' "code-Cccb14s2de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de03";\r\n } "bdab9370";\r\n } "35101ce1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE04' "code-Cccb14s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de04";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de04";\r\n } "bdab9370";\r\n } "b57020c5";\r\n}\r\n\r\ngroup CccobservationCccb14s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE05' "code-Cccb14s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de05";\r\n } "bdab9370";\r\n } "0b745de8";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de07t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de07t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE07' "code-CccobservationCccb14s2de06Cccb14s2de07t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de07f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de07f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE07' "code-CccobservationCccb14s2de06Cccb14s2de07f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de08t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de08t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE08' "code-CccobservationCccb14s2de06Cccb14s2de08t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de08f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de08f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE08' "code-CccobservationCccb14s2de06Cccb14s2de08f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de09t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de09t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE09' "code-CccobservationCccb14s2de06Cccb14s2de09t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de06Cccb14s2de09f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de06Cccb14s2de09f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE06&Ccc.B14S2.DE09' "code-CccobservationCccb14s2de06Cccb14s2de09f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de10(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE10' "code-Cccb14s2de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de10";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de10";\r\n } "bdab9370";\r\n } "686fa0c0";\r\n}\r\n\r\ngroup CccobservationCccb14s2de11(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de11";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE11' "code-Cccb14s2de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE11') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de11";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de11";\r\n } "bdab9370";\r\n } "9d9704d8";\r\n}\r\n\r\ngroup CccobservationCccb14s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE12' "code-Cccb14s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de12";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de12";\r\n } "bdab9370";\r\n } "51199b07";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE18' "code-CccobservationCccb14s2de13Cccb14s2de18t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE18' "code-CccobservationCccb14s2de13Cccb14s2de18f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE19' "code-CccobservationCccb14s2de13Cccb14s2de19t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE19' "code-CccobservationCccb14s2de13Cccb14s2de19f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE21' "code-CccobservationCccb14s2de13Cccb14s2de21t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE21' "code-CccobservationCccb14s2de13Cccb14s2de21f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE22' "code-CccobservationCccb14s2de13Cccb14s2de22t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE22' "code-CccobservationCccb14s2de13Cccb14s2de22f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de23t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de23t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE23' "code-CccobservationCccb14s2de13Cccb14s2de23t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de23f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de23f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE23' "code-CccobservationCccb14s2de13Cccb14s2de23f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de25t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de25t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE25' "code-CccobservationCccb14s2de13Cccb14s2de25t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de25f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de25f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE25' "code-CccobservationCccb14s2de13Cccb14s2de25f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de31t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de31t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE31' "code-CccobservationCccb14s2de13Cccb14s2de31t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de31f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de31f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE31' "code-CccobservationCccb14s2de13Cccb14s2de31f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de32t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de32t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE32' "code-CccobservationCccb14s2de13Cccb14s2de32t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de32f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de32f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE32' "code-CccobservationCccb14s2de13Cccb14s2de32f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de33t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de33t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE33' "code-CccobservationCccb14s2de13Cccb14s2de33t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de33f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de33f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE33' "code-CccobservationCccb14s2de13Cccb14s2de33f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de35t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de35t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE35' "code-CccobservationCccb14s2de13Cccb14s2de35t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de35f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de35f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE35' "code-CccobservationCccb14s2de13Cccb14s2de35f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de36t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de36t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE36' "code-CccobservationCccb14s2de13Cccb14s2de36t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de36f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de36f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE36' "code-CccobservationCccb14s2de13Cccb14s2de36f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de37t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de37t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE37' "code-CccobservationCccb14s2de13Cccb14s2de37t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de13Cccb14s2de37f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de13Cccb14s2de37f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE13&Ccc.B14S2.DE37' "code-CccobservationCccb14s2de13Cccb14s2de37f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de19a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de19a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE19a' "code-Cccb14s2de19a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE19a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de19a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de19a";\r\n } "bdab9370";\r\n } "7704f1e6";\r\n}\r\n\r\ngroup CccobservationCccb14s2de22a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de22a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE22A' "code-Cccb14s2de22a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE22A') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de22a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de22a";\r\n } "bdab9370";\r\n } "34b4bff4";\r\n}\r\n\r\ngroup CccobservationCccb14s2de23a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de23a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE23a' "code-Cccb14s2de23a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE23a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de23a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de23a";\r\n } "bdab9370";\r\n } "cbc06169";\r\n}\r\n\r\ngroup CccobservationCccb14s2de24(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de24";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE24' "code-Cccb14s2de24";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE24') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de24";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de24";\r\n } "bdab9370";\r\n } "a8bffbd0";\r\n}\r\n\r\ngroup CccobservationCccb14s2de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE30' "code-Cccb14s2de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de30";\r\n } "bdab9370";\r\n } "5c4c116c";\r\n}\r\n\r\ngroup CccobservationCccb14s2de30b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de30b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE30b' "code-Cccb14s2de30b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE30b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de30b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de30b";\r\n } "bdab9370";\r\n } "b2203142";\r\n}\r\n\r\ngroup CccobservationCccb14s2de31a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de31a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE31a' "code-Cccb14s2de31a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE31a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de31a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de31a";\r\n } "bdab9370";\r\n } "c1d62dd8";\r\n}\r\n\r\ngroup CccobservationCccb14s2de31b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de31b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE31b' "code-Cccb14s2de31b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE31b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de31b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de31b";\r\n } "bdab9370";\r\n } "53c39908";\r\n}\r\n\r\ngroup CccobservationCccb14s2de32a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de32a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE32a' "code-Cccb14s2de32a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE32a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de32a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de32a";\r\n } "bdab9370";\r\n } "a295ad88";\r\n}\r\n\r\ngroup CccobservationCccb14s2de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE34' "code-Cccb14s2de34";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de34";\r\n } "bdab9370";\r\n } "6bc4a7ea";\r\n}\r\n\r\ngroup CccobservationCccb14s2de36a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de36a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE36a' "code-Cccb14s2de36a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de36a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de36a";\r\n } "bdab9370";\r\n } "72b21d5c";\r\n}\r\n\r\ngroup CccobservationCccb14s2de36b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de36b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE36b' "code-Cccb14s2de36b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de36b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de36b";\r\n } "bdab9370";\r\n } "d3720173";\r\n}\r\n\r\ngroup CccobservationCccb14s2de36c(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de36c";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE36c' "code-Cccb14s2de36c";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE36c') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb14s2de36c";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb14s2de36c";\r\n } "bdab9370";\r\n } "4f384bfd";\r\n}\r\n\r\ngroup CccobservationCccb14s2de38(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb14s2de38";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE38' "code-Cccb14s2de38";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B14S2.DE38') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "d40efaa7";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de44t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de44t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE44' "code-CccobservationCccb14s2de43Cccb14s2de44t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de44f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de44f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE44' "code-CccobservationCccb14s2de43Cccb14s2de44f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de45t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de45t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE45' "code-CccobservationCccb14s2de43Cccb14s2de45t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de45f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de45f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE45' "code-CccobservationCccb14s2de43Cccb14s2de45f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de46t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de46t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE46' "code-CccobservationCccb14s2de43Cccb14s2de46t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de46f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de46f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE46' "code-CccobservationCccb14s2de43Cccb14s2de46f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de47t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de47t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE47' "code-CccobservationCccb14s2de43Cccb14s2de47t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb14s2de43Cccb14s2de47f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb14s2de43Cccb14s2de47f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B14S2.DE43&Ccc.B14S2.DE47' "code-CccobservationCccb14s2de43Cccb14s2de47f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb15s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb15s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B15S2.DE01' "code-Cccb15s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B15S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "aa55388e";\r\n}\r\n\r\ngroup CccobservationCccb15s2de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb15s2de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B15S2.DE09' "code-Cccb15s2de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B15S2.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "2a2ced9b";\r\n}\r\n\r\ngroup CccobservationCccb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup CccobservationCccb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup CccobservationCccb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup CccobservationCccb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup CccobservationCccb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b18-21.signs.2m.m" = "emcare.b18-21.signs.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb18s2de07(src, tgt) "ca6d2440";\r\n } "4d3562ea";\r\n } "1f5e2e49";\r\n } "eeb88b76";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb18s2de08(src, tgt) "c262db3f";\r\n } "f43b4802";\r\n } "b192f8b8";\r\n } "45ffea94";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb18s2de12(src, tgt) "6f6b2618";\r\n } "09f8d74d";\r\n } "5e6747fd";\r\n } "8665f72f";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb18s2de13(src, tgt) "80759c57";\r\n } "f658f964";\r\n } "30291a87";\r\n } "5c0dbbd7";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb19s2de01(src, tgt) "732434fb";\r\n } "a79173fe";\r\n } "355d3980";\r\n } "55fa8d66";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb19s2de02(src, tgt) "19b33283";\r\n } "723e7b39";\r\n } "ab195945";\r\n } "a451ea64";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb19s2de04(src, tgt) "5f959962";\r\n } "ec59f51c";\r\n } "08a1cfa8";\r\n } "3bb01182";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de01(src, tgt) "571f12fb";\r\n } "df9369ca";\r\n } "b1634b07";\r\n } "bf55dba7";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de02(src, tgt) "35df08c4";\r\n } "52eb002b";\r\n } "c096f5b2";\r\n } "f35e6a90";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s2de06(src, tgt) "048f10f9";\r\n } "011caec9";\r\n } "431cd0b3";\r\n } "5a3f8e99";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de01(src, tgt) "94478be1";\r\n } "2cf57502";\r\n } "a5752431";\r\n } "431eb374";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de05(src, tgt) "8cbd2b43";\r\n } "04b19cec";\r\n } "1e478ba6";\r\n } "a6ecc4b7";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de06(src, tgt) "2d3c82db";\r\n } "d38f9e09";\r\n } "18c5885a";\r\n } "3a24e445";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de08(src, tgt) "f361a68d";\r\n } "5189a3f8";\r\n } "a0b4c2bc";\r\n } "79ee0a37";\r\n src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11') then {\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb21s2de09emcareb21s2de11t(src, tgt) "a9a122af";\r\n } "d7f85848";\r\n } "6de484e0";\r\n } "37c1ad1e";\r\n } "7d349d00";\r\n src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE11').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb21s2de09emcareb21s2de11f(src, tgt) "d1d28f86";\r\n } "d67305e0";\r\n } "653bf0a8";\r\n } "4899742e";\r\n } "e01f9812";\r\n src where src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10') then {\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb21s2de09emcareb21s2de10t(src, tgt) "8e89324d";\r\n } "93674a9a";\r\n } "aa6f3f2f";\r\n } "94e88b7c";\r\n } "9864ed15";\r\n src where src.item.where(linkId = 'EmCare.B21S2.DE09').exists() and src.item.where(linkId = 'EmCare.B21S2.DE09').answer.where(value.code = 'EmCare.B21S2.DE10').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb21s2de09emcareb21s2de10f(src, tgt) "b433f49e";\r\n } "e8c61eb0";\r\n } "fa7e3d84";\r\n } "68af5a34";\r\n } "e81b6afa";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de12(src, tgt) "8f04b3ac";\r\n } "b1374c84";\r\n } "8cb03aa0";\r\n } "e2b672db";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de13(src, tgt) "0aaf1ecd";\r\n } "695ddd29";\r\n } "64398d2e";\r\n } "e854f1bd";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de15(src, tgt) "7858a431";\r\n } "43de516f";\r\n } "e494830e";\r\n } "faf9102b";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de16(src, tgt) "b2e4c410";\r\n } "b8bfacf5";\r\n } "9b56be06";\r\n } "be6683f9";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de18(src, tgt) "87a87f89";\r\n } "ecd09b62";\r\n } "af8f5c24";\r\n } "c0db11dc";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de21(src, tgt) "e288e392";\r\n } "ae968910";\r\n } "46cbfc52";\r\n } "8f89318d";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de24(src, tgt) "c746464e";\r\n } "6b52ad04";\r\n } "c7688cc7";\r\n } "668c3c42";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de27(src, tgt) "46c80d1a";\r\n } "1c5eb3d7";\r\n } "c270b0d1";\r\n } "24323941";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de30(src, tgt) "f7a188b4";\r\n } "8891d1a4";\r\n } "ec6c3ef3";\r\n } "5e474dbb";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s2de31(src, tgt) "7b00306c";\r\n } "ded65bf0";\r\n } "6c051e6d";\r\n } "0dac018e";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb18s2de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE07' "code-emcareb18s2de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb18s2de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb18s2de07";\r\n } "bdab9370";\r\n } "03e3bd99";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb18s2de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE08' "code-emcareb18s2de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "0b46e243";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb18s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE12' "code-emcareb18s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb18s2de12";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb18s2de12";\r\n } "bdab9370";\r\n } "c2b6211e";\r\n}\r\n\r\ngroup emcareobservationemcareb18s2de13(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb18s2de13";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S2.DE13' "code-emcareb18s2de13";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B18S2.DE13') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb18s2de13";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb18s2de13";\r\n } "bdab9370";\r\n } "5c58b9dd";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb19s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE01' "code-emcareb19s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb19s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb19s2de01";\r\n } "bdab9370";\r\n } "9cc43da0";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb19s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE02' "code-emcareb19s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb19s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb19s2de02";\r\n } "bdab9370";\r\n } "c6f7f824";\r\n}\r\n\r\ngroup emcareobservationemcareb19s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb19s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B19S2.DE04' "code-emcareb19s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B19S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "42fb84b8";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE01' "code-emcareb11s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s2de01";\r\n } "bdab9370";\r\n } "7fc3f941";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE02' "code-emcareb11s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "73bc942d";\r\n}\r\n\r\ngroup emcareobservationemcareb11s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S2.DE06' "code-emcareb11s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s2de06";\r\n } "bdab9370";\r\n } "47e72c0c";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE01' "code-emcareb21s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = val, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "759a9a54";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "75d5dd53";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE05' "code-emcareb21s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "0d215e07";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE06' "code-emcareb21s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "3a4a4375";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE08' "code-emcareb21s2de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb21s2de08";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb21s2de08";\r\n } "bdab9370";\r\n } "ac3004d0";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de11f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE11' "code-emcareobservationemcareb21s2de09emcareb21s2de11f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de09emcareb21s2de10f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE09&EmCare.B21S2.DE10' "code-emcareobservationemcareb21s2de09emcareb21s2de10f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE12' "code-emcareb21s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "fe73483f";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de13(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de13";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE13' "code-emcareb21s2de13";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE13') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb21s2de13";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb21s2de13";\r\n } "bdab9370";\r\n } "a1265fc3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE15' "code-emcareb21s2de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "1b63fd85";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE16' "code-emcareb21s2de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb21s2de16";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb21s2de16";\r\n } "bdab9370";\r\n } "e00da6e9";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de18(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de18";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE18' "code-emcareb21s2de18";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE18') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "af7f6c69";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE21' "code-emcareb21s2de21";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b4ca78b5";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de24(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de24";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE24' "code-emcareb21s2de24";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE24') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b08f8fe7";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de27(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de27";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE27' "code-emcareb21s2de27";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE27') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "49d85a6e";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE30' "code-emcareb21s2de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb21s2de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb21s2de30";\r\n } "bdab9370";\r\n } "fe4c0b1a";\r\n}\r\n\r\ngroup emcareobservationemcareb21s2de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s2de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S2.DE31' "code-emcareb21s2de31";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S2.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "789ed550";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b18-21.signs.2m.m" = "Ccc.b18-21.signs.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb18s2de07(src, tgt) "ca6d2440";\r\n } "4d3562ea";\r\n } "1f5e2e49";\r\n } "eeb88b76";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb18s2de08(src, tgt) "c262db3f";\r\n } "f43b4802";\r\n } "b192f8b8";\r\n } "45ffea94";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb18s2de12(src, tgt) "6f6b2618";\r\n } "09f8d74d";\r\n } "5e6747fd";\r\n } "8665f72f";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb18s2de13(src, tgt) "80759c57";\r\n } "f658f964";\r\n } "30291a87";\r\n } "5c0dbbd7";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb19s2de01(src, tgt) "732434fb";\r\n } "a79173fe";\r\n } "355d3980";\r\n } "55fa8d66";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb19s2de02(src, tgt) "19b33283";\r\n } "723e7b39";\r\n } "ab195945";\r\n } "a451ea64";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb19s2de04(src, tgt) "5f959962";\r\n } "ec59f51c";\r\n } "08a1cfa8";\r\n } "3bb01182";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de01(src, tgt) "571f12fb";\r\n } "df9369ca";\r\n } "b1634b07";\r\n } "bf55dba7";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de02(src, tgt) "35df08c4";\r\n } "52eb002b";\r\n } "c096f5b2";\r\n } "f35e6a90";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s2de06(src, tgt) "048f10f9";\r\n } "011caec9";\r\n } "431cd0b3";\r\n } "5a3f8e99";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de01(src, tgt) "94478be1";\r\n } "2cf57502";\r\n } "a5752431";\r\n } "431eb374";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de05(src, tgt) "8cbd2b43";\r\n } "04b19cec";\r\n } "1e478ba6";\r\n } "a6ecc4b7";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de06(src, tgt) "2d3c82db";\r\n } "d38f9e09";\r\n } "18c5885a";\r\n } "3a24e445";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de08(src, tgt) "f361a68d";\r\n } "5189a3f8";\r\n } "a0b4c2bc";\r\n } "79ee0a37";\r\n src where src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11') then {\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb21s2de09Cccb21s2de11t(src, tgt) "a9a122af";\r\n } "d7f85848";\r\n } "6de484e0";\r\n } "37c1ad1e";\r\n } "7d349d00";\r\n src where src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE11').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb21s2de09Cccb21s2de11f(src, tgt) "d1d28f86";\r\n } "d67305e0";\r\n } "653bf0a8";\r\n } "4899742e";\r\n } "e01f9812";\r\n src where src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10') then {\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb21s2de09Cccb21s2de10t(src, tgt) "8e89324d";\r\n } "93674a9a";\r\n } "aa6f3f2f";\r\n } "94e88b7c";\r\n } "9864ed15";\r\n src where src.item.where(linkId = 'Ccc.B21S2.DE09').exists() and src.item.where(linkId = 'Ccc.B21S2.DE09').answer.where(value.code = 'Ccc.B21S2.DE10').empty() then {\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb21s2de09Cccb21s2de10f(src, tgt) "b433f49e";\r\n } "e8c61eb0";\r\n } "fa7e3d84";\r\n } "68af5a34";\r\n } "e81b6afa";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de12(src, tgt) "8f04b3ac";\r\n } "b1374c84";\r\n } "8cb03aa0";\r\n } "e2b672db";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de13(src, tgt) "0aaf1ecd";\r\n } "695ddd29";\r\n } "64398d2e";\r\n } "e854f1bd";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de15(src, tgt) "7858a431";\r\n } "43de516f";\r\n } "e494830e";\r\n } "faf9102b";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de16(src, tgt) "b2e4c410";\r\n } "b8bfacf5";\r\n } "9b56be06";\r\n } "be6683f9";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de18(src, tgt) "87a87f89";\r\n } "ecd09b62";\r\n } "af8f5c24";\r\n } "c0db11dc";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de21(src, tgt) "e288e392";\r\n } "ae968910";\r\n } "46cbfc52";\r\n } "8f89318d";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE24') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de24(src, tgt) "c746464e";\r\n } "6b52ad04";\r\n } "c7688cc7";\r\n } "668c3c42";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE27') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de27(src, tgt) "46c80d1a";\r\n } "1c5eb3d7";\r\n } "c270b0d1";\r\n } "24323941";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de30(src, tgt) "f7a188b4";\r\n } "8891d1a4";\r\n } "ec6c3ef3";\r\n } "5e474dbb";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s2de31(src, tgt) "7b00306c";\r\n } "ded65bf0";\r\n } "6c051e6d";\r\n } "0dac018e";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n}\r\n\r\ngroup CccobservationCccb18s2de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb18s2de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B18S2.DE07' "code-Cccb18s2de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb18s2de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb18s2de07";\r\n } "bdab9370";\r\n } "03e3bd99";\r\n}\r\n\r\ngroup CccobservationCccb18s2de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb18s2de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B18S2.DE08' "code-Cccb18s2de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "0b46e243";\r\n}\r\n\r\ngroup CccobservationCccb18s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb18s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B18S2.DE12' "code-Cccb18s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb18s2de12";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb18s2de12";\r\n } "bdab9370";\r\n } "c2b6211e";\r\n}\r\n\r\ngroup CccobservationCccb18s2de13(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb18s2de13";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B18S2.DE13' "code-Cccb18s2de13";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B18S2.DE13') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb18s2de13";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb18s2de13";\r\n } "bdab9370";\r\n } "5c58b9dd";\r\n}\r\n\r\ngroup CccobservationCccb19s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb19s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B19S2.DE01' "code-Cccb19s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb19s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb19s2de01";\r\n } "bdab9370";\r\n } "9cc43da0";\r\n}\r\n\r\ngroup CccobservationCccb19s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb19s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B19S2.DE02' "code-Cccb19s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb19s2de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb19s2de02";\r\n } "bdab9370";\r\n } "c6f7f824";\r\n}\r\n\r\ngroup CccobservationCccb19s2de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb19s2de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B19S2.DE04' "code-Cccb19s2de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B19S2.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "42fb84b8";\r\n}\r\n\r\ngroup CccobservationCccb11s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE01' "code-Cccb11s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s2de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s2de01";\r\n } "bdab9370";\r\n } "7fc3f941";\r\n}\r\n\r\ngroup CccobservationCccb11s2de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE02' "code-Cccb11s2de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "73bc942d";\r\n}\r\n\r\ngroup CccobservationCccb11s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S2.DE06' "code-Cccb11s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s2de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s2de06";\r\n } "bdab9370";\r\n } "47e72c0c";\r\n}\r\n\r\ngroup CccobservationCccb21s2de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE01' "code-Cccb21s2de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n 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";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "75d5dd53";\r\n}\r\n\r\ngroup CccobservationCccb21s2de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE05' "code-Cccb21s2de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "0d215e07";\r\n}\r\n\r\ngroup CccobservationCccb21s2de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE06' "code-Cccb21s2de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "3a4a4375";\r\n}\r\n\r\ngroup CccobservationCccb21s2de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE08' "code-Cccb21s2de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb21s2de08";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb21s2de08";\r\n } "bdab9370";\r\n } "ac3004d0";\r\n}\r\n\r\ngroup CccobservationCccb21s2de09Cccb21s2de11t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb21s2de09Cccb21s2de11t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE09&Ccc.B21S2.DE11' "code-CccobservationCccb21s2de09Cccb21s2de11t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb21s2de09Cccb21s2de11f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb21s2de09Cccb21s2de11f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE09&Ccc.B21S2.DE11' "code-CccobservationCccb21s2de09Cccb21s2de11f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb21s2de09Cccb21s2de10t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb21s2de09Cccb21s2de10t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE09&Ccc.B21S2.DE10' "code-CccobservationCccb21s2de09Cccb21s2de10t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb21s2de09Cccb21s2de10f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb21s2de09Cccb21s2de10f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE09&Ccc.B21S2.DE10' "code-CccobservationCccb21s2de09Cccb21s2de10f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb21s2de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE12' "code-Cccb21s2de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "fe73483f";\r\n}\r\n\r\ngroup CccobservationCccb21s2de13(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de13";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE13' "code-Cccb21s2de13";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE13') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb21s2de13";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb21s2de13";\r\n } "bdab9370";\r\n } "a1265fc3";\r\n}\r\n\r\ngroup CccobservationCccb21s2de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE15' "code-Cccb21s2de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "1b63fd85";\r\n}\r\n\r\ngroup CccobservationCccb21s2de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE16' "code-Cccb21s2de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb21s2de16";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb21s2de16";\r\n } "bdab9370";\r\n } "e00da6e9";\r\n}\r\n\r\ngroup CccobservationCccb21s2de18(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de18";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE18' "code-Cccb21s2de18";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE18') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "af7f6c69";\r\n}\r\n\r\ngroup CccobservationCccb21s2de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE21' "code-Cccb21s2de21";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b4ca78b5";\r\n}\r\n\r\ngroup CccobservationCccb21s2de24(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de24";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE24' "code-Cccb21s2de24";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE24') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b08f8fe7";\r\n}\r\n\r\ngroup CccobservationCccb21s2de27(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de27";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE27' "code-Cccb21s2de27";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE27') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "49d85a6e";\r\n}\r\n\r\ngroup CccobservationCccb21s2de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE30' "code-Cccb21s2de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb21s2de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb21s2de30";\r\n } "bdab9370";\r\n } "fe4c0b1a";\r\n}\r\n\r\ngroup CccobservationCccb21s2de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s2de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S2.DE31' "code-Cccb21s2de31";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S2.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "789ed550";\r\n}\r\n\r\ngroup CccobservationCccb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup CccobservationCccb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup CccobservationCccb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup CccobservationCccb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup CccobservationCccb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b18-21.symptoms.2m.m" = "emcare.b18-21.symptoms.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n } "8dded58a";\r\n } "6d815194";\r\n } "a2e85aba";\r\n src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb18s1de02(src, tgt) "25a99ee2";\r\n } "9a78f7db";\r\n } "94862cbd";\r\n } "49e0dedf";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb11s1de01(src, tgt) "43d4af59";\r\n } "bfd970ae";\r\n } "b8eb69b0";\r\n } "e1f73648";\r\n src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb21s1de06(src, tgt) "4fe5485a";\r\n } "c849765a";\r\n } "ce9b0830";\r\n } "919b4a1a";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de03";\r\n } "bdab9370";\r\n } "4ef6d709";\r\n}\r\n\r\ngroup emcareobservationemcareb18s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb18s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B18S1.DE02' "code-emcareb18s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B18S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "da9e8c81";\r\n}\r\n\r\ngroup emcareobservationemcareb11s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb11s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B11S1.DE01' "code-emcareb11s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B11S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb11s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb11s1de01";\r\n } "bdab9370";\r\n } "7b8564b3";\r\n}\r\n\r\ngroup emcareobservationemcareb21s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb21s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B21S1.DE06' "code-emcareb21s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B21S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb21s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb21s1de06";\r\n } "bdab9370";\r\n } "54923cd5";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b18-21.symptoms.2m.m" = "Ccc.b18-21.symptoms.2m.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B7.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de03(src, tgt) "f2e89805";\r\n } "8dded58a";\r\n } "6d815194";\r\n } "a2e85aba";\r\n src.item first as item where (linkId = 'Ccc.B18S1.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb18s1de02(src, tgt) "25a99ee2";\r\n } "9a78f7db";\r\n } "94862cbd";\r\n } "49e0dedf";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb11s1de01(src, tgt) "43d4af59";\r\n } "bfd970ae";\r\n } "b8eb69b0";\r\n } "e1f73648";\r\n src.item first as item where (linkId = 'Ccc.B21S1.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb21s1de06(src, tgt) "4fe5485a";\r\n } "c849765a";\r\n } "ce9b0830";\r\n } "919b4a1a";\r\n}\r\n\r\ngroup CccobservationCccb7de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE03' "code-Cccb7de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B7.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de03";\r\n } "bdab9370";\r\n } "4ef6d709";\r\n}\r\n\r\ngroup CccobservationCccb18s1de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb18s1de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B18S1.DE02' "code-Cccb18s1de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B18S1.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "da9e8c81";\r\n}\r\n\r\ngroup CccobservationCccb11s1de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb11s1de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B11S1.DE01' "code-Cccb11s1de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B11S1.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb11s1de01";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb11s1de01";\r\n } "bdab9370";\r\n } "7b8564b3";\r\n}\r\n\r\ngroup CccobservationCccb21s1de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb21s1de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B21S1.DE06' "code-Cccb21s1de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B21S1.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb21s1de06";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb21s1de06";\r\n } "bdab9370";\r\n } "54923cd5";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.assessmentstests" = "emcare.b22.assessmentstests"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "1b0282c4";\r\n } "38d251fb";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "b29de87e";\r\n } "83edc111";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "37f27338";\r\n } "e265d4b9";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "fe87fcb7";\r\n } "5149a74c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "e18b8f07";\r\n } "5b507a5c";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n } "a29f448d";\r\n } "8c5fbec1";\r\n } "34815add";\r\n } "a5dcb8ca";\r\n } "ea50860d";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n } "e477bbcc";\r\n } "c329f1a7";\r\n } "05305e3f";\r\n } "b43560b2";\r\n } "b2efd7b0";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n } "25d864fa";\r\n } "d659dd64";\r\n } "b4d55b8a";\r\n } "427a7e63";\r\n } "bb829570";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n } "4d341549";\r\n } "7cf5a310";\r\n } "f627de60";\r\n } "b50887e7";\r\n } "65731df1";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n } "1e80b046";\r\n } "d67193a2";\r\n } "43435fc6";\r\n } "663fb49d";\r\n } "720e8bc9";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n } "30a84474";\r\n } "25416983";\r\n } "6a7e0a13";\r\n } "16556d1c";\r\n } "ddaf5ab3";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n } "0bf9d78c";\r\n } "b0fa129e";\r\n } "32b27262";\r\n } "9c9cb9cf";\r\n } "c28d7273";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n } "65279195";\r\n } "954bbaec";\r\n } "db19cd6e";\r\n } "a57951b9";\r\n } "00b8d186";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n } "cea3f121";\r\n } "f3d4e5ff";\r\n } "b7ccc20a";\r\n } "a057c365";\r\n } "6bf6c194";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n } "a7736492";\r\n } "0fd648ea";\r\n } "708ba8cc";\r\n } "141fcb13";\r\n } "0a2cfb8c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n } "109bcf94";\r\n } "88ceffcd";\r\n } "f6b5295e";\r\n } "ff982ab4";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n } "ec6cbc70";\r\n } "2bc763d0";\r\n } "08d4fa9d";\r\n } "dbbe5168";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n } "765c240d";\r\n } "9de4a229";\r\n } "95a734dc";\r\n } "e0648fb3";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n } "72695e81";\r\n } "5cc117e5";\r\n } "72d43aa2";\r\n } "2eb0afb7";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n } "64565ab8";\r\n } "a568a312";\r\n } "c9435680";\r\n } "532862db";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n } "470a9773";\r\n } "6aff1bf2";\r\n } "58ef8f91";\r\n } "d3925452";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n } "bab0e868";\r\n } "47ecf4e4";\r\n } "adf0b112";\r\n } "800f010d";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n } "38fb811c";\r\n } "77934152";\r\n } "07d1a84a";\r\n } "41f81bdf";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n } "e7981b54";\r\n } "b81929fc";\r\n } "65ea8f25";\r\n } "92c89def";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n } "a60a44da";\r\n } "9f5867b0";\r\n } "7a811ac1";\r\n } "c95a75ed";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n } "7976f991";\r\n } "6b8eb7c7";\r\n } "b3f8de08";\r\n } "4d431e35";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n } "cec8e27b";\r\n } "e67b8382";\r\n } "a45c350b";\r\n } "3cf7714c";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n } "213a0dca";\r\n } "56a5bbd9";\r\n } "d7b806aa";\r\n } "840b2bb8";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n } "70061b03";\r\n } "0e593cb2";\r\n } "f7138270";\r\n } "3f3d258e";\r\n src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n } "42cac8d1";\r\n } "00ff1e0b";\r\n } "12925695";\r\n } "c39fe6fd";\r\n src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n } "565f125e";\r\n } "cc5012ad";\r\n } "ebd0ce98";\r\n } "26935d1f";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n } "68ad31bf";\r\n } "6ac0c1c9";\r\n } "39718bc0";\r\n } "9b034abe";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n } "1ee0adeb";\r\n } "9266b262";\r\n } "47f73f1e";\r\n } "20d6b9bb";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n } "1d3deeec";\r\n } "82120e52";\r\n } "618f3cba";\r\n } "f1772432";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "3b9ba04d";\r\n } "6d73c74e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "55651876";\r\n } "5bdf34bc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de14a";\r\n } "bdab9370";\r\n } "e332bfd7";\r\n } "1a47ca2a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de15";\r\n } "bdab9370";\r\n } "166040b8";\r\n } "e23593aa";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b1dde0d2";\r\n } "b36b8a09";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de22";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "3e1d6082";\r\n } "e1414539";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de21";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de21";\r\n } "bdab9370";\r\n } "36586abf";\r\n } "a412e00a";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de41";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "6df944ed";\r\n } "d888a973";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de28";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de28";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de28";\r\n } "bdab9370";\r\n } "58c52233";\r\n } "aad3db2c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de29";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de29";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de29";\r\n } "bdab9370";\r\n } "95a367de";\r\n } "960d28f0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de30";\r\n } "bdab9370";\r\n } "c3834bca";\r\n } "3b102368";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de31";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de31";\r\n } "bdab9370";\r\n } "bb8ba529";\r\n } "9e9be797";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de32";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de32";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de32";\r\n } "bdab9370";\r\n } "4adca3b8";\r\n } "59b588e0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de33";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de33";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de33";\r\n } "bdab9370";\r\n } "ba6b3c81";\r\n } "56745630";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de34";\r\n } "bdab9370";\r\n } "a958300a";\r\n } "f384d1b9";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de35";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de35";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de35";\r\n } "bdab9370";\r\n } "9412283c";\r\n } "5ed5ea0e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n item.answer first as a then {\r\n a where value = 'Not well Attached to Breast', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE37, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "71afb672";\r\n } "a53091ee";\r\n a where value = 'Good Attachment', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE38, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "3053aa3e";\r\n } "239a32e6";\r\n a where value = 'Not Sucking Effectively', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE39, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "0e60e5cc";\r\n } "ae925fc5";\r\n a where value = 'Sucking Effectively', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE40, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "5eeaf122";\r\n } "714e8fb5";\r\n } "bd419d51";\r\n } "713debc5";\r\n } "b4145e76";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de42";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de42";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de42";\r\n } "bdab9370";\r\n } "3dcc04b3";\r\n } "0d852c2e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de44";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de44";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de44";\r\n } "bdab9370";\r\n } "d4bad53b";\r\n } "fbdc7921";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de81";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "185ffa99";\r\n } "44836ba1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de82";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "29107a72";\r\n } "7485a680";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de47";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "10fc9c80";\r\n } "932aad6b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de46";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "b66a0bcd";\r\n } "b937d546";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de50";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'EmCare.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = val, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "759a9a54";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "336c73e3";\r\n } "3bf9ecd0";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.assessmentstests" = "Ccc.b22.assessmentstests"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "1c5108b8";\r\n } "88bb5c43";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "85d3c3a3";\r\n } "c7e0dbc2";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "ad5094ed";\r\n } "3b2e9629";\r\n } "318dfe75";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "d9d928a7";\r\n } "9853d168";\r\n } "c21c2c7c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "a2eebe03";\r\n } "7ef76f25";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "1b0282c4";\r\n } "38d251fb";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "b29de87e";\r\n } "83edc111";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "37f27338";\r\n } "e265d4b9";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "fe87fcb7";\r\n } "5149a74c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "e18b8f07";\r\n } "5b507a5c";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18') then {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de18t(src, tgt) "4b4e3882";\r\n } "a29f448d";\r\n } "8c5fbec1";\r\n } "34815add";\r\n } "a5dcb8ca";\r\n } "ea50860d";\r\n 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 {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de18f(src, tgt) "4fd23ec4";\r\n } "e477bbcc";\r\n } "c329f1a7";\r\n } "05305e3f";\r\n } "b43560b2";\r\n } "b2efd7b0";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19') then {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de19t(src, tgt) "832556c2";\r\n } "25d864fa";\r\n } "d659dd64";\r\n } "b4d55b8a";\r\n } "427a7e63";\r\n } "bb829570";\r\n 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 {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de19f(src, tgt) "917126ea";\r\n } "4d341549";\r\n } "7cf5a310";\r\n } "f627de60";\r\n } "b50887e7";\r\n } "65731df1";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20') then {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de20t(src, tgt) "178da581";\r\n } "1e80b046";\r\n } "d67193a2";\r\n } "43435fc6";\r\n } "663fb49d";\r\n } "720e8bc9";\r\n 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 {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de20f(src, tgt) "4fa88d49";\r\n } "30a84474";\r\n } "25416983";\r\n } "6a7e0a13";\r\n } "16556d1c";\r\n } "ddaf5ab3";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21') then {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de21t(src, tgt) "628bfa1d";\r\n } "0bf9d78c";\r\n } "b0fa129e";\r\n } "32b27262";\r\n } "9c9cb9cf";\r\n } "c28d7273";\r\n 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 {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de21f(src, tgt) "f42ef3e7";\r\n } "65279195";\r\n } "954bbaec";\r\n } "db19cd6e";\r\n } "a57951b9";\r\n } "00b8d186";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22') then {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de22t(src, tgt) "a1caf2e7";\r\n } "cea3f121";\r\n } "f3d4e5ff";\r\n } "b7ccc20a";\r\n } "a057c365";\r\n } "6bf6c194";\r\n 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 {\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de22f(src, tgt) "df402cb9";\r\n } "a7736492";\r\n } "0fd648ea";\r\n } "708ba8cc";\r\n } "141fcb13";\r\n } "0a2cfb8c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de22(src, tgt) "b9010fac";\r\n } "109bcf94";\r\n } "88ceffcd";\r\n } "f6b5295e";\r\n } "ff982ab4";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de21(src, tgt) "7c45409d";\r\n } "ec6cbc70";\r\n } "2bc763d0";\r\n } "08d4fa9d";\r\n } "dbbe5168";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de41(src, tgt) "35802f20";\r\n } "765c240d";\r\n } "9de4a229";\r\n } "95a734dc";\r\n } "e0648fb3";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de28(src, tgt) "dd9106b0";\r\n } "72695e81";\r\n } "5cc117e5";\r\n } "72d43aa2";\r\n } "2eb0afb7";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de29(src, tgt) "0bd03bad";\r\n } "64565ab8";\r\n } "a568a312";\r\n } "c9435680";\r\n } "532862db";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de30(src, tgt) "a8dbbfa4";\r\n } "470a9773";\r\n } "6aff1bf2";\r\n } "58ef8f91";\r\n } "d3925452";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de31(src, tgt) "3a858f1f";\r\n } "bab0e868";\r\n } "47ecf4e4";\r\n } "adf0b112";\r\n } "800f010d";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de32(src, tgt) "5537f1d1";\r\n } "38fb811c";\r\n } "77934152";\r\n } "07d1a84a";\r\n } "41f81bdf";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de33(src, tgt) "b9ca07b3";\r\n } "e7981b54";\r\n } "b81929fc";\r\n } "65ea8f25";\r\n } "92c89def";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de34(src, tgt) "81a7b6a0";\r\n } "a60a44da";\r\n } "9f5867b0";\r\n } "7a811ac1";\r\n } "c95a75ed";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de35(src, tgt) "99cdb2a9";\r\n } "7976f991";\r\n } "6b8eb7c7";\r\n } "b3f8de08";\r\n } "4d431e35";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de36(src, tgt) "5d275331";\r\n } "cec8e27b";\r\n } "e67b8382";\r\n } "a45c350b";\r\n } "3cf7714c";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de42(src, tgt) "273b1a16";\r\n } "213a0dca";\r\n } "56a5bbd9";\r\n } "d7b806aa";\r\n } "840b2bb8";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de44(src, tgt) "843d7b1e";\r\n } "70061b03";\r\n } "0e593cb2";\r\n } "f7138270";\r\n } "3f3d258e";\r\n src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE81') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de81(src, tgt) "f56b8d65";\r\n } "42cac8d1";\r\n } "00ff1e0b";\r\n } "12925695";\r\n } "c39fe6fd";\r\n src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE82') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de82(src, tgt) "1118b2e0";\r\n } "565f125e";\r\n } "cc5012ad";\r\n } "ebd0ce98";\r\n } "26935d1f";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de47(src, tgt) "27e1ae58";\r\n } "68ad31bf";\r\n } "6ac0c1c9";\r\n } "39718bc0";\r\n } "9b034abe";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE46') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de46(src, tgt) "d4ea6333";\r\n } "1ee0adeb";\r\n } "9266b262";\r\n } "47f73f1e";\r\n } "20d6b9bb";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE50') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de50(src, tgt) "b5c48578";\r\n } "1d3deeec";\r\n } "82120e52";\r\n } "618f3cba";\r\n } "f1772432";\r\n}\r\n\r\ngroup CccobservationCccb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "e1cd1fa1";\r\n } "ad8e4fa6";\r\n}\r\n\r\ngroup CccobservationCccb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "38b3c27b";\r\n } "5b046e45";\r\n}\r\n\r\ngroup CccobservationCccb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "f66ca63f";\r\n } "1b837896";\r\n } "6b3a0b06";\r\n}\r\n\r\ngroup CccobservationCccb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as itm2 where linkId = 'second' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "48a81a4f";\r\n } "9322cbb7";\r\n } "ed73ec89";\r\n}\r\n\r\ngroup CccobservationCccb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.RespiratoryRate' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de07";\r\n } "bdab9370";\r\n } "b5e73929";\r\n } "306838ed";\r\n}\r\n\r\ngroup CccobservationCccb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "3b9ba04d";\r\n } "6d73c74e";\r\n}\r\n\r\ngroup CccobservationCccb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "55651876";\r\n } "5bdf34bc";\r\n}\r\n\r\ngroup CccobservationCccb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de14a";\r\n } "bdab9370";\r\n } "e332bfd7";\r\n } "1a47ca2a";\r\n}\r\n\r\ngroup CccobservationCccb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de15";\r\n } "bdab9370";\r\n } "166040b8";\r\n } "e23593aa";\r\n}\r\n\r\ngroup CccobservationCccb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "b1dde0d2";\r\n } "b36b8a09";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de20t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de20t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de20f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de20f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de22(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de22";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "3e1d6082";\r\n } "e1414539";\r\n}\r\n\r\ngroup CccobservationCccb22de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BronchodilatorTest' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de21";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de21";\r\n } "bdab9370";\r\n } "36586abf";\r\n } "a412e00a";\r\n}\r\n\r\ngroup CccobservationCccb22de41(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de41";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE41') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "6df944ed";\r\n } "d888a973";\r\n}\r\n\r\ngroup CccobservationCccb22de28(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de28";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de28";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de28";\r\n } "bdab9370";\r\n } "58c52233";\r\n } "aad3db2c";\r\n}\r\n\r\ngroup CccobservationCccb22de29(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de29";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de29";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de29";\r\n } "bdab9370";\r\n } "95a367de";\r\n } "960d28f0";\r\n}\r\n\r\ngroup CccobservationCccb22de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de30";\r\n } "bdab9370";\r\n } "c3834bca";\r\n } "3b102368";\r\n}\r\n\r\ngroup CccobservationCccb22de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de31";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de31";\r\n } "bdab9370";\r\n } "bb8ba529";\r\n } "9e9be797";\r\n}\r\n\r\ngroup CccobservationCccb22de32(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de32";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de32";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de32";\r\n } "bdab9370";\r\n } "4adca3b8";\r\n } "59b588e0";\r\n}\r\n\r\ngroup CccobservationCccb22de33(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de33";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de33";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de33";\r\n } "bdab9370";\r\n } "ba6b3c81";\r\n } "56745630";\r\n}\r\n\r\ngroup CccobservationCccb22de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de34";\r\n } "bdab9370";\r\n } "a958300a";\r\n } "f384d1b9";\r\n}\r\n\r\ngroup CccobservationCccb22de35(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de35";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de35";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de35";\r\n } "bdab9370";\r\n } "9412283c";\r\n } "5ed5ea0e";\r\n}\r\n\r\ngroup CccobservationCccb22de36(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de36";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {\r\n item.answer first as a then {\r\n a where value = 'Not well Attached to Breast', a.value as val then {\r\n 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";\r\n } "a53091ee";\r\n a where value = 'Good Attachment', a.value as val then {\r\n 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";\r\n } "239a32e6";\r\n a where value = 'Not Sucking Effectively', a.value as val then {\r\n 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";\r\n } "ae925fc5";\r\n a where value = 'Sucking Effectively', a.value as val then {\r\n 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";\r\n } "714e8fb5";\r\n } "bd419d51";\r\n } "713debc5";\r\n } "b4145e76";\r\n}\r\n\r\ngroup CccobservationCccb22de42(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de42";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de42";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de42";\r\n } "bdab9370";\r\n } "3dcc04b3";\r\n } "0d852c2e";\r\n}\r\n\r\ngroup CccobservationCccb22de44(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de44";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.BreastFeeding' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de44";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de44";\r\n } "bdab9370";\r\n } "d4bad53b";\r\n } "fbdc7921";\r\n}\r\n\r\ngroup CccobservationCccb22de81(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de81";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE81') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "185ffa99";\r\n } "44836ba1";\r\n}\r\n\r\ngroup CccobservationCccb22de82(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de82";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.Hemoglobin' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE82') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "29107a72";\r\n } "7485a680";\r\n}\r\n\r\ngroup CccobservationCccb22de47(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de47";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE47') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "10fc9c80";\r\n } "932aad6b";\r\n}\r\n\r\ngroup CccobservationCccb22de46(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de46";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE46') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "b66a0bcd";\r\n } "b937d546";\r\n}\r\n\r\ngroup CccobservationCccb22de50(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de50";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'Ccc.B22.SecondTemperature' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE50') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n 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";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "336c73e3";\r\n } "3bf9ecd0";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.breastfeeding" = "emcare.b22.breastfeeding"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de41(src, tgt) "35802f20";\r\n } "765c240d";\r\n } "9de4a229";\r\n } "75985b2b";\r\n src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de28(src, tgt) "dd9106b0";\r\n } "72695e81";\r\n } "5cc117e5";\r\n } "9bad69d4";\r\n src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de29(src, tgt) "0bd03bad";\r\n } "64565ab8";\r\n } "a568a312";\r\n } "76a8dde8";\r\n src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de30(src, tgt) "a8dbbfa4";\r\n } "470a9773";\r\n } "6aff1bf2";\r\n } "2229067c";\r\n src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de31(src, tgt) "3a858f1f";\r\n } "bab0e868";\r\n } "47ecf4e4";\r\n } "c5443b3c";\r\n src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de32(src, tgt) "5537f1d1";\r\n } "38fb811c";\r\n } "77934152";\r\n } "42b13a25";\r\n src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de33(src, tgt) "b9ca07b3";\r\n } "e7981b54";\r\n } "b81929fc";\r\n } "09721163";\r\n src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de34(src, tgt) "81a7b6a0";\r\n } "a60a44da";\r\n } "9f5867b0";\r\n } "22a4c1bd";\r\n src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de35(src, tgt) "99cdb2a9";\r\n } "7976f991";\r\n } "6b8eb7c7";\r\n } "2d0973e6";\r\n src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de36(src, tgt) "5d275331";\r\n } "cec8e27b";\r\n } "e67b8382";\r\n } "407c94f0";\r\n src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de42(src, tgt) "273b1a16";\r\n } "213a0dca";\r\n } "56a5bbd9";\r\n } "36bdb5b8";\r\n src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de44(src, tgt) "843d7b1e";\r\n } "70061b03";\r\n } "0e593cb2";\r\n } "4199346d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de41(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de41";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE41' "code-emcareb22de41";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE41') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "24def288";\r\n}\r\n\r\ngroup emcareobservationemcareb22de28(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de28";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE28' "code-emcareb22de28";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE28') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de28";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de28";\r\n } "bdab9370";\r\n } "f2e6f4c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de29(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de29";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE29' "code-emcareb22de29";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE29') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de29";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de29";\r\n } "bdab9370";\r\n } "9c93669f";\r\n}\r\n\r\ngroup emcareobservationemcareb22de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE30' "code-emcareb22de30";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de30";\r\n } "bdab9370";\r\n } "46ca8d36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE31' "code-emcareb22de31";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de31";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de31";\r\n } "bdab9370";\r\n } "27a8c087";\r\n}\r\n\r\ngroup emcareobservationemcareb22de32(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de32";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE32' "code-emcareb22de32";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de32";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de32";\r\n } "bdab9370";\r\n } "24ee0901";\r\n}\r\n\r\ngroup emcareobservationemcareb22de33(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de33";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE33' "code-emcareb22de33";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE33') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de33";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de33";\r\n } "bdab9370";\r\n } "17cd42bb";\r\n}\r\n\r\ngroup emcareobservationemcareb22de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE34' "code-emcareb22de34";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de34";\r\n } "bdab9370";\r\n } "aa1487ce";\r\n}\r\n\r\ngroup emcareobservationemcareb22de35(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de35";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE35' "code-emcareb22de35";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de35";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de35";\r\n } "bdab9370";\r\n } "4be5f694";\r\n}\r\n\r\ngroup emcareobservationemcareb22de36(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de36";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE36' "code-emcareobservationemcareb22de36";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE36') and answer.exists() then {\r\n item.answer first as a then {\r\n a where value = 'Not well Attached to Breast', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE37, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "71afb672";\r\n } "a53091ee";\r\n a where value = 'Good Attachment', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE38, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "3053aa3e";\r\n } "239a32e6";\r\n a where value = 'Not Sucking Effectively', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE39, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "0e60e5cc";\r\n } "ae925fc5";\r\n a where value = 'Sucking Effectively', a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = EmCare.B22.DE40, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "5eeaf122";\r\n } "714e8fb5";\r\n } "bd419d51";\r\n } "1b30376c";\r\n}\r\n\r\ngroup emcareobservationemcareb22de42(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de42";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE42' "code-emcareb22de42";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE42') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de42";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de42";\r\n } "bdab9370";\r\n } "da98ddbd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de44(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de44";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE44' "code-emcareb22de44";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE44') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de44";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de44";\r\n } "bdab9370";\r\n } "53869acc";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.breastfeeding" = "Ccc.b22.breastfeeding"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B22.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de41(src, tgt) "35802f20";\r\n } "765c240d";\r\n } "9de4a229";\r\n } "75985b2b";\r\n src.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de28(src, tgt) "dd9106b0";\r\n } "72695e81";\r\n } "5cc117e5";\r\n } "9bad69d4";\r\n src.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de29(src, tgt) "0bd03bad";\r\n } "64565ab8";\r\n } "a568a312";\r\n } "76a8dde8";\r\n src.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de30(src, tgt) "a8dbbfa4";\r\n } "470a9773";\r\n } "6aff1bf2";\r\n } "2229067c";\r\n src.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de31(src, tgt) "3a858f1f";\r\n } "bab0e868";\r\n } "47ecf4e4";\r\n } "c5443b3c";\r\n src.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de32(src, tgt) "5537f1d1";\r\n } "38fb811c";\r\n } "77934152";\r\n } "42b13a25";\r\n src.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de33(src, tgt) "b9ca07b3";\r\n } "e7981b54";\r\n } "b81929fc";\r\n } "09721163";\r\n src.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de34(src, tgt) "81a7b6a0";\r\n } "a60a44da";\r\n } "9f5867b0";\r\n } "22a4c1bd";\r\n src.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de35(src, tgt) "99cdb2a9";\r\n } "7976f991";\r\n } "6b8eb7c7";\r\n } "2d0973e6";\r\n src.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de36(src, tgt) "5d275331";\r\n } "cec8e27b";\r\n } "e67b8382";\r\n } "407c94f0";\r\n src.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de42(src, tgt) "273b1a16";\r\n } "213a0dca";\r\n } "56a5bbd9";\r\n } "36bdb5b8";\r\n src.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de44(src, tgt) "843d7b1e";\r\n } "70061b03";\r\n } "0e593cb2";\r\n } "4199346d";\r\n}\r\n\r\ngroup CccobservationCccb22de41(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de41";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE41') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "24def288";\r\n}\r\n\r\ngroup CccobservationCccb22de28(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de28";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE28') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de28";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de28";\r\n } "bdab9370";\r\n } "f2e6f4c7";\r\n}\r\n\r\ngroup CccobservationCccb22de29(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de29";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE29') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de29";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de29";\r\n } "bdab9370";\r\n } "9c93669f";\r\n}\r\n\r\ngroup CccobservationCccb22de30(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de30";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE30') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de30";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de30";\r\n } "bdab9370";\r\n } "46ca8d36";\r\n}\r\n\r\ngroup CccobservationCccb22de31(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de31";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de31";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de31";\r\n } "bdab9370";\r\n } "27a8c087";\r\n}\r\n\r\ngroup CccobservationCccb22de32(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de32";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de32";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de32";\r\n } "bdab9370";\r\n } "24ee0901";\r\n}\r\n\r\ngroup CccobservationCccb22de33(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de33";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE33') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de33";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de33";\r\n } "bdab9370";\r\n } "17cd42bb";\r\n}\r\n\r\ngroup CccobservationCccb22de34(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de34";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE34') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de34";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de34";\r\n } "bdab9370";\r\n } "aa1487ce";\r\n}\r\n\r\ngroup CccobservationCccb22de35(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de35";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de35";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de35";\r\n } "bdab9370";\r\n } "4be5f694";\r\n}\r\n\r\ngroup CccobservationCccb22de36(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de36";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE36') and answer.exists() then {\r\n item.answer first as a then {\r\n a where value = 'Not well Attached to Breast', a.value as val then {\r\n 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";\r\n } "a53091ee";\r\n a where value = 'Good Attachment', a.value as val then {\r\n 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";\r\n } "239a32e6";\r\n a where value = 'Not Sucking Effectively', a.value as val then {\r\n 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";\r\n } "ae925fc5";\r\n a where value = 'Sucking Effectively', a.value as val then {\r\n 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";\r\n } "714e8fb5";\r\n } "bd419d51";\r\n } "1b30376c";\r\n}\r\n\r\ngroup CccobservationCccb22de42(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de42";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE42') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de42";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de42";\r\n } "bdab9370";\r\n } "da98ddbd";\r\n}\r\n\r\ngroup CccobservationCccb22de44(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de44";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE44') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de44";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de44";\r\n } "bdab9370";\r\n } "53869acc";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.bronchodilatortest" = "emcare.b22.bronchodilatortest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18') then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de18t(src, tgt) "4b4e3882";\r\n } "a29f448d";\r\n } "8c5fbec1";\r\n } "b0f57b45";\r\n } "21951d21";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE18').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de18f(src, tgt) "4fd23ec4";\r\n } "e477bbcc";\r\n } "c329f1a7";\r\n } "78424877";\r\n } "c5976cd7";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19') then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de19t(src, tgt) "832556c2";\r\n } "25d864fa";\r\n } "d659dd64";\r\n } "5b545a39";\r\n } "5e2e09fd";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE19').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de19f(src, tgt) "917126ea";\r\n } "4d341549";\r\n } "7cf5a310";\r\n } "c89d7013";\r\n } "9e5f2bdb";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20') then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de20t(src, tgt) "178da581";\r\n } "1e80b046";\r\n } "d67193a2";\r\n } "59186280";\r\n } "f429fd81";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE20').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de20f(src, tgt) "4fa88d49";\r\n } "30a84474";\r\n } "25416983";\r\n } "7552e3d3";\r\n } "8363b35b";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21') then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de21t(src, tgt) "628bfa1d";\r\n } "0bf9d78c";\r\n } "b0fa129e";\r\n } "913a00ce";\r\n } "1561f370";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE21').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de21f(src, tgt) "f42ef3e7";\r\n } "65279195";\r\n } "954bbaec";\r\n } "f61383c6";\r\n } "530338c0";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22') then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de22t(src, tgt) "a1caf2e7";\r\n } "cea3f121";\r\n } "f3d4e5ff";\r\n } "119d61d2";\r\n } "ba871435";\r\n src where src.item.where(linkId = 'EmCare.B22.DE17').exists() and src.item.where(linkId = 'EmCare.B22.DE17').answer.where(value.code = 'EmCare.B22.DE22').empty() then {\r\n src.item first as item where (linkId = 'EmCare.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then emcareobservationemcareb22de17emcareb22de22f(src, tgt) "df402cb9";\r\n } "a7736492";\r\n } "0fd648ea";\r\n } "cad5ab21";\r\n } "e57a3dc1";\r\n src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de22(src, tgt) "b9010fac";\r\n } "109bcf94";\r\n } "88ceffcd";\r\n } "88960ea0";\r\n src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de21(src, tgt) "7c45409d";\r\n } "ec6cbc70";\r\n } "2bc763d0";\r\n } "86c6f66b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE18' "code-emcareobservationemcareb22de17emcareb22de18f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE19' "code-emcareobservationemcareb22de17emcareb22de19f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de20f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de20f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE20' "code-emcareobservationemcareb22de17emcareb22de20f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE21' "code-emcareobservationemcareb22de17emcareb22de21f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22t";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup emcareobservationemcareb22de17emcareb22de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareobservationemcareb22de17emcareb22de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE17&EmCare.B22.DE22' "code-emcareobservationemcareb22de17emcareb22de22f";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup emcareobservationemcareb22de22(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de22";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE22' "code-emcareb22de22";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "dd2a446b";\r\n}\r\n\r\ngroup emcareobservationemcareb22de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE21' "code-emcareb22de21";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de21";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de21";\r\n } "bdab9370";\r\n } "be0b9dbe";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.bronchodilatortest" = "Ccc.b22.bronchodilatortest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE18') then {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de18t(src, tgt) "4b4e3882";\r\n } "a29f448d";\r\n } "8c5fbec1";\r\n } "b0f57b45";\r\n } "21951d21";\r\n 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 {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de18f(src, tgt) "4fd23ec4";\r\n } "e477bbcc";\r\n } "c329f1a7";\r\n } "78424877";\r\n } "c5976cd7";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE19') then {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de19t(src, tgt) "832556c2";\r\n } "25d864fa";\r\n } "d659dd64";\r\n } "5b545a39";\r\n } "5e2e09fd";\r\n 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 {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de19f(src, tgt) "917126ea";\r\n } "4d341549";\r\n } "7cf5a310";\r\n } "c89d7013";\r\n } "9e5f2bdb";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE20') then {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de20t(src, tgt) "178da581";\r\n } "1e80b046";\r\n } "d67193a2";\r\n } "59186280";\r\n } "f429fd81";\r\n 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 {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de20f(src, tgt) "4fa88d49";\r\n } "30a84474";\r\n } "25416983";\r\n } "7552e3d3";\r\n } "8363b35b";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE21') then {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de21t(src, tgt) "628bfa1d";\r\n } "0bf9d78c";\r\n } "b0fa129e";\r\n } "913a00ce";\r\n } "1561f370";\r\n 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 {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de21f(src, tgt) "f42ef3e7";\r\n } "65279195";\r\n } "954bbaec";\r\n } "f61383c6";\r\n } "530338c0";\r\n src where src.item.where(linkId = 'Ccc.B22.DE17').answer.where(value.code = 'Ccc.B22.DE22') then {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de22t(src, tgt) "a1caf2e7";\r\n } "cea3f121";\r\n } "f3d4e5ff";\r\n } "119d61d2";\r\n } "ba871435";\r\n 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 {\r\n src.item first as item where (linkId = 'Ccc.B22.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src then CccobservationCccb22de17Cccb22de22f(src, tgt) "df402cb9";\r\n } "a7736492";\r\n } "0fd648ea";\r\n } "cad5ab21";\r\n } "e57a3dc1";\r\n src.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de22(src, tgt) "b9010fac";\r\n } "109bcf94";\r\n } "88ceffcd";\r\n } "88960ea0";\r\n src.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de21(src, tgt) "7c45409d";\r\n } "ec6cbc70";\r\n } "2bc763d0";\r\n } "86c6f66b";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de18t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de18t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de18f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de18f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de19t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de19t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de19f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de19f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de20t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de20t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de20f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de20f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de21t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de21t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de21f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de21f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de22t(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de22t";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'final', tgt.value = true "e9d639e1";\r\n}\r\n\r\ngroup CccobservationCccb22de17Cccb22de22f(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-CccobservationCccb22de17Cccb22de22f";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src -> tgt.status = 'cancelled', tgt.value = false "f21d6e36";\r\n}\r\n\r\ngroup CccobservationCccb22de22(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de22";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "dd2a446b";\r\n}\r\n\r\ngroup CccobservationCccb22de21(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de21";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de21";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de21";\r\n } "bdab9370";\r\n } "be0b9dbe";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.fluidtest" = "emcare.b22.fluidtest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "9a6f78aa";\r\n src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "4a69f58d";\r\n src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "17d5b370";\r\n src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "33c9d538";\r\n src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "1a49e616";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "64bb2211";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "0ac7445d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de14a";\r\n } "bdab9370";\r\n } "b79a05a4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de15";\r\n } "bdab9370";\r\n } "6c50dbd5";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "6d23b905";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.fluidtest" = "Ccc.b22.fluidtest"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "9a6f78aa";\r\n src.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "4a69f58d";\r\n src.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "17d5b370";\r\n src.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "33c9d538";\r\n src.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "1a49e616";\r\n}\r\n\r\ngroup CccobservationCccb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "64bb2211";\r\n}\r\n\r\ngroup CccobservationCccb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "0ac7445d";\r\n}\r\n\r\ngroup CccobservationCccb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de14a";\r\n } "bdab9370";\r\n } "b79a05a4";\r\n}\r\n\r\ngroup CccobservationCccb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de15";\r\n } "bdab9370";\r\n } "6c50dbd5";\r\n}\r\n\r\ngroup CccobservationCccb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "6d23b905";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.hemoglobin" = "emcare.b22.hemoglobin"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de81(src, tgt) "f56b8d65";\r\n } "42cac8d1";\r\n } "00ff1e0b";\r\n } "f4f9d360";\r\n src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de82(src, tgt) "1118b2e0";\r\n } "565f125e";\r\n } "cc5012ad";\r\n } "ba583c69";\r\n}\r\n\r\ngroup emcareobservationemcareb22de81(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de81";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE81' "code-emcareb22de81";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE81') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dfc1d2c2";\r\n}\r\n\r\ngroup emcareobservationemcareb22de82(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de82";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE82' "code-emcareb22de82";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE82') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "cc79d81a";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.hemoglobin" = "Ccc.b22.hemoglobin"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B22.DE81') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de81(src, tgt) "f56b8d65";\r\n } "42cac8d1";\r\n } "00ff1e0b";\r\n } "f4f9d360";\r\n src.item first as item where (linkId = 'Ccc.B22.DE82') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de82(src, tgt) "1118b2e0";\r\n } "565f125e";\r\n } "cc5012ad";\r\n } "ba583c69";\r\n}\r\n\r\ngroup CccobservationCccb22de81(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de81";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE81') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dfc1d2c2";\r\n}\r\n\r\ngroup CccobservationCccb22de82(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de82";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE82') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "cc79d81a";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.respiratoryrate" = "emcare.b22.respiratoryrate"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "77649f73";\r\n src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "7ee0496a";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "db1f14c6";\r\n } "b4376f1a";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "e18939cc";\r\n } "521e128f";\r\n src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "f682bc2d";\r\n}\r\n\r\ngroup emcareobservationemcareb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE01' "code-emcareb22de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "49ffb8b4";\r\n}\r\n\r\ngroup emcareobservationemcareb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE02' "code-emcareb22de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "3b9acb5e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE04' "code-emcareb22de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "a51bfd6b";\r\n } "dfb413f3";\r\n}\r\n\r\ngroup emcareobservationemcareb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE05' "code-emcareb22de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'EmCare.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "64195ab2";\r\n } "e7a272dd";\r\n}\r\n\r\ngroup emcareobservationemcareb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE07' "code-emcareb22de07";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de07";\r\n } "bdab9370";\r\n } "07e9b85b";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.respiratoryrate" = "Ccc.b22.respiratoryrate"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de01(src, tgt) "94788d70";\r\n } "cafa1f90";\r\n } "44017cb3";\r\n } "77649f73";\r\n src.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de02(src, tgt) "c3e885af";\r\n } "60b301de";\r\n } "815e425c";\r\n } "7ee0496a";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de04(src, tgt) "42ed4c3a";\r\n } "b802d4a2";\r\n } "c7431f4f";\r\n } "db1f14c6";\r\n } "b4376f1a";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de05(src, tgt) "3be4cd34";\r\n } "b7585bc2";\r\n } "61b1a5c6";\r\n } "e18939cc";\r\n } "521e128f";\r\n src.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de07(src, tgt) "fa30cee1";\r\n } "aad75965";\r\n } "8267defb";\r\n } "f682bc2d";\r\n}\r\n\r\ngroup CccobservationCccb22de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "49ffb8b4";\r\n}\r\n\r\ngroup CccobservationCccb22de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "3b9acb5e";\r\n}\r\n\r\ngroup CccobservationCccb22de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "a51bfd6b";\r\n } "dfb413f3";\r\n}\r\n\r\ngroup CccobservationCccb22de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'second' then {\r\n itm1.item first as item where (linkId = 'Ccc.B22.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "64195ab2";\r\n } "e7a272dd";\r\n}\r\n\r\ngroup CccobservationCccb22de07(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de07";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE07') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de07";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de07";\r\n } "bdab9370";\r\n } "07e9b85b";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b22.secondtemperature" = "emcare.b22.secondtemperature"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de47(src, tgt) "27e1ae58";\r\n } "68ad31bf";\r\n } "6ac0c1c9";\r\n } "921b6c4e";\r\n src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de46(src, tgt) "d4ea6333";\r\n } "1ee0adeb";\r\n } "9266b262";\r\n } "822ffc0d";\r\n src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de50(src, tgt) "b5c48578";\r\n } "1d3deeec";\r\n } "82120e52";\r\n } "7a077eb8";\r\n}\r\n\r\ngroup emcareobservationemcareb22de47(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de47";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE47' "code-emcareb22de47";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE47') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "48393240";\r\n}\r\n\r\ngroup emcareobservationemcareb22de46(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de46";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE46' "code-emcareb22de46";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE46') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a4475795";\r\n}\r\n\r\ngroup emcareobservationemcareb22de50(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de50";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE50' "code-emcareb22de50";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B22.DE50') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = val, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "759a9a54";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "7972a70f";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b22.secondtemperature" = "Ccc.b22.secondtemperature"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B22.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de47(src, tgt) "27e1ae58";\r\n } "68ad31bf";\r\n } "6ac0c1c9";\r\n } "921b6c4e";\r\n src.item first as item where (linkId = 'Ccc.B22.DE46') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de46(src, tgt) "d4ea6333";\r\n } "1ee0adeb";\r\n } "9266b262";\r\n } "822ffc0d";\r\n src.item first as item where (linkId = 'Ccc.B22.DE50') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de50(src, tgt) "b5c48578";\r\n } "1d3deeec";\r\n } "82120e52";\r\n } "7a077eb8";\r\n}\r\n\r\ngroup CccobservationCccb22de47(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de47";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE47') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "48393240";\r\n}\r\n\r\ngroup CccobservationCccb22de46(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de46";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE46') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a4475795";\r\n}\r\n\r\ngroup CccobservationCccb22de50(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de50";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B22.DE50') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n 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";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "7972a70f";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b23.classification" = "emcare.b23.classification"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n } "eb449882";\r\n } "e71738d1";\r\n } "b739680e";\r\n src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE01') and answer.exists() then {\r\n item then emcareconditionemcareb23de01(src, item, tgt) "2f5a16b2";\r\n } "bfe7a55c";\r\n } "50a5819f";\r\n } "e8f6cc23";\r\n } "7a454a82";\r\n src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE03') and answer.exists() then {\r\n item then emcareconditionemcareb23de03(src, item, tgt) "a67360e4";\r\n } "42024447";\r\n } "78d1fec3";\r\n } "ab9b8f9b";\r\n } "f63c99d7";\r\n src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n } "060d6b0f";\r\n } "6909c9cb";\r\n } "80a2a642";\r\n } "93603109";\r\n src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE10') and answer.exists() then {\r\n item then emcareconditionemcareb23de10(src, item, tgt) "68412bef";\r\n } "f7cba384";\r\n } "395852f7";\r\n } "fe607810";\r\n } "b387304c";\r\n src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n } "a1450efb";\r\n } "076ff820";\r\n } "08bcb577";\r\n } "feb0d657";\r\n src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n } "88d1e8c7";\r\n } "3ef7f05b";\r\n } "90e804b6";\r\n } "d819a392";\r\n src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n } "21fccbde";\r\n } "2eb659f8";\r\n } "79ef4ab2";\r\n } "e3b54720";\r\n src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE16') and answer.exists() then {\r\n item then emcareconditionemcareb23de16(src, item, tgt) "5ca68bc9";\r\n } "13f73669";\r\n } "004176aa";\r\n } "f197824a";\r\n } "30f296ff";\r\n src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE17') and answer.exists() then {\r\n item then emcareconditionemcareb23de17(src, item, tgt) "b84270e5";\r\n } "40c0e1f5";\r\n } "ed28a431";\r\n } "8655026f";\r\n } "e00a237b";\r\n src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE18') and answer.exists() then {\r\n item then emcareconditionemcareb23de18(src, item, tgt) "dfbf48ee";\r\n } "ad789b95";\r\n } "d65389e8";\r\n } "78232367";\r\n } "8cc4fc87";\r\n src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE18.a') and answer.exists() then {\r\n item then emcareconditionemcareb23de18a(src, item, tgt) "5c3c2d1d";\r\n } "43c599a6";\r\n } "75af673e";\r\n } "f32ce9b9";\r\n } "316d35e0";\r\n src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE100') and answer.exists() then {\r\n item then emcareconditionemcareb23de100(src, item, tgt) "56f36841";\r\n } "97f35c84";\r\n } "89555aa7";\r\n } "f85ae159";\r\n } "af08e4be";\r\n src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE6101') and answer.exists() then {\r\n item then emcareconditionemcareb23de6101(src, item, tgt) "753668eb";\r\n } "1e95b03f";\r\n } "098ed11a";\r\n } "3ad2ebe1";\r\n } "083bdfa7";\r\n src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE6102') and answer.exists() then {\r\n item then emcareconditionemcareb23de6102(src, item, tgt) "b18c060f";\r\n } "9885316c";\r\n } "02844368";\r\n } "60e42bf7";\r\n } "be28d894";\r\n src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE6103') and answer.exists() then {\r\n item then emcareconditionemcareb23de6103(src, item, tgt) "694ad147";\r\n } "f8d3c6a0";\r\n } "deaa28f3";\r\n } "39431803";\r\n } "8c74e110";\r\n src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE30') and answer.exists() then {\r\n item then emcareconditionemcareb23de30(src, item, tgt) "32bbb313";\r\n } "92db22d8";\r\n } "8cd3b82f";\r\n } "98322930";\r\n } "304f990a";\r\n src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE31') and answer.exists() then {\r\n item then emcareconditionemcareb23de31(src, item, tgt) "9964826f";\r\n } "f5203f81";\r\n } "0f3128f2";\r\n } "062d38a4";\r\n } "8d94ef29";\r\n src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE32') and answer.exists() then {\r\n item then emcareconditionemcareb23de32(src, item, tgt) "59173520";\r\n } "d5cfadca";\r\n } "0f17a43e";\r\n } "b3942453";\r\n } "1d3e64f6";\r\n src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE33') and answer.exists() then {\r\n item then emcareconditionemcareb23de33(src, item, tgt) "c837ebf0";\r\n } "1edd3bf3";\r\n } "4ae746e1";\r\n } "5b4ed518";\r\n } "932b4857";\r\n src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE19') and answer.exists() then {\r\n item then emcareconditionemcareb23de19(src, item, tgt) "52279224";\r\n } "6f81d3f9";\r\n } "113ecc5c";\r\n } "04d55a2c";\r\n } "12b7ac16";\r\n src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE104') and answer.exists() then {\r\n item then emcareconditionemcareb23de104(src, item, tgt) "70ac88c0";\r\n } "ba965067";\r\n } "7af6d913";\r\n } "b926b389";\r\n } "b8498228";\r\n src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE105') and answer.exists() then {\r\n item then emcareconditionemcareb23de105(src, item, tgt) "fd65bdec";\r\n } "2814799c";\r\n } "4c17029d";\r\n } "50b5f05d";\r\n } "fd02db7e";\r\n src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE27') and answer.exists() then {\r\n item then emcareconditionemcareb23de27(src, item, tgt) "26e04269";\r\n } "101a50d8";\r\n } "202d5c60";\r\n } "79e4637e";\r\n } "7034785e";\r\n src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE28') and answer.exists() then {\r\n item then emcareconditionemcareb23de28(src, item, tgt) "9cd8c124";\r\n } "a14217b2";\r\n } "22888f47";\r\n } "037df360";\r\n } "a0c36d7f";\r\n src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE29') and answer.exists() then {\r\n item then emcareconditionemcareb23de29(src, item, tgt) "d4810ead";\r\n } "1c12d5db";\r\n } "ea7f1382";\r\n } "905f043d";\r\n } "5f2e1416";\r\n src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE62') and answer.exists() then {\r\n item then emcareconditionemcareb23de62(src, item, tgt) "2054edb9";\r\n } "02044741";\r\n } "159e31e9";\r\n } "b02885dc";\r\n } "112da7cb";\r\n src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE63') and answer.exists() then {\r\n item then emcareconditionemcareb23de63(src, item, tgt) "a3f40895";\r\n } "7d52bc70";\r\n } "20460d5f";\r\n } "ff14bba0";\r\n } "f48b3870";\r\n src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE64') and answer.exists() then {\r\n item then emcareconditionemcareb23de64(src, item, tgt) "f29b8184";\r\n } "14c8b550";\r\n } "e5734e77";\r\n } "36cc09a7";\r\n } "66a082c4";\r\n src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE34') and answer.exists() then {\r\n item then emcareconditionemcareb23de34(src, item, tgt) "d9034209";\r\n } "551a67f8";\r\n } "8b3401ff";\r\n } "640f5832";\r\n } "f733b9d7";\r\n src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE35') and answer.exists() then {\r\n item then emcareconditionemcareb23de35(src, item, tgt) "04b69b69";\r\n } "edd58a6a";\r\n } "171d392a";\r\n } "074be390";\r\n } "7234989d";\r\n src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE41') and answer.exists() then {\r\n item then emcareconditionemcareb23de41(src, item, tgt) "e644496b";\r\n } "b0b2d547";\r\n } "10a4e114";\r\n } "144ac84e";\r\n } "be581407";\r\n src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE42') and answer.exists() then {\r\n item then emcareconditionemcareb23de42(src, item, tgt) "8906f237";\r\n } "825180a4";\r\n } "cdb5f085";\r\n } "61767b45";\r\n } "fd2318de";\r\n src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE44') and answer.exists() then {\r\n item then emcareconditionemcareb23de44(src, item, tgt) "8b745e32";\r\n } "a297489e";\r\n } "2a87d904";\r\n } "31c42b4a";\r\n } "15c107e8";\r\n src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE45') and answer.exists() then {\r\n item then emcareconditionemcareb23de45(src, item, tgt) "e2a48a8a";\r\n } "5ac1cbfe";\r\n } "3ae81ddc";\r\n } "af5a73ee";\r\n } "b89e4982";\r\n src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE47') and answer.exists() then {\r\n item then emcareconditionemcareb23de47(src, item, tgt) "59e3f98e";\r\n } "94021c1f";\r\n } "bdb92c29";\r\n } "4313c455";\r\n } "f4732c43";\r\n src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE49') and answer.exists() then {\r\n item then emcareconditionemcareb23de49(src, item, tgt) "12ffb049";\r\n } "586e9069";\r\n } "38e3ba7c";\r\n } "09e8e39a";\r\n } "b716ffcf";\r\n src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE52') and answer.exists() then {\r\n item then emcareconditionemcareb23de52(src, item, tgt) "a793cbe8";\r\n } "db3fe5e7";\r\n } "dbb84c90";\r\n } "87a2f3d1";\r\n } "c771fb59";\r\n src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE53') and answer.exists() then {\r\n item then emcareconditionemcareb23de53(src, item, tgt) "649c99ff";\r\n } "07fdede8";\r\n } "6c7dda52";\r\n } "65dc7390";\r\n } "aabd61a9";\r\n src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE54') and answer.exists() then {\r\n item then emcareconditionemcareb23de54(src, item, tgt) "c44c1a67";\r\n } "33495720";\r\n } "f537bd3f";\r\n } "3292a5b7";\r\n } "5586adfb";\r\n src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE56') and answer.exists() then {\r\n item then emcareconditionemcareb23de56(src, item, tgt) "c075c713";\r\n } "b19e1e77";\r\n } "1f53e6e7";\r\n } "1fff823c";\r\n } "eb0fa007";\r\n src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE57') and answer.exists() then {\r\n item then emcareconditionemcareb23de57(src, item, tgt) "3fef72d0";\r\n } "95696bb5";\r\n } "c36398d4";\r\n } "e245f919";\r\n } "bd893565";\r\n src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE58') and answer.exists() then {\r\n item then emcareconditionemcareb23de58(src, item, tgt) "59c41e8c";\r\n } "39386628";\r\n } "18b79c9c";\r\n } "0e7307dc";\r\n } "d0cc854b";\r\n src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE59') and answer.exists() then {\r\n item then emcareconditionemcareb23de59(src, item, tgt) "2cb1e1ca";\r\n } "ab082ec2";\r\n } "6065b9b9";\r\n } "351db615";\r\n } "6ff9138e";\r\n src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE61') and answer.exists() then {\r\n item then emcareconditionemcareb23de61(src, item, tgt) "260b475c";\r\n } "c464855a";\r\n } "9bc3a2f7";\r\n } "fb4ac959";\r\n } "d7071092";\r\n src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n } "f5b0e691";\r\n } "cffa49c6";\r\n } "f8df0e47";\r\n } "a8b97e3f";\r\n src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE107') and answer.exists() then {\r\n item then emcareconditionemcareb23de107(src, item, tgt) "c2e4c8aa";\r\n } "b47a06ed";\r\n } "ddc34ddb";\r\n } "4bd4c8ca";\r\n } "80a21e15";\r\n src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE108') and answer.exists() then {\r\n item then emcareconditionemcareb23de108(src, item, tgt) "71dee3f9";\r\n } "6dd7f385";\r\n } "f9f042d3";\r\n } "aa990e3b";\r\n } "62bc2a23";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE01') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de01(src, item, tgt) "64b9f2ed";\r\n } "8ac761e7";\r\n } "4d3c5911";\r\n } "8a9e262f";\r\n } "1a7bd4e6";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE03') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de03(src, item, tgt) "b1c1cd66";\r\n } "010509dd";\r\n } "d18e6c9c";\r\n } "0ddf1e04";\r\n } "b4ab6b36";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n } "e87439ac";\r\n } "37d42e73";\r\n } "7708b4b0";\r\n } "ca7b518e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE10') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de10(src, item, tgt) "0b7e0dd8";\r\n } "2addbd30";\r\n } "944a4843";\r\n } "0e6c6c5e";\r\n } "624540df";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n } "e291ac38";\r\n } "a3790ce2";\r\n } "df1da7ee";\r\n } "db30808b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n } "71ec8c01";\r\n } "eec21165";\r\n } "4bec0867";\r\n } "b6cebe17";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n } "78497d5c";\r\n } "5f0e524b";\r\n } "84c7d9e0";\r\n } "5fb77efc";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE16') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de16(src, item, tgt) "694adbe8";\r\n } "b4ffe6d7";\r\n } "019739d6";\r\n } "f03364f0";\r\n } "80b4094a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE17') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de17(src, item, tgt) "cc19d396";\r\n } "18e9e9c8";\r\n } "c03c1182";\r\n } "77b63bab";\r\n } "ff70de9a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de18(src, item, tgt) "7bb9024b";\r\n } "68fe032f";\r\n } "ed54cd94";\r\n } "8b8510f5";\r\n } "632cb525";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE18.a') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de18a(src, item, tgt) "b60dcb5b";\r\n } "b812de89";\r\n } "7e16782b";\r\n } "2e857828";\r\n } "44580a8e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE100') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de100(src, item, tgt) "630c1b4f";\r\n } "41d237f0";\r\n } "ac9a35e1";\r\n } "490124cb";\r\n } "3cac9099";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6101') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de6101(src, item, tgt) "b8a94b6b";\r\n } "c5e81286";\r\n } "f91c76bc";\r\n } "004bae37";\r\n } "0fefd9c9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6102') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de6102(src, item, tgt) "7660041a";\r\n } "b83d5bd8";\r\n } "afa6d915";\r\n } "e56c0843";\r\n } "1cfede52";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE6103') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de6103(src, item, tgt) "4acf003e";\r\n } "052597db";\r\n } "0d306c2e";\r\n } "bde18a8c";\r\n } "9e8a0879";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE30') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de30(src, item, tgt) "6aa7cf7e";\r\n } "21ed2b92";\r\n } "b950cabe";\r\n } "38dc397b";\r\n } "a771b576";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE31') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de31(src, item, tgt) "0b62776c";\r\n } "718d4b87";\r\n } "a826c054";\r\n } "50550799";\r\n } "2fb7bb3e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE32') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de32(src, item, tgt) "8d2e2b23";\r\n } "85fecf83";\r\n } "115750dd";\r\n } "130e1c53";\r\n } "ac3dd1e5";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE33') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de33(src, item, tgt) "30d2abfe";\r\n } "e6a31cdd";\r\n } "d1297d3e";\r\n } "ef3283c2";\r\n } "b5d854cd";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE19') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de19(src, item, tgt) "9d939c47";\r\n } "b6456e02";\r\n } "88264770";\r\n } "18e9b3aa";\r\n } "4af8b98f";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE104') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de104(src, item, tgt) "7124044e";\r\n } "6dd0b0f1";\r\n } "362898cd";\r\n } "6ee2f034";\r\n } "87957a8c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE105') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de105(src, item, tgt) "565f9699";\r\n } "deccc025";\r\n } "6ffe0a40";\r\n } "ca66f70c";\r\n } "4981fb26";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE27') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de27(src, item, tgt) "0da758bb";\r\n } "240424fd";\r\n } "42ac4364";\r\n } "14da060d";\r\n } "ad5837c4";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE28') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de28(src, item, tgt) "f02ea85f";\r\n } "9674e4f8";\r\n } "4215cfc9";\r\n } "cc83a9a6";\r\n } "10b29f3a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE29') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de29(src, item, tgt) "30518e39";\r\n } "443496d9";\r\n } "4b8a2cfa";\r\n } "45aa51e3";\r\n } "29a1e48b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE62') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de62(src, item, tgt) "923ea559";\r\n } "253ad99c";\r\n } "e1d211b3";\r\n } "66d2ac7f";\r\n } "34070da4";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE63') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de63(src, item, tgt) "2cba00a0";\r\n } "7431d7aa";\r\n } "dd159d2b";\r\n } "6088497e";\r\n } "6d937c64";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE64') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de64(src, item, tgt) "1bdeb81e";\r\n } "823b626d";\r\n } "6c269ed8";\r\n } "c0166a2f";\r\n } "ef32feea";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE34') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de34(src, item, tgt) "1b5079e7";\r\n } "e3eec4b3";\r\n } "c0170815";\r\n } "9a1a4b51";\r\n } "02fb5c32";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE35') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de35(src, item, tgt) "359aadb6";\r\n } "8752dcf9";\r\n } "5587f633";\r\n } "436512de";\r\n } "f74fb871";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE41') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de41(src, item, tgt) "6b245d77";\r\n } "7880e418";\r\n } "31ed2847";\r\n } "69bddf54";\r\n } "f3925752";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE42') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de42(src, item, tgt) "a013ff50";\r\n } "a1112e83";\r\n } "80f89c3b";\r\n } "c28e55f5";\r\n } "5a4f405d";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE44') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de44(src, item, tgt) "2e18a455";\r\n } "05602096";\r\n } "14ff0531";\r\n } "e4d8d14c";\r\n } "106b8412";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE45') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de45(src, item, tgt) "b7776d8c";\r\n } "0161a3e1";\r\n } "9041cce3";\r\n } "d5a11665";\r\n } "fa69f51a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE47') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de47(src, item, tgt) "3ef4c39a";\r\n } "cc30da8e";\r\n } "3c571f7a";\r\n } "9c46143a";\r\n } "7ce713b2";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE49') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de49(src, item, tgt) "9422f693";\r\n } "270f01c9";\r\n } "2e5719c3";\r\n } "86381b92";\r\n } "dba4472f";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE52') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de52(src, item, tgt) "4dc5850c";\r\n } "1305ff09";\r\n } "1e7a4f1d";\r\n } "823dad96";\r\n } "f8980fc9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE53') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de53(src, item, tgt) "f3ebb24f";\r\n } "8a06bf9b";\r\n } "82127571";\r\n } "438bfa1e";\r\n } "a6b3b052";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE54') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de54(src, item, tgt) "7d9b72a9";\r\n } "57b6a17c";\r\n } "3f0c44e2";\r\n } "9176d48e";\r\n } "472d138a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE56') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de56(src, item, tgt) "171d0d02";\r\n } "a8403d8d";\r\n } "933c8359";\r\n } "29b48437";\r\n } "8633ecac";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE57') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de57(src, item, tgt) "28c69067";\r\n } "712614f8";\r\n } "f5aa3751";\r\n } "b4b69b8b";\r\n } "275e0558";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE58') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de58(src, item, tgt) "1ecfb370";\r\n } "a5d3fb11";\r\n } "abbb00cd";\r\n } "5c12666c";\r\n } "9ee9a18a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE59') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de59(src, item, tgt) "f3cc5dd6";\r\n } "c2af2708";\r\n } "420f3c42";\r\n } "940b499b";\r\n } "77bb110d";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE61') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de61(src, item, tgt) "3ee47ea8";\r\n } "14a2cbce";\r\n } "69da036c";\r\n } "8d2fc1e7";\r\n } "5baa46cb";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n } "8a9ab3d6";\r\n } "b3badac5";\r\n } "8aec9c45";\r\n } "332b8a91";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE107') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de107(src, item, tgt) "d7ceb954";\r\n } "62594d12";\r\n } "6660c144";\r\n } "897c260c";\r\n } "4dfafc7a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE108') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de108(src, item, tgt) "ed29c4d5";\r\n } "a304721d";\r\n } "f9a90d39";\r\n } "031643b1";\r\n } "f52a6f86";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n } "dbad65ac";\r\n } "652cfd04";\r\n } "63e7ab00";\r\n } "d596b39a";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dc896557";\r\n}\r\n\r\ngroup emcareconditionemcareb23de01(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38c776ef";\r\n } "dcfcb65d";\r\n } "48b723fb";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de03(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "97f42802";\r\n } "539676b6";\r\n } "72db4093";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE04') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE04', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38e7535e";\r\n } "dd1642cb";\r\n } "c35c9cd0";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n } "558d6c0d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "45430313";\r\n } "fbb8aa6b";\r\n } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de10(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n } "39e6334e";\r\n } "f313d249";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE05') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "45430313";\r\n } "fbb8aa6b";\r\n } "2361285f";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n } "dc54929c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n } "d565e84e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n } "b194144a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de16(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "672b006b";\r\n } "c458ff7e";\r\n } "a834b1c4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de17(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd34c671";\r\n } "0cc3c5de";\r\n } "8b51a13d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "422373d9";\r\n } "8f1dcdd2";\r\n } "6c227934";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de18a(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b2c23048";\r\n } "422663d8";\r\n } "12b34bed";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de100(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "515f36ee";\r\n } "e9f1a397";\r\n } "5e6079c2";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6101(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n } "970b5053";\r\n } "ce2b70a1";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6102(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1522be60";\r\n } "18159ba1";\r\n } "cb2b50a2";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de6103(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "248ab88b";\r\n } "9f402fa1";\r\n } "5f770596";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de30(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "60650f2a";\r\n } "453d3cff";\r\n } "e00da291";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de31(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n } "11935d2f";\r\n } "e29a8881";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de32(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b634fab6";\r\n } "4ead4dac";\r\n } "48ea19ef";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as itm1 where linkId = 'EmCare.B23.DE32' then {\r\n itm1.item first as item where (linkId = 'EmCare.B23.DE32a_l') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE32a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e1fd65a9";\r\n } "c8109922";\r\n } "812d89a8";\r\n } "c3ccc3f2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de33(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "57e99b51";\r\n } "82481cbe";\r\n } "ef2558fa";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de19(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n } "69ddcad6";\r\n } "36529e3a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de104(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6627d17b";\r\n } "008eb1e8";\r\n } "99bdabd7";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as itm1 where linkId = 'EmCare.B23.DE104' then {\r\n itm1.item first as item where (linkId = 'EmCare.B23.DE26a_l') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE26a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2bb3282a";\r\n } "059c54a8";\r\n } "bfa2f7ed";\r\n } "d6b41478";\r\n}\r\n\r\ngroup emcareconditionemcareb23de105(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n } "503587f4";\r\n } "b4cd8d75";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de27(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n } "7e9f6c96";\r\n } "47747496";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de28(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n } "ac92c02f";\r\n } "591966f0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de29(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "59037b30";\r\n } "cfcf61aa";\r\n } "b6fcf002";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de62(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n } "7a9976ac";\r\n } "59bce4a5";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de63(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7160c75f";\r\n } "f74f505b";\r\n } "ab307e84";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de64(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n } "9035e530";\r\n } "9a8830e5";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de34(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n } "ff3ce60d";\r\n } "c84a5f54";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de35(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n } "30144f76";\r\n } "b15dce6e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE36') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE36', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "337a4af0";\r\n } "00bff3d2";\r\n } "9a029988";\r\n}\r\n\r\ngroup emcareconditionemcareb23de41(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e288c87d";\r\n } "8173bdfa";\r\n } "2297565b";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de42(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n } "1282d921";\r\n } "f89496b0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE43a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE43a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3982894f";\r\n } "bb6efca4";\r\n } "fc0928c7";\r\n}\r\n\r\ngroup emcareconditionemcareb23de44(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n } "bed4feb4";\r\n } "629e48b0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de45(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "606d51c8";\r\n } "7d5d59ca";\r\n } "e36660f4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE46A') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE46A', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b043e119";\r\n } "b1d8b88c";\r\n } "a1ec2dd1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de47(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n } "5e31a07c";\r\n } "a43d53e8";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE48') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE48', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "88de7a80";\r\n } "7cd5181a";\r\n } "3c6f199b";\r\n}\r\n\r\ngroup emcareconditionemcareb23de49(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n } "1cc86632";\r\n } "f58199bf";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE50') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE50', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b871091f";\r\n } "3562dee3";\r\n } "ba9bd30c";\r\n}\r\n\r\ngroup emcareconditionemcareb23de52(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "eb984457";\r\n } "124cd652";\r\n } "c77f1d4e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE52a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE52a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3a81b32e";\r\n } "2c4ce5dc";\r\n } "510e64e3";\r\n}\r\n\r\ngroup emcareconditionemcareb23de53(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n } "863552f3";\r\n } "35439fa7";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE53a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE53a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "172c98f5";\r\n } "77f7bdf7";\r\n } "6481f816";\r\n}\r\n\r\ngroup emcareconditionemcareb23de54(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n } "61c9d7c8";\r\n } "78b12d83";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE55') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE55', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "703de849";\r\n } "82394009";\r\n } "626ae745";\r\n}\r\n\r\ngroup emcareconditionemcareb23de56(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9a929971";\r\n } "b7c8a104";\r\n } "0dd631f3";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de57(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n } "f04e9b50";\r\n } "af692636";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE57a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE57a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0273738c";\r\n } "3e41ae3b";\r\n } "d8c20ee2";\r\n}\r\n\r\ngroup emcareconditionemcareb23de58(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d913f145";\r\n } "ecd18d6c";\r\n } "a88f6164";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de59(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n } "4cae7202";\r\n } "b30797dc";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'EmCare.B23.DE60') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE60', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "da15433c";\r\n } "8622d264";\r\n } "0e509ca1";\r\n}\r\n\r\ngroup emcareconditionemcareb23de61(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9134fe36";\r\n } "280470c5";\r\n } "8aa97bdd";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n } "671ed411";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de107(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n } "d096a052";\r\n } "8e8ee9b4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de108(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3de5c106";\r\n } "58d1e9ce";\r\n } "81cf1715";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de01(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "38c776ef";\r\n } "dcfcb65d";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "9ef26449";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de03(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "97f42802";\r\n } "539676b6";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "cfd7a9f6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de10(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "901c4fa4";\r\n } "39e6334e";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "91de6eff";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de16(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "672b006b";\r\n } "c458ff7e";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "56c3513e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de17(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd34c671";\r\n } "0cc3c5de";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "bcc64d8c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "422373d9";\r\n } "8f1dcdd2";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c59123ce";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de18a(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b2c23048";\r\n } "422663d8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "25273533";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de100(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "515f36ee";\r\n } "e9f1a397";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8c3a108e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6101(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6a9c0b56";\r\n } "970b5053";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "bcd054c6";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6102(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1522be60";\r\n } "18159ba1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d067f021";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de6103(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "248ab88b";\r\n } "9f402fa1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "63883e24";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de30(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "60650f2a";\r\n } "453d3cff";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "a68b918e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de31(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab1c5076";\r\n } "11935d2f";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "822b0f6f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de32(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b634fab6";\r\n } "4ead4dac";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d4c988ea";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de33(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "57e99b51";\r\n } "82481cbe";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "fe5543e1";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de19(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8cb2637d";\r\n } "69ddcad6";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "70cc0dd3";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de104(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6627d17b";\r\n } "008eb1e8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "20bd1c4d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de105(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bfa6a728";\r\n } "503587f4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "fef353a9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de27(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "10a11fd8";\r\n } "7e9f6c96";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0290fee9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de28(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "bd635f9e";\r\n } "ac92c02f";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "83be838f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de29(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "59037b30";\r\n } "cfcf61aa";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "6e4bf79f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de62(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "1d89b4e7";\r\n } "7a9976ac";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "57723227";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de63(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7160c75f";\r\n } "f74f505b";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "33888f75";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de64(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "f6ad72a0";\r\n } "9035e530";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1cf80989";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de34(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e5f9a7d3";\r\n } "ff3ce60d";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d108e57f";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de35(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "7f5b9cb3";\r\n } "30144f76";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1b6c2929";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de41(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e288c87d";\r\n } "8173bdfa";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "6346630d";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de42(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "94e86dfd";\r\n } "1282d921";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8bdb0925";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de44(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "e3f3e6d5";\r\n } "bed4feb4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "01ad58f9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de45(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "606d51c8";\r\n } "7d5d59ca";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8d718fac";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de47(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "6bae8d25";\r\n } "5e31a07c";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0403cb73";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de49(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "b581f2e7";\r\n } "1cc86632";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "01b77ffc";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de52(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "eb984457";\r\n } "124cd652";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4f42555c";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de53(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0f3a6755";\r\n } "863552f3";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "28aceb4b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de54(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "fafd5b25";\r\n } "61c9d7c8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4a7c61b0";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de56(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9a929971";\r\n } "b7c8a104";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0a350e2a";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de57(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2c0d395c";\r\n } "f04e9b50";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4581b0aa";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de58(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d913f145";\r\n } "ecd18d6c";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "52e04bef";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de59(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8f74fb03";\r\n } "4cae7202";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4fd3684b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de61(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "9134fe36";\r\n } "280470c5";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "ebbc1c98";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de107(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "4b1b0c22";\r\n } "d096a052";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1df42064";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de108(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "3de5c106";\r\n } "58d1e9ce";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "474da804";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n } "6fc817a4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d8e38123";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b23.classification" = "Ccc.b23.classification"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/Ccccondition" alias 'Ccc Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B6.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de08(src, tgt) "6bb35e76";\r\n } "eb449882";\r\n } "e71738d1";\r\n } "b739680e";\r\n src.item first as item where (linkId = 'Ccc.B23.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE01') and answer.exists() then {\r\n item then CccconditionCccb23de01(src, item, tgt) "2f5a16b2";\r\n } "bfe7a55c";\r\n } "50a5819f";\r\n } "e8f6cc23";\r\n } "7a454a82";\r\n src.item first as item where (linkId = 'Ccc.B23.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE03') and answer.exists() then {\r\n item then CccconditionCccb23de03(src, item, tgt) "a67360e4";\r\n } "42024447";\r\n } "78d1fec3";\r\n } "ab9b8f9b";\r\n } "f63c99d7";\r\n src.item first as item where (linkId = 'Ccc.B23.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE06') and answer.exists() then {\r\n item then CccconditionCccb23de06(src, item, tgt) "9c759e88";\r\n } "060d6b0f";\r\n } "6909c9cb";\r\n } "80a2a642";\r\n } "93603109";\r\n src.item first as item where (linkId = 'Ccc.B23.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE10') and answer.exists() then {\r\n item then CccconditionCccb23de10(src, item, tgt) "68412bef";\r\n } "f7cba384";\r\n } "395852f7";\r\n } "fe607810";\r\n } "b387304c";\r\n src.item first as item where (linkId = 'Ccc.B23.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE13') and answer.exists() then {\r\n item then CccconditionCccb23de13(src, item, tgt) "66186a0c";\r\n } "a1450efb";\r\n } "076ff820";\r\n } "08bcb577";\r\n } "feb0d657";\r\n src.item first as item where (linkId = 'Ccc.B23.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE14') and answer.exists() then {\r\n item then CccconditionCccb23de14(src, item, tgt) "2dcb0090";\r\n } "88d1e8c7";\r\n } "3ef7f05b";\r\n } "90e804b6";\r\n } "d819a392";\r\n src.item first as item where (linkId = 'Ccc.B23.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE15') and answer.exists() then {\r\n item then CccconditionCccb23de15(src, item, tgt) "fe470a2a";\r\n } "21fccbde";\r\n } "2eb659f8";\r\n } "79ef4ab2";\r\n } "e3b54720";\r\n src.item first as item where (linkId = 'Ccc.B23.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE16') and answer.exists() then {\r\n item then CccconditionCccb23de16(src, item, tgt) "5ca68bc9";\r\n } "13f73669";\r\n } "004176aa";\r\n } "f197824a";\r\n } "30f296ff";\r\n src.item first as item where (linkId = 'Ccc.B23.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE17') and answer.exists() then {\r\n item then CccconditionCccb23de17(src, item, tgt) "b84270e5";\r\n } "40c0e1f5";\r\n } "ed28a431";\r\n } "8655026f";\r\n } "e00a237b";\r\n src.item first as item where (linkId = 'Ccc.B23.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE18') and answer.exists() then {\r\n item then CccconditionCccb23de18(src, item, tgt) "dfbf48ee";\r\n } "ad789b95";\r\n } "d65389e8";\r\n } "78232367";\r\n } "8cc4fc87";\r\n src.item first as item where (linkId = 'Ccc.B23.DE18.a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE18.a') and answer.exists() then {\r\n item then CccconditionCccb23de18a(src, item, tgt) "5c3c2d1d";\r\n } "43c599a6";\r\n } "75af673e";\r\n } "f32ce9b9";\r\n } "316d35e0";\r\n src.item first as item where (linkId = 'Ccc.B23.DE100') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE100') and answer.exists() then {\r\n item then CccconditionCccb23de100(src, item, tgt) "56f36841";\r\n } "97f35c84";\r\n } "89555aa7";\r\n } "f85ae159";\r\n } "af08e4be";\r\n src.item first as item where (linkId = 'Ccc.B23.DE6101') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE6101') and answer.exists() then {\r\n item then CccconditionCccb23de6101(src, item, tgt) "753668eb";\r\n } "1e95b03f";\r\n } "098ed11a";\r\n } "3ad2ebe1";\r\n } "083bdfa7";\r\n src.item first as item where (linkId = 'Ccc.B23.DE6102') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE6102') and answer.exists() then {\r\n item then CccconditionCccb23de6102(src, item, tgt) "b18c060f";\r\n } "9885316c";\r\n } "02844368";\r\n } "60e42bf7";\r\n } "be28d894";\r\n src.item first as item where (linkId = 'Ccc.B23.DE6103') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE6103') and answer.exists() then {\r\n item then CccconditionCccb23de6103(src, item, tgt) "694ad147";\r\n } "f8d3c6a0";\r\n } "deaa28f3";\r\n } "39431803";\r\n } "8c74e110";\r\n src.item first as item where (linkId = 'Ccc.B23.DE30') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE30') and answer.exists() then {\r\n item then CccconditionCccb23de30(src, item, tgt) "32bbb313";\r\n } "92db22d8";\r\n } "8cd3b82f";\r\n } "98322930";\r\n } "304f990a";\r\n src.item first as item where (linkId = 'Ccc.B23.DE31') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE31') and answer.exists() then {\r\n item then CccconditionCccb23de31(src, item, tgt) "9964826f";\r\n } "f5203f81";\r\n } "0f3128f2";\r\n } "062d38a4";\r\n } "8d94ef29";\r\n src.item first as item where (linkId = 'Ccc.B23.DE32') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE32') and answer.exists() then {\r\n item then CccconditionCccb23de32(src, item, tgt) "59173520";\r\n } "d5cfadca";\r\n } "0f17a43e";\r\n } "b3942453";\r\n } "1d3e64f6";\r\n src.item first as item where (linkId = 'Ccc.B23.DE33') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE33') and answer.exists() then {\r\n item then CccconditionCccb23de33(src, item, tgt) "c837ebf0";\r\n } "1edd3bf3";\r\n } "4ae746e1";\r\n } "5b4ed518";\r\n } "932b4857";\r\n src.item first as item where (linkId = 'Ccc.B23.DE19') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE19') and answer.exists() then {\r\n item then CccconditionCccb23de19(src, item, tgt) "52279224";\r\n } "6f81d3f9";\r\n } "113ecc5c";\r\n } "04d55a2c";\r\n } "12b7ac16";\r\n src.item first as item where (linkId = 'Ccc.B23.DE104') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE104') and answer.exists() then {\r\n item then CccconditionCccb23de104(src, item, tgt) "70ac88c0";\r\n } "ba965067";\r\n } "7af6d913";\r\n } "b926b389";\r\n } "b8498228";\r\n src.item first as item where (linkId = 'Ccc.B23.DE105') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE105') and answer.exists() then {\r\n item then CccconditionCccb23de105(src, item, tgt) "fd65bdec";\r\n } "2814799c";\r\n } "4c17029d";\r\n } "50b5f05d";\r\n } "fd02db7e";\r\n src.item first as item where (linkId = 'Ccc.B23.DE27') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE27') and answer.exists() then {\r\n item then CccconditionCccb23de27(src, item, tgt) "26e04269";\r\n } "101a50d8";\r\n } "202d5c60";\r\n } "79e4637e";\r\n } "7034785e";\r\n src.item first as item where (linkId = 'Ccc.B23.DE28') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE28') and answer.exists() then {\r\n item then CccconditionCccb23de28(src, item, tgt) "9cd8c124";\r\n } "a14217b2";\r\n } "22888f47";\r\n } "037df360";\r\n } "a0c36d7f";\r\n src.item first as item where (linkId = 'Ccc.B23.DE29') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE29') and answer.exists() then {\r\n item then CccconditionCccb23de29(src, item, tgt) "d4810ead";\r\n } "1c12d5db";\r\n } "ea7f1382";\r\n } "905f043d";\r\n } "5f2e1416";\r\n src.item first as item where (linkId = 'Ccc.B23.DE62') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE62') and answer.exists() then {\r\n item then CccconditionCccb23de62(src, item, tgt) "2054edb9";\r\n } "02044741";\r\n } "159e31e9";\r\n } "b02885dc";\r\n } "112da7cb";\r\n src.item first as item where (linkId = 'Ccc.B23.DE63') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE63') and answer.exists() then {\r\n item then CccconditionCccb23de63(src, item, tgt) "a3f40895";\r\n } "7d52bc70";\r\n } "20460d5f";\r\n } "ff14bba0";\r\n } "f48b3870";\r\n src.item first as item where (linkId = 'Ccc.B23.DE64') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE64') and answer.exists() then {\r\n item then CccconditionCccb23de64(src, item, tgt) "f29b8184";\r\n } "14c8b550";\r\n } "e5734e77";\r\n } "36cc09a7";\r\n } "66a082c4";\r\n src.item first as item where (linkId = 'Ccc.B23.DE34') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE34') and answer.exists() then {\r\n item then CccconditionCccb23de34(src, item, tgt) "d9034209";\r\n } "551a67f8";\r\n } "8b3401ff";\r\n } "640f5832";\r\n } "f733b9d7";\r\n src.item first as item where (linkId = 'Ccc.B23.DE35') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE35') and answer.exists() then {\r\n item then CccconditionCccb23de35(src, item, tgt) "04b69b69";\r\n } "edd58a6a";\r\n } "171d392a";\r\n } "074be390";\r\n } "7234989d";\r\n src.item first as item where (linkId = 'Ccc.B23.DE41') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE41') and answer.exists() then {\r\n item then CccconditionCccb23de41(src, item, tgt) "e644496b";\r\n } "b0b2d547";\r\n } "10a4e114";\r\n } "144ac84e";\r\n } "be581407";\r\n src.item first as item where (linkId = 'Ccc.B23.DE42') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE42') and answer.exists() then {\r\n item then CccconditionCccb23de42(src, item, tgt) "8906f237";\r\n } "825180a4";\r\n } "cdb5f085";\r\n } "61767b45";\r\n } "fd2318de";\r\n src.item first as item where (linkId = 'Ccc.B23.DE44') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE44') and answer.exists() then {\r\n item then CccconditionCccb23de44(src, item, tgt) "8b745e32";\r\n } "a297489e";\r\n } "2a87d904";\r\n } "31c42b4a";\r\n } "15c107e8";\r\n src.item first as item where (linkId = 'Ccc.B23.DE45') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE45') and answer.exists() then {\r\n item then CccconditionCccb23de45(src, item, tgt) "e2a48a8a";\r\n } "5ac1cbfe";\r\n } "3ae81ddc";\r\n } "af5a73ee";\r\n } "b89e4982";\r\n src.item first as item where (linkId = 'Ccc.B23.DE47') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE47') and answer.exists() then {\r\n item then CccconditionCccb23de47(src, item, tgt) "59e3f98e";\r\n } "94021c1f";\r\n } "bdb92c29";\r\n } "4313c455";\r\n } "f4732c43";\r\n src.item first as item where (linkId = 'Ccc.B23.DE49') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE49') and answer.exists() then {\r\n item then CccconditionCccb23de49(src, item, tgt) "12ffb049";\r\n } "586e9069";\r\n } "38e3ba7c";\r\n } "09e8e39a";\r\n } "b716ffcf";\r\n src.item first as item where (linkId = 'Ccc.B23.DE52') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE52') and answer.exists() then {\r\n item then CccconditionCccb23de52(src, item, tgt) "a793cbe8";\r\n } "db3fe5e7";\r\n } "dbb84c90";\r\n } "87a2f3d1";\r\n } "c771fb59";\r\n src.item first as item where (linkId = 'Ccc.B23.DE53') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE53') and answer.exists() then {\r\n item then CccconditionCccb23de53(src, item, tgt) "649c99ff";\r\n } "07fdede8";\r\n } "6c7dda52";\r\n } "65dc7390";\r\n } "aabd61a9";\r\n src.item first as item where (linkId = 'Ccc.B23.DE54') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE54') and answer.exists() then {\r\n item then CccconditionCccb23de54(src, item, tgt) "c44c1a67";\r\n } "33495720";\r\n } "f537bd3f";\r\n } "3292a5b7";\r\n } "5586adfb";\r\n src.item first as item where (linkId = 'Ccc.B23.DE56') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE56') and answer.exists() then {\r\n item then CccconditionCccb23de56(src, item, tgt) "c075c713";\r\n } "b19e1e77";\r\n } "1f53e6e7";\r\n } "1fff823c";\r\n } "eb0fa007";\r\n src.item first as item where (linkId = 'Ccc.B23.DE57') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE57') and answer.exists() then {\r\n item then CccconditionCccb23de57(src, item, tgt) "3fef72d0";\r\n } "95696bb5";\r\n } "c36398d4";\r\n } "e245f919";\r\n } "bd893565";\r\n src.item first as item where (linkId = 'Ccc.B23.DE58') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE58') and answer.exists() then {\r\n item then CccconditionCccb23de58(src, item, tgt) "59c41e8c";\r\n } "39386628";\r\n } "18b79c9c";\r\n } "0e7307dc";\r\n } "d0cc854b";\r\n src.item first as item where (linkId = 'Ccc.B23.DE59') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE59') and answer.exists() then {\r\n item then CccconditionCccb23de59(src, item, tgt) "2cb1e1ca";\r\n } "ab082ec2";\r\n } "6065b9b9";\r\n } "351db615";\r\n } "6ff9138e";\r\n src.item first as item where (linkId = 'Ccc.B23.DE61') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE61') and answer.exists() then {\r\n item then CccconditionCccb23de61(src, item, tgt) "260b475c";\r\n } "c464855a";\r\n } "9bc3a2f7";\r\n } "fb4ac959";\r\n } "d7071092";\r\n src.item first as item where (linkId = 'Ccc.B23.DE106') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE106') and answer.exists() then {\r\n item then CccconditionCccb23de106(src, item, tgt) "1385c52a";\r\n } "f5b0e691";\r\n } "cffa49c6";\r\n } "f8df0e47";\r\n } "a8b97e3f";\r\n src.item first as item where (linkId = 'Ccc.B23.DE107') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE107') and answer.exists() then {\r\n item then CccconditionCccb23de107(src, item, tgt) "c2e4c8aa";\r\n } "b47a06ed";\r\n } "ddc34ddb";\r\n } "4bd4c8ca";\r\n } "80a21e15";\r\n src.item first as item where (linkId = 'Ccc.B23.DE108') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE108') and answer.exists() then {\r\n item then CccconditionCccb23de108(src, item, tgt) "71dee3f9";\r\n } "6dd7f385";\r\n } "f9f042d3";\r\n } "aa990e3b";\r\n } "62bc2a23";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE01') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de01(src, item, tgt) "64b9f2ed";\r\n } "8ac761e7";\r\n } "4d3c5911";\r\n } "8a9e262f";\r\n } "1a7bd4e6";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE03') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de03(src, item, tgt) "b1c1cd66";\r\n } "010509dd";\r\n } "d18e6c9c";\r\n } "0ddf1e04";\r\n } "b4ab6b36";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE06') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de06(src, item, tgt) "ab6f052f";\r\n } "e87439ac";\r\n } "37d42e73";\r\n } "7708b4b0";\r\n } "ca7b518e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE10') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de10(src, item, tgt) "0b7e0dd8";\r\n } "2addbd30";\r\n } "944a4843";\r\n } "0e6c6c5e";\r\n } "624540df";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE13') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de13(src, item, tgt) "ca1c2344";\r\n } "e291ac38";\r\n } "a3790ce2";\r\n } "df1da7ee";\r\n } "db30808b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE14') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de14(src, item, tgt) "d2d217d7";\r\n } "71ec8c01";\r\n } "eec21165";\r\n } "4bec0867";\r\n } "b6cebe17";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE15') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de15(src, item, tgt) "d06cdfa3";\r\n } "78497d5c";\r\n } "5f0e524b";\r\n } "84c7d9e0";\r\n } "5fb77efc";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE16') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de16(src, item, tgt) "694adbe8";\r\n } "b4ffe6d7";\r\n } "019739d6";\r\n } "f03364f0";\r\n } "80b4094a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE17') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de17(src, item, tgt) "cc19d396";\r\n } "18e9e9c8";\r\n } "c03c1182";\r\n } "77b63bab";\r\n } "ff70de9a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE18') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de18(src, item, tgt) "7bb9024b";\r\n } "68fe032f";\r\n } "ed54cd94";\r\n } "8b8510f5";\r\n } "632cb525";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE18.a') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de18a(src, item, tgt) "b60dcb5b";\r\n } "b812de89";\r\n } "7e16782b";\r\n } "2e857828";\r\n } "44580a8e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE100') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de100(src, item, tgt) "630c1b4f";\r\n } "41d237f0";\r\n } "ac9a35e1";\r\n } "490124cb";\r\n } "3cac9099";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE6101') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de6101(src, item, tgt) "b8a94b6b";\r\n } "c5e81286";\r\n } "f91c76bc";\r\n } "004bae37";\r\n } "0fefd9c9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE6102') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de6102(src, item, tgt) "7660041a";\r\n } "b83d5bd8";\r\n } "afa6d915";\r\n } "e56c0843";\r\n } "1cfede52";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE6103') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de6103(src, item, tgt) "4acf003e";\r\n } "052597db";\r\n } "0d306c2e";\r\n } "bde18a8c";\r\n } "9e8a0879";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE30') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de30(src, item, tgt) "6aa7cf7e";\r\n } "21ed2b92";\r\n } "b950cabe";\r\n } "38dc397b";\r\n } "a771b576";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE31') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de31(src, item, tgt) "0b62776c";\r\n } "718d4b87";\r\n } "a826c054";\r\n } "50550799";\r\n } "2fb7bb3e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE32') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de32(src, item, tgt) "8d2e2b23";\r\n } "85fecf83";\r\n } "115750dd";\r\n } "130e1c53";\r\n } "ac3dd1e5";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE33') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de33(src, item, tgt) "30d2abfe";\r\n } "e6a31cdd";\r\n } "d1297d3e";\r\n } "ef3283c2";\r\n } "b5d854cd";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE19') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de19(src, item, tgt) "9d939c47";\r\n } "b6456e02";\r\n } "88264770";\r\n } "18e9b3aa";\r\n } "4af8b98f";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE104') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de104(src, item, tgt) "7124044e";\r\n } "6dd0b0f1";\r\n } "362898cd";\r\n } "6ee2f034";\r\n } "87957a8c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE105') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de105(src, item, tgt) "565f9699";\r\n } "deccc025";\r\n } "6ffe0a40";\r\n } "ca66f70c";\r\n } "4981fb26";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE27') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de27(src, item, tgt) "0da758bb";\r\n } "240424fd";\r\n } "42ac4364";\r\n } "14da060d";\r\n } "ad5837c4";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE28') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de28(src, item, tgt) "f02ea85f";\r\n } "9674e4f8";\r\n } "4215cfc9";\r\n } "cc83a9a6";\r\n } "10b29f3a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE29') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de29(src, item, tgt) "30518e39";\r\n } "443496d9";\r\n } "4b8a2cfa";\r\n } "45aa51e3";\r\n } "29a1e48b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE62') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de62(src, item, tgt) "923ea559";\r\n } "253ad99c";\r\n } "e1d211b3";\r\n } "66d2ac7f";\r\n } "34070da4";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE63') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de63(src, item, tgt) "2cba00a0";\r\n } "7431d7aa";\r\n } "dd159d2b";\r\n } "6088497e";\r\n } "6d937c64";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE64') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de64(src, item, tgt) "1bdeb81e";\r\n } "823b626d";\r\n } "6c269ed8";\r\n } "c0166a2f";\r\n } "ef32feea";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE34') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de34(src, item, tgt) "1b5079e7";\r\n } "e3eec4b3";\r\n } "c0170815";\r\n } "9a1a4b51";\r\n } "02fb5c32";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE35') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de35(src, item, tgt) "359aadb6";\r\n } "8752dcf9";\r\n } "5587f633";\r\n } "436512de";\r\n } "f74fb871";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE41') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de41(src, item, tgt) "6b245d77";\r\n } "7880e418";\r\n } "31ed2847";\r\n } "69bddf54";\r\n } "f3925752";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE42') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de42(src, item, tgt) "a013ff50";\r\n } "a1112e83";\r\n } "80f89c3b";\r\n } "c28e55f5";\r\n } "5a4f405d";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE44') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de44(src, item, tgt) "2e18a455";\r\n } "05602096";\r\n } "14ff0531";\r\n } "e4d8d14c";\r\n } "106b8412";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE45') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de45(src, item, tgt) "b7776d8c";\r\n } "0161a3e1";\r\n } "9041cce3";\r\n } "d5a11665";\r\n } "fa69f51a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE47') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de47(src, item, tgt) "3ef4c39a";\r\n } "cc30da8e";\r\n } "3c571f7a";\r\n } "9c46143a";\r\n } "7ce713b2";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE49') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de49(src, item, tgt) "9422f693";\r\n } "270f01c9";\r\n } "2e5719c3";\r\n } "86381b92";\r\n } "dba4472f";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE52') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de52(src, item, tgt) "4dc5850c";\r\n } "1305ff09";\r\n } "1e7a4f1d";\r\n } "823dad96";\r\n } "f8980fc9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE53') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de53(src, item, tgt) "f3ebb24f";\r\n } "8a06bf9b";\r\n } "82127571";\r\n } "438bfa1e";\r\n } "a6b3b052";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE54') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de54(src, item, tgt) "7d9b72a9";\r\n } "57b6a17c";\r\n } "3f0c44e2";\r\n } "9176d48e";\r\n } "472d138a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE56') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de56(src, item, tgt) "171d0d02";\r\n } "a8403d8d";\r\n } "933c8359";\r\n } "29b48437";\r\n } "8633ecac";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE57') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de57(src, item, tgt) "28c69067";\r\n } "712614f8";\r\n } "f5aa3751";\r\n } "b4b69b8b";\r\n } "275e0558";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE58') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de58(src, item, tgt) "1ecfb370";\r\n } "a5d3fb11";\r\n } "abbb00cd";\r\n } "5c12666c";\r\n } "9ee9a18a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE59') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de59(src, item, tgt) "f3cc5dd6";\r\n } "c2af2708";\r\n } "420f3c42";\r\n } "940b499b";\r\n } "77bb110d";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE61') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de61(src, item, tgt) "3ee47ea8";\r\n } "14a2cbce";\r\n } "69da036c";\r\n } "8d2fc1e7";\r\n } "5baa46cb";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE106') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de106(src, item, tgt) "5f3c80c3";\r\n } "8a9ab3d6";\r\n } "b3badac5";\r\n } "8aec9c45";\r\n } "332b8a91";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE107') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de107(src, item, tgt) "d7ceb954";\r\n } "62594d12";\r\n } "6660c144";\r\n } "897c260c";\r\n } "4dfafc7a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE108') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de108(src, item, tgt) "ed29c4d5";\r\n } "a304721d";\r\n } "f9a90d39";\r\n } "031643b1";\r\n } "f52a6f86";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then Cccconditioncollectorcollector(src, item, tgt) "dee30196";\r\n } "dbad65ac";\r\n } "652cfd04";\r\n } "63e7ab00";\r\n } "d596b39a";\r\n}\r\n\r\ngroup CccobservationCccb6de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE08' "code-Cccb6de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dc896557";\r\n}\r\n\r\ngroup CccconditionCccb23de01(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "38c776ef";\r\n } "dcfcb65d";\r\n } "48b723fb";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de03(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "97f42802";\r\n } "539676b6";\r\n } "72db4093";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE04') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE04', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "38e7535e";\r\n } "dd1642cb";\r\n } "c35c9cd0";\r\n}\r\n\r\ngroup CccconditionCccb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n } "558d6c0d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE05') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "45430313";\r\n } "fbb8aa6b";\r\n } "2361285f";\r\n}\r\n\r\ngroup CccconditionCccb23de10(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "901c4fa4";\r\n } "39e6334e";\r\n } "f313d249";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE05') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE05', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "45430313";\r\n } "fbb8aa6b";\r\n } "2361285f";\r\n}\r\n\r\ngroup CccconditionCccb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n } "dc54929c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n } "d565e84e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n } "b194144a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de16(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "672b006b";\r\n } "c458ff7e";\r\n } "a834b1c4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de17(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bd34c671";\r\n } "0cc3c5de";\r\n } "8b51a13d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de18(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "422373d9";\r\n } "8f1dcdd2";\r\n } "6c227934";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de18a(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b2c23048";\r\n } "422663d8";\r\n } "12b34bed";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de100(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "515f36ee";\r\n } "e9f1a397";\r\n } "5e6079c2";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de6101(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6a9c0b56";\r\n } "970b5053";\r\n } "ce2b70a1";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de6102(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "1522be60";\r\n } "18159ba1";\r\n } "cb2b50a2";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de6103(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "248ab88b";\r\n } "9f402fa1";\r\n } "5f770596";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de30(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "60650f2a";\r\n } "453d3cff";\r\n } "e00da291";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de31(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "ab1c5076";\r\n } "11935d2f";\r\n } "e29a8881";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de32(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b634fab6";\r\n } "4ead4dac";\r\n } "48ea19ef";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as itm1 where linkId = 'Ccc.B23.DE32' then {\r\n itm1.item first as item where (linkId = 'Ccc.B23.DE32a_l') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE32a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e1fd65a9";\r\n } "c8109922";\r\n } "812d89a8";\r\n } "c3ccc3f2";\r\n}\r\n\r\ngroup CccconditionCccb23de33(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "57e99b51";\r\n } "82481cbe";\r\n } "ef2558fa";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de19(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8cb2637d";\r\n } "69ddcad6";\r\n } "36529e3a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de104(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6627d17b";\r\n } "008eb1e8";\r\n } "99bdabd7";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as itm1 where linkId = 'Ccc.B23.DE104' then {\r\n itm1.item first as item where (linkId = 'Ccc.B23.DE26a_l') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE26a_l', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "2bb3282a";\r\n } "059c54a8";\r\n } "bfa2f7ed";\r\n } "d6b41478";\r\n}\r\n\r\ngroup CccconditionCccb23de105(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bfa6a728";\r\n } "503587f4";\r\n } "b4cd8d75";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de27(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "10a11fd8";\r\n } "7e9f6c96";\r\n } "47747496";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de28(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bd635f9e";\r\n } "ac92c02f";\r\n } "591966f0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de29(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "59037b30";\r\n } "cfcf61aa";\r\n } "b6fcf002";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de62(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "1d89b4e7";\r\n } "7a9976ac";\r\n } "59bce4a5";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de63(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "7160c75f";\r\n } "f74f505b";\r\n } "ab307e84";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de64(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "f6ad72a0";\r\n } "9035e530";\r\n } "9a8830e5";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de34(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e5f9a7d3";\r\n } "ff3ce60d";\r\n } "c84a5f54";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de35(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "7f5b9cb3";\r\n } "30144f76";\r\n } "b15dce6e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE36') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE36', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "337a4af0";\r\n } "00bff3d2";\r\n } "9a029988";\r\n}\r\n\r\ngroup CccconditionCccb23de41(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e288c87d";\r\n } "8173bdfa";\r\n } "2297565b";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de42(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "94e86dfd";\r\n } "1282d921";\r\n } "f89496b0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE43a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE43a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "3982894f";\r\n } "bb6efca4";\r\n } "fc0928c7";\r\n}\r\n\r\ngroup CccconditionCccb23de44(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e3f3e6d5";\r\n } "bed4feb4";\r\n } "629e48b0";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de45(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "606d51c8";\r\n } "7d5d59ca";\r\n } "e36660f4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE46A') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE46A', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b043e119";\r\n } "b1d8b88c";\r\n } "a1ec2dd1";\r\n}\r\n\r\ngroup CccconditionCccb23de47(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6bae8d25";\r\n } "5e31a07c";\r\n } "a43d53e8";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE48') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE48', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "88de7a80";\r\n } "7cd5181a";\r\n } "3c6f199b";\r\n}\r\n\r\ngroup CccconditionCccb23de49(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b581f2e7";\r\n } "1cc86632";\r\n } "f58199bf";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE50') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE50', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b871091f";\r\n } "3562dee3";\r\n } "ba9bd30c";\r\n}\r\n\r\ngroup CccconditionCccb23de52(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "eb984457";\r\n } "124cd652";\r\n } "c77f1d4e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE52a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE52a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "3a81b32e";\r\n } "2c4ce5dc";\r\n } "510e64e3";\r\n}\r\n\r\ngroup CccconditionCccb23de53(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0f3a6755";\r\n } "863552f3";\r\n } "35439fa7";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE53a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE53a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "172c98f5";\r\n } "77f7bdf7";\r\n } "6481f816";\r\n}\r\n\r\ngroup CccconditionCccb23de54(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "fafd5b25";\r\n } "61c9d7c8";\r\n } "78b12d83";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE55') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE55', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "703de849";\r\n } "82394009";\r\n } "626ae745";\r\n}\r\n\r\ngroup CccconditionCccb23de56(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "9a929971";\r\n } "b7c8a104";\r\n } "0dd631f3";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de57(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "2c0d395c";\r\n } "f04e9b50";\r\n } "af692636";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE57a') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE57a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0273738c";\r\n } "3e41ae3b";\r\n } "d8c20ee2";\r\n}\r\n\r\ngroup CccconditionCccb23de58(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "d913f145";\r\n } "ecd18d6c";\r\n } "a88f6164";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de59(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8f74fb03";\r\n } "4cae7202";\r\n } "b30797dc";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n src.item first as item where (linkId = 'Ccc.B23.DE60') and answer.exists() then {\r\n item.answer first as a where a.value = true then {\r\n src -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/postcoordination', ext.value = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE60', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "da15433c";\r\n } "8622d264";\r\n } "0e509ca1";\r\n}\r\n\r\ngroup CccconditionCccb23de61(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "9134fe36";\r\n } "280470c5";\r\n } "8aa97bdd";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n } "671ed411";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de107(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "4b1b0c22";\r\n } "d096a052";\r\n } "8e8ee9b4";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de108(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "3de5c106";\r\n } "58d1e9ce";\r\n } "81cf1715";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de01(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE01', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "38c776ef";\r\n } "dcfcb65d";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "9ef26449";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de03(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE03', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "97f42802";\r\n } "539676b6";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "cfd7a9f6";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8ede6446";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de10(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE10', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "901c4fa4";\r\n } "39e6334e";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "91de6eff";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "39e0fe5e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "da0791a5";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "b16e2ac9";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de16(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE16', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "672b006b";\r\n } "c458ff7e";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "56c3513e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de17(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE17', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bd34c671";\r\n } "0cc3c5de";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "bcc64d8c";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de18(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE18', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "422373d9";\r\n } "8f1dcdd2";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c59123ce";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de18a(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE18.a', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b2c23048";\r\n } "422663d8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "25273533";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de100(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE100', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "515f36ee";\r\n } "e9f1a397";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8c3a108e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de6101(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6101', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6a9c0b56";\r\n } "970b5053";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "bcd054c6";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de6102(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6102', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "1522be60";\r\n } "18159ba1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d067f021";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de6103(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE6103', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "248ab88b";\r\n } "9f402fa1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "63883e24";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de30(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE30', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "60650f2a";\r\n } "453d3cff";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "a68b918e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de31(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE31', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "ab1c5076";\r\n } "11935d2f";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "822b0f6f";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de32(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE32', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b634fab6";\r\n } "4ead4dac";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d4c988ea";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de33(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE33', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "57e99b51";\r\n } "82481cbe";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "fe5543e1";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de19(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE19', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8cb2637d";\r\n } "69ddcad6";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "70cc0dd3";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de104(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE104', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6627d17b";\r\n } "008eb1e8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "20bd1c4d";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de105(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE105', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bfa6a728";\r\n } "503587f4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "fef353a9";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de27(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE27', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "10a11fd8";\r\n } "7e9f6c96";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0290fee9";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de28(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE28', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "bd635f9e";\r\n } "ac92c02f";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "83be838f";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de29(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE29', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "59037b30";\r\n } "cfcf61aa";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "6e4bf79f";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de62(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE62', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "1d89b4e7";\r\n } "7a9976ac";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "57723227";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de63(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE63', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "7160c75f";\r\n } "f74f505b";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "33888f75";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de64(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE64', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "f6ad72a0";\r\n } "9035e530";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1cf80989";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de34(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE34', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e5f9a7d3";\r\n } "ff3ce60d";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d108e57f";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de35(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE35', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "7f5b9cb3";\r\n } "30144f76";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1b6c2929";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de41(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE41', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e288c87d";\r\n } "8173bdfa";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "6346630d";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de42(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE42', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "94e86dfd";\r\n } "1282d921";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8bdb0925";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de44(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE44', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "e3f3e6d5";\r\n } "bed4feb4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "01ad58f9";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de45(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE45', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "606d51c8";\r\n } "7d5d59ca";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8d718fac";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de47(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE47', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "6bae8d25";\r\n } "5e31a07c";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0403cb73";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de49(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE49', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "b581f2e7";\r\n } "1cc86632";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "01b77ffc";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de52(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE52', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "eb984457";\r\n } "124cd652";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4f42555c";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de53(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE53', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0f3a6755";\r\n } "863552f3";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "28aceb4b";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de54(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE54', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "fafd5b25";\r\n } "61c9d7c8";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4a7c61b0";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de56(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE56', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "9a929971";\r\n } "b7c8a104";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "0a350e2a";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de57(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE57', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "2c0d395c";\r\n } "f04e9b50";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4581b0aa";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de58(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE58', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "d913f145";\r\n } "ecd18d6c";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "52e04bef";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de59(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE59', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8f74fb03";\r\n } "4cae7202";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "4fd3684b";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de61(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE61', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "9134fe36";\r\n } "280470c5";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "ebbc1c98";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c5746d18";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de107(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE107', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "4b1b0c22";\r\n } "d096a052";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "1df42064";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de108(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE108', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "3de5c106";\r\n } "58d1e9ce";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "474da804";\r\n}\r\n\r\ngroup Cccconditioncollectorcollector(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "ab5440b5";\r\n } "6fc817a4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d8e38123";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b23.classification.m" = "emcare.b23.classification.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarecondition" alias 'EmCare Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE83') and answer.exists() then {\r\n item then emcareconditionemcareb23de83(src, item, tgt) "178343d7";\r\n } "a8097d41";\r\n } "ad9073a1";\r\n } "83bc4493";\r\n } "09b682e0";\r\n src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE06') and answer.exists() then {\r\n item then emcareconditionemcareb23de06(src, item, tgt) "9c759e88";\r\n } "060d6b0f";\r\n } "6909c9cb";\r\n } "80a2a642";\r\n } "93603109";\r\n src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE85') and answer.exists() then {\r\n item then emcareconditionemcareb23de85(src, item, tgt) "935222a8";\r\n } "d50b3ee7";\r\n } "b5ace6e4";\r\n } "6e6a68c3";\r\n } "a87e641b";\r\n src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE86') and answer.exists() then {\r\n item then emcareconditionemcareb23de86(src, item, tgt) "7b5655d0";\r\n } "a02dff61";\r\n } "f6d60d42";\r\n } "e66f46ee";\r\n } "67b6f016";\r\n src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE106') and answer.exists() then {\r\n item then emcareconditionemcareb23de106(src, item, tgt) "1385c52a";\r\n } "f5b0e691";\r\n } "cffa49c6";\r\n } "f8df0e47";\r\n } "a8b97e3f";\r\n src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE87') and answer.exists() then {\r\n item then emcareconditionemcareb23de87(src, item, tgt) "ba174f0b";\r\n } "30f36551";\r\n } "7e51b325";\r\n } "efdd0e20";\r\n } "2521504d";\r\n src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE88') and answer.exists() then {\r\n item then emcareconditionemcareb23de88(src, item, tgt) "f570c42d";\r\n } "f0521ba0";\r\n } "999ae6b0";\r\n } "0077703f";\r\n } "3efea57e";\r\n src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE89') and answer.exists() then {\r\n item then emcareconditionemcareb23de89(src, item, tgt) "226a96b3";\r\n } "72e06a74";\r\n } "d6e439e9";\r\n } "09b39961";\r\n } "cc634914";\r\n src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE13') and answer.exists() then {\r\n item then emcareconditionemcareb23de13(src, item, tgt) "66186a0c";\r\n } "a1450efb";\r\n } "076ff820";\r\n } "08bcb577";\r\n } "feb0d657";\r\n src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE14') and answer.exists() then {\r\n item then emcareconditionemcareb23de14(src, item, tgt) "2dcb0090";\r\n } "88d1e8c7";\r\n } "3ef7f05b";\r\n } "90e804b6";\r\n } "d819a392";\r\n src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE15') and answer.exists() then {\r\n item then emcareconditionemcareb23de15(src, item, tgt) "fe470a2a";\r\n } "21fccbde";\r\n } "2eb659f8";\r\n } "79ef4ab2";\r\n } "e3b54720";\r\n src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE94') and answer.exists() then {\r\n item then emcareconditionemcareb23de94(src, item, tgt) "4bfe2573";\r\n } "a323ced7";\r\n } "4238505f";\r\n } "cb434a7e";\r\n } "974a1d36";\r\n src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'EmCare.B23.DE98') and answer.exists() then {\r\n item then emcareconditionemcareb23de98(src, item, tgt) "ec699e2c";\r\n } "19da18a9";\r\n } "b82b0c05";\r\n } "67075fc4";\r\n } "51f9d108";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE83') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de83(src, item, tgt) "a49f2674";\r\n } "5a82b6a2";\r\n } "d2d9497c";\r\n } "c5fd054e";\r\n } "0a3b92c9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE06') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de06(src, item, tgt) "ab6f052f";\r\n } "e87439ac";\r\n } "37d42e73";\r\n } "7708b4b0";\r\n } "ca7b518e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE85') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de85(src, item, tgt) "34be21c7";\r\n } "dd73e267";\r\n } "17b29f54";\r\n } "7a81127f";\r\n } "3bb7e65c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE86') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de86(src, item, tgt) "85e79f33";\r\n } "b37e1f00";\r\n } "5ebec517";\r\n } "742af28b";\r\n } "125b7e31";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE106') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de106(src, item, tgt) "5f3c80c3";\r\n } "8a9ab3d6";\r\n } "b3badac5";\r\n } "8aec9c45";\r\n } "332b8a91";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE87') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de87(src, item, tgt) "69dafef9";\r\n } "7d2dd85f";\r\n } "3814725e";\r\n } "98d3b1f5";\r\n } "4afba6d2";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE88') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de88(src, item, tgt) "b8d9f845";\r\n } "65150a1a";\r\n } "43b46f0d";\r\n } "c4a03e24";\r\n } "4ed6008e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE89') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de89(src, item, tgt) "e0b2a7ea";\r\n } "5f78e785";\r\n } "4b1fc155";\r\n } "ad230210";\r\n } "fd95ca9c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE13') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de13(src, item, tgt) "ca1c2344";\r\n } "e291ac38";\r\n } "a3790ce2";\r\n } "df1da7ee";\r\n } "db30808b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE14') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de14(src, item, tgt) "d2d217d7";\r\n } "71ec8c01";\r\n } "eec21165";\r\n } "4bec0867";\r\n } "b6cebe17";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE15') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de15(src, item, tgt) "d06cdfa3";\r\n } "78497d5c";\r\n } "5f0e524b";\r\n } "84c7d9e0";\r\n } "5fb77efc";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE94') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de94(src, item, tgt) "fd905dcf";\r\n } "887a5cf4";\r\n } "e9cd9662";\r\n } "d351f4bc";\r\n } "1277893a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'EmCare.B23.DE98') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectoremcareb23de98(src, item, tgt) "50233ad8";\r\n } "3c87eb32";\r\n } "ac7c8731";\r\n } "18115b63";\r\n } "a8b5fbe8";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then emcareconditioncollectorcollector(src, item, tgt) "dee30196";\r\n } "dbad65ac";\r\n } "652cfd04";\r\n } "63e7ab00";\r\n } "d596b39a";\r\n}\r\n\r\ngroup emcareconditionemcareb23de83(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8e761921";\r\n } "a10c1e7b";\r\n } "13fd46f9";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n } "558d6c0d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de85(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "edf923c3";\r\n } "a2ce3a97";\r\n } "6f3a3752";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de86(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "342850aa";\r\n } "9338b358";\r\n } "fc719a3c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n } "671ed411";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de87(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n } "62727c30";\r\n } "9ff74c9e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de88(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n } "360a74b4";\r\n } "36ea706b";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de89(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n } "10f03284";\r\n } "0d943b47";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n } "dc54929c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n } "d565e84e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n } "b194144a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de94(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "61234ed0";\r\n } "ba5673dd";\r\n } "b957f076";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditionemcareb23de98(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n } "cbe98666";\r\n } "98163aba";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de83(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "8e761921";\r\n } "a10c1e7b";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "64537b70";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8ede6446";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de85(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "edf923c3";\r\n } "a2ce3a97";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "7ab58b18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de86(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "342850aa";\r\n } "9338b358";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c7e15e0e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c5746d18";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de87(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "01f1ca5f";\r\n } "62727c30";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8dee988b";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de88(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "2803d2d8";\r\n } "360a74b4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "e6ded7f8";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de89(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "d0ba1006";\r\n } "10f03284";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "38f340fb";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "39e0fe5e";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "da0791a5";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "b16e2ac9";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de94(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "61234ed0";\r\n } "ba5673dd";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "82182761";\r\n}\r\n\r\ngroup emcareconditioncollectoremcareb23de98(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'EmCare.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "11d6b9d2";\r\n } "cbe98666";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "869e7605";\r\n}\r\n\r\ngroup emcareconditioncollectorcollector(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes' "ab5440b5";\r\n } "6fc817a4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d8e38123";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b23.classification.m" = "Ccc.b23.classification.m"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/condition" alias 'Condition' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Ccccondition" alias 'Ccc Condition' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B23.DE83') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE83') and answer.exists() then {\r\n item then CccconditionCccb23de83(src, item, tgt) "178343d7";\r\n } "a8097d41";\r\n } "ad9073a1";\r\n } "83bc4493";\r\n } "09b682e0";\r\n src.item first as item where (linkId = 'Ccc.B23.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE06') and answer.exists() then {\r\n item then CccconditionCccb23de06(src, item, tgt) "9c759e88";\r\n } "060d6b0f";\r\n } "6909c9cb";\r\n } "80a2a642";\r\n } "93603109";\r\n src.item first as item where (linkId = 'Ccc.B23.DE85') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE85') and answer.exists() then {\r\n item then CccconditionCccb23de85(src, item, tgt) "935222a8";\r\n } "d50b3ee7";\r\n } "b5ace6e4";\r\n } "6e6a68c3";\r\n } "a87e641b";\r\n src.item first as item where (linkId = 'Ccc.B23.DE86') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE86') and answer.exists() then {\r\n item then CccconditionCccb23de86(src, item, tgt) "7b5655d0";\r\n } "a02dff61";\r\n } "f6d60d42";\r\n } "e66f46ee";\r\n } "67b6f016";\r\n src.item first as item where (linkId = 'Ccc.B23.DE106') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE106') and answer.exists() then {\r\n item then CccconditionCccb23de106(src, item, tgt) "1385c52a";\r\n } "f5b0e691";\r\n } "cffa49c6";\r\n } "f8df0e47";\r\n } "a8b97e3f";\r\n src.item first as item where (linkId = 'Ccc.B23.DE87') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE87') and answer.exists() then {\r\n item then CccconditionCccb23de87(src, item, tgt) "ba174f0b";\r\n } "30f36551";\r\n } "7e51b325";\r\n } "efdd0e20";\r\n } "2521504d";\r\n src.item first as item where (linkId = 'Ccc.B23.DE88') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE88') and answer.exists() then {\r\n item then CccconditionCccb23de88(src, item, tgt) "f570c42d";\r\n } "f0521ba0";\r\n } "999ae6b0";\r\n } "0077703f";\r\n } "3efea57e";\r\n src.item first as item where (linkId = 'Ccc.B23.DE89') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE89') and answer.exists() then {\r\n item then CccconditionCccb23de89(src, item, tgt) "226a96b3";\r\n } "72e06a74";\r\n } "d6e439e9";\r\n } "09b39961";\r\n } "cc634914";\r\n src.item first as item where (linkId = 'Ccc.B23.DE13') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE13') and answer.exists() then {\r\n item then CccconditionCccb23de13(src, item, tgt) "66186a0c";\r\n } "a1450efb";\r\n } "076ff820";\r\n } "08bcb577";\r\n } "feb0d657";\r\n src.item first as item where (linkId = 'Ccc.B23.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE14') and answer.exists() then {\r\n item then CccconditionCccb23de14(src, item, tgt) "2dcb0090";\r\n } "88d1e8c7";\r\n } "3ef7f05b";\r\n } "90e804b6";\r\n } "d819a392";\r\n src.item first as item where (linkId = 'Ccc.B23.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE15') and answer.exists() then {\r\n item then CccconditionCccb23de15(src, item, tgt) "fe470a2a";\r\n } "21fccbde";\r\n } "2eb659f8";\r\n } "79ef4ab2";\r\n } "e3b54720";\r\n src.item first as item where (linkId = 'Ccc.B23.DE94') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE94') and answer.exists() then {\r\n item then CccconditionCccb23de94(src, item, tgt) "4bfe2573";\r\n } "a323ced7";\r\n } "4238505f";\r\n } "cb434a7e";\r\n } "974a1d36";\r\n src.item first as item where (linkId = 'Ccc.B23.DE98') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src.item first as item where (linkId = 'Ccc.B23.DE98') and answer.exists() then {\r\n item then CccconditionCccb23de98(src, item, tgt) "ec699e2c";\r\n } "19da18a9";\r\n } "b82b0c05";\r\n } "67075fc4";\r\n } "51f9d108";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE83') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de83(src, item, tgt) "a49f2674";\r\n } "5a82b6a2";\r\n } "d2d9497c";\r\n } "c5fd054e";\r\n } "0a3b92c9";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE06') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de06(src, item, tgt) "ab6f052f";\r\n } "e87439ac";\r\n } "37d42e73";\r\n } "7708b4b0";\r\n } "ca7b518e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE85') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de85(src, item, tgt) "34be21c7";\r\n } "dd73e267";\r\n } "17b29f54";\r\n } "7a81127f";\r\n } "3bb7e65c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE86') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de86(src, item, tgt) "85e79f33";\r\n } "b37e1f00";\r\n } "5ebec517";\r\n } "742af28b";\r\n } "125b7e31";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE106') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de106(src, item, tgt) "5f3c80c3";\r\n } "8a9ab3d6";\r\n } "b3badac5";\r\n } "8aec9c45";\r\n } "332b8a91";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE87') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de87(src, item, tgt) "69dafef9";\r\n } "7d2dd85f";\r\n } "3814725e";\r\n } "98d3b1f5";\r\n } "4afba6d2";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE88') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de88(src, item, tgt) "b8d9f845";\r\n } "65150a1a";\r\n } "43b46f0d";\r\n } "c4a03e24";\r\n } "4ed6008e";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE89') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de89(src, item, tgt) "e0b2a7ea";\r\n } "5f78e785";\r\n } "4b1fc155";\r\n } "ad230210";\r\n } "fd95ca9c";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE13') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de13(src, item, tgt) "ca1c2344";\r\n } "e291ac38";\r\n } "a3790ce2";\r\n } "df1da7ee";\r\n } "db30808b";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE14') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de14(src, item, tgt) "d2d217d7";\r\n } "71ec8c01";\r\n } "eec21165";\r\n } "4bec0867";\r\n } "b6cebe17";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE15') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de15(src, item, tgt) "d06cdfa3";\r\n } "78497d5c";\r\n } "5f0e524b";\r\n } "84c7d9e0";\r\n } "5fb77efc";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE94') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de94(src, item, tgt) "fd905dcf";\r\n } "887a5cf4";\r\n } "e9cd9662";\r\n } "d351f4bc";\r\n } "1277893a";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'Ccc.B23.DE98') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then CccconditioncollectorCccb23de98(src, item, tgt) "50233ad8";\r\n } "3c87eb32";\r\n } "ac7c8731";\r\n } "18115b63";\r\n } "a8b5fbe8";\r\n src where src.item.where(linkId = 'collector').answer.where(value.code = 'collector') then {\r\n src.item first as item where (linkId = 'collector') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Condition/', uuid) "9805d737";\r\n src -> entry.resource = create('Condition') as tgt then {\r\n src then Cccconditioncollectorcollector(src, item, tgt) "dee30196";\r\n } "dbad65ac";\r\n } "652cfd04";\r\n } "63e7ab00";\r\n } "d596b39a";\r\n}\r\n\r\ngroup CccconditionCccb23de83(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8e761921";\r\n } "a10c1e7b";\r\n } "13fd46f9";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n } "558d6c0d";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de85(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "edf923c3";\r\n } "a2ce3a97";\r\n } "6f3a3752";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de86(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "342850aa";\r\n } "9338b358";\r\n } "fc719a3c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n } "671ed411";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de87(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "01f1ca5f";\r\n } "62727c30";\r\n } "9ff74c9e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de88(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "2803d2d8";\r\n } "360a74b4";\r\n } "36ea706b";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de89(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "d0ba1006";\r\n } "10f03284";\r\n } "0d943b47";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n } "dc54929c";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n } "d565e84e";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n } "b194144a";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de94(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "61234ed0";\r\n } "ba5673dd";\r\n } "b957f076";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditionCccb23de98(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "11d6b9d2";\r\n } "cbe98666";\r\n } "98163aba";\r\n item.answer where value.code = 'agree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "05de813c";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'confirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "eb81c749";\r\n } "a8956d4e";\r\n item.answer where value.code = 'disagree' then {\r\n src -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'inactive', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "d058c96f";\r\n src -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'refuted', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "e74cae6e";\r\n } "2219f1ae";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de83(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE83', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "8e761921";\r\n } "a10c1e7b";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "64537b70";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de06(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE06', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "dd0fd01c";\r\n } "8ef845b0";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8ede6446";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de85(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE85', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "edf923c3";\r\n } "a2ce3a97";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "7ab58b18";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de86(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE86', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "342850aa";\r\n } "9338b358";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c7e15e0e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de106(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE106', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "70f0a4fa";\r\n } "d8d6d130";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "c5746d18";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de87(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE87', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "01f1ca5f";\r\n } "62727c30";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "8dee988b";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de88(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE88', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "2803d2d8";\r\n } "360a74b4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "e6ded7f8";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de89(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE89', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "d0ba1006";\r\n } "10f03284";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "38f340fb";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de13(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE13', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "0b87b4e7";\r\n } "6cc1c549";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "39e0fe5e";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de14(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE14', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "c77e81e6";\r\n } "a3de578a";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "da0791a5";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de15(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE15', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "16e4a2c3";\r\n } "088a39f1";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "b16e2ac9";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de94(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE94', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "61234ed0";\r\n } "ba5673dd";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "82182761";\r\n}\r\n\r\ngroup CccconditioncollectorCccb23de98(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'Ccc.B23.DE98', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "11d6b9d2";\r\n } "cbe98666";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "869e7605";\r\n}\r\n\r\ngroup Cccconditioncollectorcollector(source src, source item, target tgt) {\r\n item.answer first as a then {\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n src.encounter as en -> tgt.encounter = en "553aae7e";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.recordedDate = val "ea256bb4";\r\n } "46018ce4";\r\n } "cce2a9b1";\r\n src -> tgt.code = create('CodeableConcept') as cs then {\r\n src -> tgt.code = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'collector', ccs.system = 'https://smart.who.int/ccc/CodeSystem/Ccc-custom-codes' "ab5440b5";\r\n } "6fc817a4";\r\n a -> tgt.clinicalStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'active', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-clinical' "b7901585";\r\n a -> tgt.verificationStatus = create('CodeableConcept') as cs, cs.coding = create('Coding') as ccs, ccs.code = 'unconfirmed', ccs.system = 'http://terminology.hl7.org/CodeSystem/condition-ver-status' "3e544e1e";\r\n } "d8e38123";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b6.measurements" = "emcare.b6.measurements"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de01(src, tgt) "7b9e1570";\r\n } "9adbf767";\r\n } "a36f7a7c";\r\n } "5af679c2";\r\n src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de04(src, tgt) "67f4a10a";\r\n } "0e7daada";\r\n } "536a3c54";\r\n } "1e7dc3b3";\r\n src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de05(src, tgt) "1b781b40";\r\n } "b078a223";\r\n } "8261a595";\r\n } "f69a4aa0";\r\n src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de01a(src, tgt) "12e03591";\r\n } "ce53c93f";\r\n } "b254b7a3";\r\n } "75778e5d";\r\n src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de06(src, tgt) "12cee51c";\r\n } "2efb0b06";\r\n } "b561f2d8";\r\n } "a4bb9383";\r\n src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de08(src, tgt) "6bb35e76";\r\n } "eb449882";\r\n } "e71738d1";\r\n } "b739680e";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de09(src, tgt) "266493b1";\r\n } "2f726482";\r\n } "6e52b729";\r\n } "8eeae5c7";\r\n } "b0d72fdc";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de11(src, tgt) "561b6a20";\r\n } "e820b17c";\r\n } "083c0960";\r\n } "89d9cbf4";\r\n } "407446d8";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de12(src, tgt) "68ca10f0";\r\n } "c5484336";\r\n } "36f4bed7";\r\n } "af843ed1";\r\n } "3eece966";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de16(src, tgt) "e096bb18";\r\n } "bd26fdf7";\r\n } "6699c1df";\r\n } "22423885";\r\n } "f65b099d";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de17(src, tgt) "ba2a3c82";\r\n } "e7d4b396";\r\n } "5b9abbd1";\r\n } "69c61b5c";\r\n } "ec872a8f";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de17a(src, tgt) "7bc3b5ea";\r\n } "5622cb01";\r\n } "d4830ac3";\r\n } "75bc4091";\r\n } "40e94db6";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb6de18(src, tgt) "307489c1";\r\n } "e8491d3e";\r\n } "9e7c1f1c";\r\n } "4570d962";\r\n } "f83a9a0e";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE01' "code-emcareb6de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "74f627a9";\r\n}\r\n\r\ngroup emcareobservationemcareb6de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE04' "code-emcareb6de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a27d71d0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE05' "code-emcareb6de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb6de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb6de05";\r\n } "bdab9370";\r\n } "fe4a3fce";\r\n}\r\n\r\ngroup emcareobservationemcareb6de01a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de01a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE01A' "code-emcareb6de01a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE01A') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val -> tgt.value = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.code = val, c.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', tgt.status = 'final' "759a9a54";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "a471ce48";\r\n}\r\n\r\ngroup emcareobservationemcareb6de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE06' "code-emcareb6de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "39925fe2";\r\n}\r\n\r\ngroup emcareobservationemcareb6de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE08' "code-emcareb6de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B6.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dc896557";\r\n}\r\n\r\ngroup emcareobservationemcareb6de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE09' "code-emcareb6de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "589bbaf1";\r\n } "a045bbd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de11(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de11";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE11' "code-emcareb6de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE11') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "d64ae780";\r\n } "9a6a0b00";\r\n}\r\n\r\ngroup emcareobservationemcareb6de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE12' "code-emcareb6de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "c68f5944";\r\n } "145f1ff6";\r\n}\r\n\r\ngroup emcareobservationemcareb6de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE16' "code-emcareb6de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb6de16";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb6de16";\r\n } "bdab9370";\r\n } "c4642432";\r\n } "8e8f1cd4";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de17";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE17' "code-emcareb6de17";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE17') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "66a9743a";\r\n } "b27154a0";\r\n}\r\n\r\ngroup emcareobservationemcareb6de17a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de17a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE17a' "code-emcareb6de17a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE17a') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a25ca60a";\r\n } "04002c97";\r\n}\r\n\r\ngroup emcareobservationemcareb6de18(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb6de18";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B6.DE18' "code-emcareb6de18";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'EmCare.B6.DE18') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "a14ebcf7";\r\n } "72053a9a";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b6.measurements" = "Ccc.b6.measurements"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B6.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de01(src, tgt) "7b9e1570";\r\n } "9adbf767";\r\n } "a36f7a7c";\r\n } "5af679c2";\r\n src.item first as item where (linkId = 'Ccc.B6.DE04') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de04(src, tgt) "67f4a10a";\r\n } "0e7daada";\r\n } "536a3c54";\r\n } "1e7dc3b3";\r\n src.item first as item where (linkId = 'Ccc.B6.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de05(src, tgt) "1b781b40";\r\n } "b078a223";\r\n } "8261a595";\r\n } "f69a4aa0";\r\n src.item first as item where (linkId = 'Ccc.B6.DE01A') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de01a(src, tgt) "12e03591";\r\n } "ce53c93f";\r\n } "b254b7a3";\r\n } "75778e5d";\r\n src.item first as item where (linkId = 'Ccc.B6.DE06') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de06(src, tgt) "12cee51c";\r\n } "2efb0b06";\r\n } "b561f2d8";\r\n } "a4bb9383";\r\n src.item first as item where (linkId = 'Ccc.B6.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de08(src, tgt) "6bb35e76";\r\n } "eb449882";\r\n } "e71738d1";\r\n } "b739680e";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de09(src, tgt) "266493b1";\r\n } "2f726482";\r\n } "6e52b729";\r\n } "8eeae5c7";\r\n } "b0d72fdc";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE11') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de11(src, tgt) "561b6a20";\r\n } "e820b17c";\r\n } "083c0960";\r\n } "89d9cbf4";\r\n } "407446d8";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE12') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de12(src, tgt) "68ca10f0";\r\n } "c5484336";\r\n } "36f4bed7";\r\n } "af843ed1";\r\n } "3eece966";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de16(src, tgt) "e096bb18";\r\n } "bd26fdf7";\r\n } "6699c1df";\r\n } "22423885";\r\n } "f65b099d";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE17') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de17(src, tgt) "ba2a3c82";\r\n } "e7d4b396";\r\n } "5b9abbd1";\r\n } "69c61b5c";\r\n } "ec872a8f";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE17a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de17a(src, tgt) "7bc3b5ea";\r\n } "5622cb01";\r\n } "d4830ac3";\r\n } "75bc4091";\r\n } "40e94db6";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE18') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb6de18(src, tgt) "307489c1";\r\n } "e8491d3e";\r\n } "9e7c1f1c";\r\n } "4570d962";\r\n } "f83a9a0e";\r\n}\r\n\r\ngroup CccobservationCccb6de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE01' "code-Cccb6de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "74f627a9";\r\n}\r\n\r\ngroup CccobservationCccb6de04(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de04";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE04' "code-Cccb6de04";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a27d71d0";\r\n}\r\n\r\ngroup CccobservationCccb6de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE05' "code-Cccb6de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb6de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb6de05";\r\n } "bdab9370";\r\n } "fe4a3fce";\r\n}\r\n\r\ngroup CccobservationCccb6de01a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de01a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE01A' "code-Cccb6de01a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE01A') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n 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";\r\n } "1b820ab0";\r\n } "d39f9088";\r\n } "a471ce48";\r\n}\r\n\r\ngroup CccobservationCccb6de06(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de06";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE06' "code-Cccb6de06";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "39925fe2";\r\n}\r\n\r\ngroup CccobservationCccb6de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE08' "code-Cccb6de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B6.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "dc896557";\r\n}\r\n\r\ngroup CccobservationCccb6de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE09' "code-Cccb6de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "589bbaf1";\r\n } "a045bbd4";\r\n}\r\n\r\ngroup CccobservationCccb6de11(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de11";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE11' "code-Cccb6de11";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE11') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "d64ae780";\r\n } "9a6a0b00";\r\n}\r\n\r\ngroup CccobservationCccb6de12(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de12";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE12' "code-Cccb6de12";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "c68f5944";\r\n } "145f1ff6";\r\n}\r\n\r\ngroup CccobservationCccb6de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE16' "code-Cccb6de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb6de16";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb6de16";\r\n } "bdab9370";\r\n } "c4642432";\r\n } "8e8f1cd4";\r\n}\r\n\r\ngroup CccobservationCccb6de17(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de17";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE17' "code-Cccb6de17";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE17') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.value = val, tgt.status = 'final' "afa0ccc0";\r\n } "d40466ff";\r\n } "66a9743a";\r\n } "b27154a0";\r\n}\r\n\r\ngroup CccobservationCccb6de17a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de17a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE17a' "code-Cccb6de17a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE17a') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "a25ca60a";\r\n } "04002c97";\r\n}\r\n\r\ngroup CccobservationCccb6de18(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb6de18";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B6.DE18' "code-Cccb6de18";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'HeightOrLength' then {\r\n itm1.item first as item where (linkId = 'Ccc.B6.DE18') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "a14ebcf7";\r\n } "72053a9a";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.b7.lti-dangersigns" = "emcare.b7.lti-dangersigns"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de02(src, tgt) "004b4d1e";\r\n } "92e7f5f9";\r\n } "402826af";\r\n } "8c26175a";\r\n src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7b8b9de01(src, tgt) "ff2fa2ef";\r\n } "a8c4cecd";\r\n } "cab32791";\r\n } "8f0ade51";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de03(src, tgt) "f2e89805";\r\n } "8dded58a";\r\n } "6d815194";\r\n } "b1580360";\r\n } "f9ff931c";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de08b(src, tgt) "7c424dce";\r\n } "090c71e8";\r\n } "366ba7ba";\r\n } "65aaf8e5";\r\n } "340cad6a";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de08(src, tgt) "279d6969";\r\n } "20cc88b6";\r\n } "3f40ba3d";\r\n } "350d6fc4";\r\n } "eaa550b2";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de08a(src, tgt) "d2861aff";\r\n } "7be6660a";\r\n } "bd06a10d";\r\n } "1343a39a";\r\n } "d8ac86b0";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de09(src, tgt) "3f6a9726";\r\n } "2c4ac41f";\r\n } "98869034";\r\n } "0ea146b2";\r\n } "dd9b5c52";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb7de10(src, tgt) "1fe53b0d";\r\n } "0fb952bc";\r\n } "980ae740";\r\n } "5b813bca";\r\n } "492052bb";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "5b2cdf2b";\r\n } "147ec831";\r\n } "e1f072a2";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "9758fd8e";\r\n } "680dcb34";\r\n } "8bc21454";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "d955cd1e";\r\n } "29fc59e7";\r\n } "5a220c96";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "408d099b";\r\n } "f64298f5";\r\n } "28f93c51";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "756331ed";\r\n } "bc80f5f5";\r\n } "0636116b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE02' "code-emcareb7de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B7.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de02";\r\n } "bdab9370";\r\n } "25c89b41";\r\n}\r\n\r\ngroup emcareobservationemcareb7b8b9de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7b8b9de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7-B8-B9.DE01' "code-emcareb7b8b9de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B7-B8-B9.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "1deb5925";\r\n}\r\n\r\ngroup emcareobservationemcareb7de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE03' "code-emcareb7de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de03";\r\n } "bdab9370";\r\n } "a2c65533";\r\n } "06440f2e";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de08b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08b' "code-emcareb7de08b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de08b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de08b";\r\n } "bdab9370";\r\n } "9b1cc305";\r\n } "5c09828f";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08' "code-emcareb7de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de08";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de08";\r\n } "bdab9370";\r\n } "2bfe418a";\r\n } "899ae4be";\r\n}\r\n\r\ngroup emcareobservationemcareb7de08a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de08a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE08a' "code-emcareb7de08a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE08a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de08a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de08a";\r\n } "bdab9370";\r\n } "f01cf4cb";\r\n } "dffa204b";\r\n}\r\n\r\ngroup emcareobservationemcareb7de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE09' "code-emcareb7de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de09";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de09";\r\n } "bdab9370";\r\n } "d2857a7f";\r\n } "9311a6c3";\r\n}\r\n\r\ngroup emcareobservationemcareb7de10(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb7de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B7.DE10' "code-emcareb7de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'EmCare.B7.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb7de10";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb7de10";\r\n } "bdab9370";\r\n } "86a60301";\r\n } "d7b8fbb0";\r\n}\r\n\r\ngroup emcareobservationemcareb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE08' "code-emcareb22de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "217a0abc";\r\n } "1ebe5f9b";\r\n } "4113c5c7";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14' "code-emcareb22de14";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "b72aac92";\r\n } "e7d47de7";\r\n } "0204726e";\r\n}\r\n\r\ngroup emcareobservationemcareb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE14a' "code-emcareb22de14a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de14a";\r\n } "bdab9370";\r\n } "120b0bc5";\r\n } "ffa20ee2";\r\n } "e1505882";\r\n}\r\n\r\ngroup emcareobservationemcareb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE15' "code-emcareb22de15";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb22de15";\r\n } "bdab9370";\r\n } "f886f65c";\r\n } "0ff7ff35";\r\n } "455546fc";\r\n}\r\n\r\ngroup emcareobservationemcareb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B22.DE16' "code-emcareb22de16";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'EmCare.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'EmCare.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "56e7c54b";\r\n } "270c6d04";\r\n } "1b98a048";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.b7.lti-dangersigns" = "Ccc.b7.lti-dangersigns"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src.item first as item where (linkId = 'Ccc.B7.DE02') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de02(src, tgt) "004b4d1e";\r\n } "92e7f5f9";\r\n } "402826af";\r\n } "8c26175a";\r\n src.item first as item where (linkId = 'Ccc.B7-B8-B9.DE01') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7b8b9de01(src, tgt) "ff2fa2ef";\r\n } "a8c4cecd";\r\n } "cab32791";\r\n } "8f0ade51";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE03') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de03(src, tgt) "f2e89805";\r\n } "8dded58a";\r\n } "6d815194";\r\n } "b1580360";\r\n } "f9ff931c";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08b') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de08b(src, tgt) "7c424dce";\r\n } "090c71e8";\r\n } "366ba7ba";\r\n } "65aaf8e5";\r\n } "340cad6a";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de08(src, tgt) "279d6969";\r\n } "20cc88b6";\r\n } "3f40ba3d";\r\n } "350d6fc4";\r\n } "eaa550b2";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de08a(src, tgt) "d2861aff";\r\n } "7be6660a";\r\n } "bd06a10d";\r\n } "1343a39a";\r\n } "d8ac86b0";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE09') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de09(src, tgt) "3f6a9726";\r\n } "2c4ac41f";\r\n } "98869034";\r\n } "0ea146b2";\r\n } "dd9b5c52";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE10') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb7de10(src, tgt) "1fe53b0d";\r\n } "0fb952bc";\r\n } "980ae740";\r\n } "5b813bca";\r\n } "492052bb";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de08(src, tgt) "d34db40c";\r\n } "bd8403a6";\r\n } "09eb3e1a";\r\n } "5b2cdf2b";\r\n } "147ec831";\r\n } "e1f072a2";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14(src, tgt) "128f555c";\r\n } "2cba61ee";\r\n } "1eb502ac";\r\n } "9758fd8e";\r\n } "680dcb34";\r\n } "8bc21454";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de14a(src, tgt) "7b46291c";\r\n } "17f1508c";\r\n } "64f82f5e";\r\n } "d955cd1e";\r\n } "29fc59e7";\r\n } "5a220c96";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de15(src, tgt) "0d25d61c";\r\n } "49095bbf";\r\n } "7ffa5829";\r\n } "408d099b";\r\n } "f64298f5";\r\n } "28f93c51";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb22de16(src, tgt) "2bef72fa";\r\n } "f426fdde";\r\n } "f53bf22c";\r\n } "756331ed";\r\n } "bc80f5f5";\r\n } "0636116b";\r\n}\r\n\r\ngroup CccobservationCccb7de02(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de02";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE02' "code-Cccb7de02";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B7.DE02') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de02";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de02";\r\n } "bdab9370";\r\n } "25c89b41";\r\n}\r\n\r\ngroup CccobservationCccb7b8b9de01(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7b8b9de01";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7-B8-B9.DE01' "code-Cccb7b8b9de01";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B7-B8-B9.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "1deb5925";\r\n}\r\n\r\ngroup CccobservationCccb7de03(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de03";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE03' "code-Cccb7de03";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE03') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de03";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de03";\r\n } "bdab9370";\r\n } "a2c65533";\r\n } "06440f2e";\r\n}\r\n\r\ngroup CccobservationCccb7de08b(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de08b";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE08b' "code-Cccb7de08b";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08b') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de08b";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de08b";\r\n } "bdab9370";\r\n } "9b1cc305";\r\n } "5c09828f";\r\n}\r\n\r\ngroup CccobservationCccb7de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE08' "code-Cccb7de08";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de08";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de08";\r\n } "bdab9370";\r\n } "2bfe418a";\r\n } "899ae4be";\r\n}\r\n\r\ngroup CccobservationCccb7de08a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de08a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE08a' "code-Cccb7de08a";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE08a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de08a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de08a";\r\n } "bdab9370";\r\n } "f01cf4cb";\r\n } "dffa204b";\r\n}\r\n\r\ngroup CccobservationCccb7de09(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de09";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE09' "code-Cccb7de09";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE09') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de09";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de09";\r\n } "bdab9370";\r\n } "d2857a7f";\r\n } "9311a6c3";\r\n}\r\n\r\ngroup CccobservationCccb7de10(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb7de10";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B7.DE10' "code-Cccb7de10";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as item where (linkId = 'Ccc.B7.DE10') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb7de10";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb7de10";\r\n } "bdab9370";\r\n } "86a60301";\r\n } "d7b8fbb0";\r\n}\r\n\r\ngroup CccobservationCccb22de08(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de08";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "217a0abc";\r\n } "1ebe5f9b";\r\n } "4113c5c7";\r\n}\r\n\r\ngroup CccobservationCccb22de14(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE14') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'true' -> tgt.status = 'final', tgt.value = true "8a65aaa5";\r\n } "26c2c8c7";\r\n } "721205d5";\r\n } "b72aac92";\r\n } "e7d47de7";\r\n } "0204726e";\r\n}\r\n\r\ngroup CccobservationCccb22de14a(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de14a";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE14a') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de14a";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de14a";\r\n } "bdab9370";\r\n } "120b0bc5";\r\n } "ffa20ee2";\r\n } "e1505882";\r\n}\r\n\r\ngroup CccobservationCccb22de15(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de15";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE15') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb22de15";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb22de15";\r\n } "bdab9370";\r\n } "f886f65c";\r\n } "0ff7ff35";\r\n } "455546fc";\r\n}\r\n\r\ngroup CccobservationCccb22de16(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb22de16";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as itm1 where linkId = 'stable-child' then {\r\n itm1.item first as itm2 where linkId = 'Ccc.B22.FluidTest' then {\r\n itm2.item first as item where (linkId = 'Ccc.B22.DE16') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val then {\r\n val where val.code = 'none' -> tgt.swrapin_entry_createtatus = 'cancelled' "d0a13fda";\r\n val where val.code != 'none' -> tgt.value = create('CodeableConcept') as cc, cc.coding = val, tgt.status = 'final' "a1050460";\r\n } "310f4b1f";\r\n } "6af9bfcc";\r\n } "56e7c54b";\r\n } "270c6d04";\r\n } "1b98a048";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcare.treatment" = "emcare.treatment"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccc.treatment" = "Ccc.treatment"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcarea.registration.p" = "emcarea.registration.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/patient" alias 'Patient' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcarepatient" alias 'EmCare Patient' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src -> bundle.entry as entry then {\r\n src.subject as subject then {\r\n subject.id as idval -> entry.request as request, request.method = 'PUT', request.url = append('/Patient/', idval) "1153aa45";\r\n } "cf5b2513";\r\n src -> entry.resource = create('Patient') as tgt then {\r\n src -> tgt then emcarepatient(src, tgt) "77f3ac03";\r\n } "75beb242";\r\n } "put-emcarepatient";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n src -> bundle.entry as entry, entry.request as request, request.method = 'POST', entry.resource = create('RelatedPerson') as tgt then {\r\n src -> tgt then relatedperson(src, tgt) "8f0b9602";\r\n item.answer first as a then {\r\n a.value as val -> request.url = append('/RelatedPerson/', val) "78d8bc69";\r\n } "eec70023";\r\n } "00574b8e";\r\n } "74cc3511";\r\n } "54daac33";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/CommunicationRequest/', uuid) "e5343f50";\r\n src -> entry.resource = create('CommunicationRequest') as tgt then {\r\n src -> tgt then communicationrequestemcareade38(src, tgt) "82d8a873";\r\n } "33eeb100";\r\n } "d4cd942b";\r\n } "5ca7be0f";\r\n } "b78fbe33";\r\n}\r\n\r\ngroup SetOfficalGivenNameemcarepatient(source src, target tgt) {\r\n src -> tgt.use = 'official' then {\r\n src.item first as item where (linkId = 'EmCare.A.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.family = val "77d1bd4f";\r\n } "e0827d5d";\r\n } "607c4e16";\r\n src.item first as item where (linkId = 'EmCare.A.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "e9deb0f3";\r\n src.item first as item where (linkId = 'EmCare.A.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "d95279c0";\r\n } "ef0f6810";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade16(source src, target tgt) {\r\n src -> tgt then {\r\n src -> tgt then {\r\n src where value.code = 'EmCare.A.DE17' -> tgt.gender = 'female' "368f2e2a";\r\n src where value.code = 'EmCare.A.DE18' -> tgt.gender = 'male' "2ae3beca";\r\n src where value.code = 'EmCare.A.DE19' -> tgt.gender = 'unknown' "de22e8b7";\r\n } "mapbase";\r\n } "57676688";\r\n}\r\n\r\ngroup emcarepatient(source src : questionnaireResponse, target tgt : Patient) {\r\n src.item first as item where (linkId = 'EmCare.A.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.identifier = create('Identifier') as identifier then {\r\n val -> identifier.value = val, identifier.use = 'official' "id";\r\n } "aemcareade01";\r\n } "aemcareade01";\r\n } "c243b020";\r\n src.item first as item where (linkId = 'EmCare.A.DE03') and answer.exists() then {\r\n item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/anonymous', ext.value = true "aemcareade03";\r\n } "54d12495";\r\n src.item first as item where (linkId = 'EmCare.A.DE06') or (linkId = 'EmCare.A.DE04') or ((linkId = 'EmCare.A.DE05') and answer.exists()) then {\r\n src -> tgt as target, target.name as name then SetOfficalGivenNameemcarepatient(src, name) "30643049";\r\n } "7483ae2e";\r\n src.item first as item where (linkId = 'EmCare.A.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/birthDateEstimator', ext.value = val "aemcareade12";\r\n } "aemcareade12";\r\n } "c05cf203";\r\n src.item first as item where (linkId = 'EmCare.A.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.birthDate = val "aemcareade08";\r\n } "aemcareade08";\r\n } "bded6ae8";\r\n src.item first as item where (linkId = 'EmCare.A.DE16') and answer.exists() then {\r\n item.answer first as a then MapValueSetExtCodeemcareade16(a, tgt) "225baa79";\r\n } "bf4b35f0";\r\n src.item first as item where (linkId = 'EmCare.A.DE48') and answer.exists() then {\r\n item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/primarycaregiver', ext.value = create('Reference') as ref, ref.reference = 'relatated-person-id' "aemcareade48";\r\n } "04772b09";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/Extension/motherVitalStatus', ext.value = val "aemcareade31";\r\n } "aemcareade31";\r\n } "7f408694";\r\n } "39f45e5d";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/Extension/fatherVitalStatus', ext.value = val "aemcareade32";\r\n } "aemcareade32";\r\n } "06ec2524";\r\n } "f7424037";\r\n}\r\n\r\ngroup SetOfficalGivenNamerelatedperson(source src, target tgt) {\r\n src -> tgt.use = 'official' then {\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE23') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.family = val "77d1bd4f";\r\n } "e0827d5d";\r\n } "8c426238";\r\n } "4cc155ee";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "ad3fbc15";\r\n } "8bc880ed";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "e9ba83c8";\r\n } "17d8d988";\r\n } "f41b9847";\r\n}\r\n\r\ngroup MapValueSetExtCodeemcareade24(source src, target tgt) {\r\n src -> tgt then {\r\n src -> tgt.relationship = create('CodeableConcept') as cc, cc.coding = create('Coding') as coding then {\r\n src where value.code = 'EmCare.A.DE25' -> coding.code = 'MTH', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "abd34a78";\r\n src where value.code = 'EmCare.A.DE26' -> coding.code = 'FTH', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "b53d1d15";\r\n src where value.code = 'EmCare.A.DE27' -> coding.code = 'SIB', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "949ee35f";\r\n src where value.code = 'EmCare.A.DE28' -> coding.code = 'EXT', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "7c5a4400";\r\n src where value.code = 'EmCare.A.DE29' -> coding.code = 'PRNINLAW', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "544df0cc";\r\n src where value.code = 'EmCare.A.DE30' -> coding.code = 'U', coding.system = 'http://terminology.hl7.org/CodeSystem/v2-0131' "8c2d96fc";\r\n } "4a251df5";\r\n } "1b7b6d7a";\r\n}\r\n\r\ngroup relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {\r\n src.item first as item where (linkId = 'emcarerelatedpersoncaregiverid') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/primary-caregiver', ext.value = create('Reference') as ref, ref.reference = append('/RelatedPerson/', val) "aemcarerelatedpersoncaregiverid";\r\n } "aemcarerelatedpersoncaregiverid";\r\n } "04cd0ec2";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE23') or (linkId = 'EmCare.A.DE21') or ((linkId = 'EmCare.A.DE22') and answer.exists()) then {\r\n src -> tgt as target, target.name as name then SetOfficalGivenNamerelatedperson(src, name) "8e1455ea";\r\n } "18dc21d5";\r\n } "f0e6459e";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.telecom as tel, tel.system = 'phone', tel.use = 'mobile', tel.value = val "aemcareade35";\r\n } "aemcareade35";\r\n } "9731ba92";\r\n } "30b90d37";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n item.answer first as a -> tgt then {\r\n src.subject as subject -> tgt.patient = subject "patient";\r\n } "arelatedpersonid";\r\n } "d79d72db";\r\n } "d50c1aed";\r\n src.item first as itm1 where linkId = 'EmCare.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'EmCare.A.DE24') and answer.exists() then {\r\n item.answer first as a then MapValueSetExtCodeemcareade24(a, tgt) "24e5e488";\r\n } "6adb811a";\r\n } "92a0e955";\r\n}\r\n\r\ngroup communicationrequestemcareade38(source src, target tgt) {\r\n src -> tgt.category = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.system = 'http://hl7.org/fhir/ValueSet/communication-category', c.code = 'notification' "053233cd";\r\n src.questionnaire as q -> tgt.about = create('Reference') as ref, ref.type = 'Questionnaire', ref.reference = q "quest";\r\n src.subject as subject -> tgt.subject = subject "fe3bec4d";\r\n src -> tgt.recipient = create('Reference') as ref then {\r\n src -> ref.type = 'RelatedPerson' "c26ab31f";\r\n src.item first as item where linkId = 'emcarerelatedpersonCaregiveruuid' -> tgt then {\r\n item.answer first as a -> tgt then {\r\n a.value as val -> ref.reference = append('/RelatedPerson/', val) "25b16148";\r\n } "00b2016a";\r\n } "3c6c4c80";\r\n } "eaa7d3cf";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Ccca.registration.p" = "Ccca.registration.p"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/patient" alias 'Patient' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccpatient" alias 'Ccc Patient' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/relatedperson" alias 'RelatedPerson' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/communicationrequest" alias 'CommunicationRequest' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src -> bundle.entry as entry then {\r\n src.subject as subject then {\r\n subject.id as idval -> entry.request as request, request.method = 'PUT', request.url = append('/Patient/', idval) "1153aa45";\r\n } "cf5b2513";\r\n src -> entry.resource = create('Patient') as tgt then {\r\n src -> tgt then Cccpatient(src, tgt) "77f3ac03";\r\n } "75beb242";\r\n } "put-Cccpatient";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n src -> bundle.entry as entry, entry.request as request, request.method = 'POST', entry.resource = create('RelatedPerson') as tgt then {\r\n src -> tgt then relatedperson(src, tgt) "8f0b9602";\r\n item.answer first as a then {\r\n a.value as val -> request.url = append('/RelatedPerson/', val) "78d8bc69";\r\n } "eec70023";\r\n } "00574b8e";\r\n } "74cc3511";\r\n } "54daac33";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE38') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/CommunicationRequest/', uuid) "e5343f50";\r\n src -> entry.resource = create('CommunicationRequest') as tgt then {\r\n src -> tgt then communicationrequestCccade38(src, tgt) "82d8a873";\r\n } "33eeb100";\r\n } "d4cd942b";\r\n } "5ca7be0f";\r\n } "b78fbe33";\r\n}\r\n\r\ngroup SetOfficalGivenNameCccpatient(source src, target tgt) {\r\n src -> tgt.use = 'official' then {\r\n src.item first as item where (linkId = 'Ccc.A.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.family = val "77d1bd4f";\r\n } "e0827d5d";\r\n } "607c4e16";\r\n src.item first as item where (linkId = 'Ccc.A.DE04') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "e9deb0f3";\r\n src.item first as item where (linkId = 'Ccc.A.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "d95279c0";\r\n } "ef0f6810";\r\n}\r\n\r\ngroup MapValueSetExtCodeCccade16(source src, target tgt) {\r\n src -> tgt then {\r\n src -> tgt then {\r\n src where value.code = 'Ccc.A.DE17' -> tgt.gender = 'female' "368f2e2a";\r\n src where value.code = 'Ccc.A.DE18' -> tgt.gender = 'male' "2ae3beca";\r\n src where value.code = 'Ccc.A.DE19' -> tgt.gender = 'unknown' "de22e8b7";\r\n } "mapbase";\r\n } "57676688";\r\n}\r\n\r\ngroup Cccpatient(source src : questionnaireResponse, target tgt : Patient) {\r\n src.item first as item where (linkId = 'Ccc.A.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.identifier = create('Identifier') as identifier then {\r\n val -> identifier.value = val, identifier.use = 'official' "id";\r\n } "aCccade01";\r\n } "aCccade01";\r\n } "c243b020";\r\n src.item first as item where (linkId = 'Ccc.A.DE03') and answer.exists() then {\r\n item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/anonymous', ext.value = true "aCccade03";\r\n } "54d12495";\r\n src.item first as item where (linkId = 'Ccc.A.DE06') or (linkId = 'Ccc.A.DE04') or ((linkId = 'Ccc.A.DE05') and answer.exists()) then {\r\n src -> tgt as target, target.name as name then SetOfficalGivenNameCccpatient(src, name) "30643049";\r\n } "7483ae2e";\r\n src.item first as item where (linkId = 'Ccc.A.DE12') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/birthDateEstimator', ext.value = val "aCccade12";\r\n } "aCccade12";\r\n } "c05cf203";\r\n src.item first as item where (linkId = 'Ccc.A.DE08') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.birthDate = val "aCccade08";\r\n } "aCccade08";\r\n } "bded6ae8";\r\n src.item first as item where (linkId = 'Ccc.A.DE16') and answer.exists() then {\r\n item.answer first as a then MapValueSetExtCodeCccade16(a, tgt) "225baa79";\r\n } "bf4b35f0";\r\n src.item first as item where (linkId = 'Ccc.A.DE48') and answer.exists() then {\r\n item.answer first as a -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/primarycaregiver', ext.value = create('Reference') as ref, ref.reference = 'relatated-person-id' "aCccade48";\r\n } "04772b09";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE31') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/Extension/motherVitalStatus', ext.value = val "aCccade31";\r\n } "aCccade31";\r\n } "7f408694";\r\n } "39f45e5d";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE32') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/Extension/fatherVitalStatus', ext.value = val "aCccade32";\r\n } "aCccade32";\r\n } "06ec2524";\r\n } "f7424037";\r\n}\r\n\r\ngroup SetOfficalGivenNamerelatedperson(source src, target tgt) {\r\n src -> tgt.use = 'official' then {\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE23') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.family = val "77d1bd4f";\r\n } "e0827d5d";\r\n } "8c426238";\r\n } "4cc155ee";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE21') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "ad3fbc15";\r\n } "8bc880ed";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE22') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.given = val "5d3d44f6";\r\n } "18edd234";\r\n } "e9ba83c8";\r\n } "17d8d988";\r\n } "f41b9847";\r\n}\r\n\r\ngroup MapValueSetExtCodeCccade24(source src, target tgt) {\r\n src -> tgt then {\r\n src -> tgt.relationship = create('CodeableConcept') as cc, cc.coding = create('Coding') as coding then {\r\n src where value.code = 'Ccc.A.DE25' -> coding.code = 'MTH', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "abd34a78";\r\n src where value.code = 'Ccc.A.DE26' -> coding.code = 'FTH', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "b53d1d15";\r\n src where value.code = 'Ccc.A.DE27' -> coding.code = 'SIB', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "949ee35f";\r\n src where value.code = 'Ccc.A.DE28' -> coding.code = 'EXT', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "7c5a4400";\r\n src where value.code = 'Ccc.A.DE29' -> coding.code = 'PRNINLAW', coding.system = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode' "544df0cc";\r\n src where value.code = 'Ccc.A.DE30' -> coding.code = 'U', coding.system = 'http://terminology.hl7.org/CodeSystem/v2-0131' "8c2d96fc";\r\n } "4a251df5";\r\n } "1b7b6d7a";\r\n}\r\n\r\ngroup relatedperson(source src : questionnaireResponse, target tgt : RelatedPerson) {\r\n src.item first as item where (linkId = 'Cccrelatedpersoncaregiverid') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.extension = create('Extension') as ext, ext.url = 'https://smart.who.int/ccc/StructureDefinition/primary-caregiver', ext.value = create('Reference') as ref, ref.reference = append('/RelatedPerson/', val) "aCccrelatedpersoncaregiverid";\r\n } "aCccrelatedpersoncaregiverid";\r\n } "04cd0ec2";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE23') or (linkId = 'Ccc.A.DE21') or ((linkId = 'Ccc.A.DE22') and answer.exists()) then {\r\n src -> tgt as target, target.name as name then SetOfficalGivenNamerelatedperson(src, name) "8e1455ea";\r\n } "18dc21d5";\r\n } "f0e6459e";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE35') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.telecom as tel, tel.system = 'phone', tel.use = 'mobile', tel.value = val "aCccade35";\r\n } "aCccade35";\r\n } "9731ba92";\r\n } "30b90d37";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'relatedpersonid') and answer.exists() then {\r\n item.answer first as a -> tgt then {\r\n src.subject as subject -> tgt.patient = subject "patient";\r\n } "arelatedpersonid";\r\n } "d79d72db";\r\n } "d50c1aed";\r\n src.item first as itm1 where linkId = 'Ccc.A.DE21.1' then {\r\n itm1.item first as item where (linkId = 'Ccc.A.DE24') and answer.exists() then {\r\n item.answer first as a then MapValueSetExtCodeCccade24(a, tgt) "24e5e488";\r\n } "6adb811a";\r\n } "92a0e955";\r\n}\r\n\r\ngroup communicationrequestCccade38(source src, target tgt) {\r\n src -> tgt.category = create('CodeableConcept') as cc, cc.coding = create('Coding') as c, c.system = 'http://hl7.org/fhir/ValueSet/communication-category', c.code = 'notification' "053233cd";\r\n src.questionnaire as q -> tgt.about = create('Reference') as ref, ref.type = 'Questionnaire', ref.reference = q "quest";\r\n src.subject as subject -> tgt.subject = subject "fe3bec4d";\r\n src -> tgt.recipient = create('Reference') as ref then {\r\n src -> ref.type = 'RelatedPerson' "c26ab31f";\r\n src.item first as item where linkId = 'CccrelatedpersonCaregiveruuid' -> tgt then {\r\n item.answer first as a -> tgt then {\r\n a.value as val -> ref.reference = append('/RelatedPerson/', val) "25b16148";\r\n } "00b2016a";\r\n } "3c6c4c80";\r\n } "eaa7d3cf";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/emcareb.registration.e" = "emcareb.registration.e"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/encounter" alias 'Encounter' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareencounter" alias 'EmCare Encounter' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/emcareobservation" alias 'EmCare Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src -> bundle.entry as entry then {\r\n src.encounter as encounter then {\r\n encounter.id as idval -> entry.request as request, request.method = 'PUT', request.url = append('/Encounter/', idval) "f7ed42d5";\r\n } "49f4ed45";\r\n src -> entry.resource = create('Encounter') as tgt then {\r\n src -> tgt then emcareencounter(src, tgt) "fd415ba8";\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n } "8f0160c6";\r\n } "put-emcareencounter";\r\n src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then emcareobservationemcareb3de05(src, tgt) "918130f9";\r\n } "172606cb";\r\n } "a322e7db";\r\n } "1af195c5";\r\n}\r\n\r\ngroup emcareencounter(source src : questionnaireResponse, target tgt : Encounter) {\r\n src.item first as item where (linkId = 'EmCare.B3.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.reasonCode = create('CodeableConcept') as CC, CC.text = 'new consultation', CC.coding = val "aemcareb3de01";\r\n } "aemcareb3de01";\r\n } "5ea28a7f";\r\n src.item first as item where (linkId = 'EmCare.B3.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.type = create('CodeableConcept') as CC, CC.text = 'new consultation', CC.coding = val "aemcareb3de06";\r\n } "aemcareb3de06";\r\n } "58ee7f8b";\r\n}\r\n\r\ngroup emcareobservationemcareb3de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-emcareb3de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://smart.who.int/ccc/StructureDefinition/emcareobservation', tgt.code = create('CodeableConcept') as concept, concept.coding = create('Coding') as coding, coding.system = 'https://smart.who.int/ccc/CodeSystem/emcare-custom-codes', coding.code = 'EmCare.B3.DE05' "code-emcareb3de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'EmCare.B3.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-emcareb3de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-emcareb3de05";\r\n } "bdab9370";\r\n } "5cf8dcb4";\r\n}\r\n\r\nmap "https://smart.who.int/ccc/StructureMap/Cccb.registration.e" = "Cccb.registration.e"\r\n\r\n\r\nuses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias 'questionnaireResponse' as source\r\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias 'Bundle' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/encounter" alias 'Encounter' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/observation" alias 'Observation' as target\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccencounter" alias 'Ccc Encounter' as produced\r\nuses "https://smart.who.int/ccc/StructureDefinition/Cccobservation" alias 'Ccc Observation' as produced\r\n\r\ngroup bundletrans(source src : questionnaireResponse, target bundle : Bundle) {\r\n src -> bundle.id = uuid() "id";\r\n src -> bundle.type = 'batch' "type";\r\n src -> bundle.entry as entry then {\r\n src.encounter as encounter then {\r\n encounter.id as idval -> entry.request as request, request.method = 'PUT', request.url = append('/Encounter/', idval) "f7ed42d5";\r\n } "49f4ed45";\r\n src -> entry.resource = create('Encounter') as tgt then {\r\n src -> tgt then Cccencounter(src, tgt) "fd415ba8";\r\n src.subject as sub -> tgt.subject = sub "23252e10";\r\n } "8f0160c6";\r\n } "put-Cccencounter";\r\n src.item first as item where (linkId = 'Ccc.B3.DE05') and answer.exists() then {\r\n src -> bundle.entry as entry then {\r\n src -> entry.request as request, request.method = 'POST', uuid() as uuid, request.url = append('/Observation/', uuid) "b50ac4c5";\r\n src -> entry.resource = create('Observation') as tgt then {\r\n src -> tgt then CccobservationCccb3de05(src, tgt) "918130f9";\r\n } "172606cb";\r\n } "a322e7db";\r\n } "1af195c5";\r\n}\r\n\r\ngroup Cccencounter(source src : questionnaireResponse, target tgt : Encounter) {\r\n src.item first as item where (linkId = 'Ccc.B3.DE01') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.reasonCode = create('CodeableConcept') as CC, CC.text = 'new consultation', CC.coding = val "aCccb3de01";\r\n } "aCccb3de01";\r\n } "5ea28a7f";\r\n src.item first as item where (linkId = 'Ccc.B3.DE06') and answer.exists() then {\r\n item.answer first as a then {\r\n a.value as val -> tgt.type = create('CodeableConcept') as CC, CC.text = 'new consultation', CC.coding = val "aCccb3de06";\r\n } "aCccb3de06";\r\n } "58ee7f8b";\r\n}\r\n\r\ngroup CccobservationCccb3de05(source src, target tgt) {\r\n src -> tgt.identifier = create('Identifier') as CodeID, CodeID.system = 'http://hl7.org/fhir/namingsystem-identifier-type', CodeID.use = 'official', CodeID.value = 'uuid', CodeID.id = uuid() "id-Cccb3de05";\r\n src.encounter as encounter -> tgt.encounter = encounter "35bc6b82";\r\n src.subject as subject -> tgt.subject = subject, tgt.meta = create('Meta') as newMeta, newMeta.profile = 'https://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.B3.DE05' "code-Cccb3de05";\r\n src.item as itemtimestamp where linkId = 'timestamp' then {\r\n itemtimestamp.answer first as atimestamp then {\r\n atimestamp.value as val -> tgt.issued = val "5af77f2c";\r\n } "7f22f29f";\r\n } "aae7a11d";\r\n src.subject as subject -> tgt.subject = subject "patient";\r\n src.item first as item where (linkId = 'Ccc.B3.DE05') and answer.exists() then {\r\n item.answer first as a then {\r\n a where a.value = true -> tgt.status = 'final', tgt.value = true "final-Cccb3de05";\r\n a where a.value = false -> tgt.status = 'cancelled', tgt.value = false "notfound-Cccb3de05";\r\n } "bdab9370";\r\n } "5cf8dcb4";\r\n}\r\n\r\n