{
  "resourceType": "StructureDefinition",
  "id": "ie-core-blood-pressure",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-blood-pressure",
  "name": "IECoreBloodPressure",
  "title": "IE Core Blood Pressure",
  "status": "draft",
  "description": "Records blood pressure observations with systolic and diastolic components in the Irish healthcare context.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-vital-signs",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "85354-9",
              "system": "http://loinc.org",
              "display": "Blood pressure panel with all children optional"
            }
          ]
        }
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Observation.component:systolic",
        "path": "Observation.component",
        "sliceName": "systolic",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolic.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "8480-6",
              "system": "http://loinc.org",
              "display": "Systolic blood pressure"
            }
          ]
        }
      },
      {
        "id": "Observation.component:systolic.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:systolic.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolic.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolic.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:systolic.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      },
      {
        "id": "Observation.component:diastolic",
        "path": "Observation.component",
        "sliceName": "diastolic",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolic.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "8462-4",
              "system": "http://loinc.org",
              "display": "Diastolic blood pressure"
            }
          ]
        }
      },
      {
        "id": "Observation.component:diastolic.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "Observation.component:diastolic.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolic.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolic.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:diastolic.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      }
    ]
  }
}