{
  "resourceType": "StructureDefinition",
  "id": "NCDClinicalDataComposition",
  "url": "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDClinicalDataComposition",
  "name": "NCDClinicalDataComposition",
  "title": "NCD ClinicalData Composition",
  "status": "draft",
  "description": "The Composition resource representing the clinical data of the document",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.category",
        "path": "Composition.category",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "max": "0"
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "max": "0"
      },
      {
        "id": "Composition.custodian",
        "path": "Composition.custodian",
        "max": "0"
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Composition.section:bodyWeight",
        "path": "Composition.section",
        "sliceName": "bodyWeight",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:bodyWeight.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Body weight of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyWeight.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBodyweightObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyWeight.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyWeight.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyWeight.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight",
        "path": "Composition.section",
        "sliceName": "bodyHeight",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:bodyHeight.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Body height of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyHeight.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBodyheightObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyHeight.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyHeight.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyHeight.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement",
        "path": "Composition.section",
        "sliceName": "bmiMeasurement",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:bmiMeasurement.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "BMI of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:bmiMeasurement.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBMIObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:bmiMeasurement.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:bmiMeasurement.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:bmiMeasurement.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration",
        "path": "Composition.section",
        "sliceName": "glucoseConcentration",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:glucoseConcentration.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Glucose concentration of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:glucoseConcentration.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDGlucoseObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:glucoseConcentration.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:glucoseConcentration.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:glucoseConcentration.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate",
        "path": "Composition.section",
        "sliceName": "heartRate",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:heartRate.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Heart rate of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:heartRate.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDHeartrateObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:heartRate.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:heartRate.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:heartRate.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure",
        "path": "Composition.section",
        "sliceName": "bloodPressure",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:bloodPressure.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Blood pressure of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:bloodPressure.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBloodpressureObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:bloodPressure.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:bloodPressure.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:bloodPressure.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature",
        "path": "Composition.section",
        "sliceName": "bodyTemperature",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:bodyTemperature.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Body temperature of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyTemperature.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBodytemperatureObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyTemperature.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:bodyTemperature.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:bodyTemperature.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate",
        "path": "Composition.section",
        "sliceName": "breathingRate",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Composition.section:breathingRate.title",
        "path": "Composition.section.title",
        "min": 1,
        "fixedString": "Breathing rate of the patient",
        "mustSupport": true
      },
      {
        "id": "Composition.section:breathingRate.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.text",
        "path": "Composition.section.text",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.orderedBy",
        "path": "Composition.section.orderedBy",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.inso-world.com/ncd-prevention-games/StructureDefinition/NCDBreathingrateObservation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:breathingRate.entry.reference",
        "path": "Composition.section.entry.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section:breathingRate.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.entry.display",
        "path": "Composition.section.entry.display",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.emptyReason",
        "path": "Composition.section.emptyReason",
        "max": "0"
      },
      {
        "id": "Composition.section:breathingRate.section",
        "path": "Composition.section.section",
        "max": "0"
      }
    ]
  }
}