{
  "resourceType": "StructureDefinition",
  "id": "ncdhc-observation-bp",
  "url": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-bp",
  "version": "dv0.0.1",
  "name": "NCDHCBloodPressureObservationProfile",
  "title": "NCDHC Blood Pressure Observation",
  "status": "draft",
  "date": "2019-06-28",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "description": "The pressure of  blood measured by systolic (top) and diastolic (bottom) valus using SNOMED Code",
  "purpose": "This profile allows the system to send Blood Pressure details to DataHub using SNOMED Code only.",
  "copyright": "Copyright © 2019 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-observation-base",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "short": "NCDHC Vital Sign Blood Pressure Profile"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            },
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "min": 1
      },
      {
        "id": "Observation.code.coding:BPSNOMED-CT",
        "path": "Observation.code.coding",
        "sliceName": "BPSNOMED-CT",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "code": "75367002"
        }
      },
      {
        "id": "Observation.code.coding:BPSNOMED-CT.system",
        "path": "Observation.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "The patient in context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-expectant-mother"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-baby"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "max": "0"
      },
      {
        "id": "Observation.comment",
        "path": "Observation.comment",
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Observation.component.code.coding:DBP-SNOMED",
        "path": "Observation.component.code.coding",
        "sliceName": "DBP-SNOMED",
        "max": "1",
        "fixedCoding": {
          "system": "http://snomed.info/sct",
          "code": "271650006"
        }
      },
      {
        "id": "Observation.component:SystolicBP",
        "path": "Observation.component",
        "sliceName": "SystolicBP",
        "max": "1"
      },
      {
        "id": "Observation.component:SystolicBP.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "271649006"
            }
          ]
        }
      },
      {
        "id": "Observation.component:SystolicBP.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:SystolicBP.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:SystolicBP.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:SystolicBP.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": true
      },
      {
        "id": "Observation.component:SystolicBP.value[x]:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "min": 1,
        "fixedCode": "mm[Hg]",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DiastolicBP",
        "path": "Observation.component",
        "sliceName": "DiastolicBP",
        "max": "1"
      },
      {
        "id": "Observation.component:DiastolicBP.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "271650006"
            }
          ]
        }
      },
      {
        "id": "Observation.component:DiastolicBP.value[x]:valueQuantity",
        "path": "Observation.component.valueQuantity",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:DiastolicBP.value[x]:valueQuantity.value",
        "path": "Observation.component.valueQuantity.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:DiastolicBP.value[x]:valueQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.component.valueQuantity.unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:DiastolicBP.value[x]:valueQuantity.system",
        "path": "Observation.component.valueQuantity.system",
        "min": 1,
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": true
      },
      {
        "id": "Observation.component:DiastolicBP.value[x]:valueQuantity.code",
        "path": "Observation.component.valueQuantity.code",
        "min": 1,
        "fixedCode": "mm[Hg]",
        "mustSupport": true
      }
    ]
  }
}