{
  "resourceType": "StructureDefinition",
  "id": "ie-core-average-blood-pressure",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-average-blood-pressure",
  "name": "IECoreAverageBloodPressure",
  "title": "IE Core Average Blood Pressure",
  "status": "draft",
  "description": "Records average (mean) blood pressure measurements with systolic and diastolic components in the Irish healthcare context.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "mustSupport": true
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "96607-7",
              "system": "http://loinc.org",
              "display": "Blood pressure panel mean systolic and mean diastolic"
            }
          ]
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "mustSupport": true
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "mustSupport": true
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicAverage",
        "path": "Observation.component",
        "sliceName": "systolicAverage",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicAverage.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "96608-5",
              "system": "http://loinc.org",
              "display": "Systolic blood pressure mean"
            }
          ]
        }
      },
      {
        "id": "Observation.component:systolicAverage.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicAverage.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicAverage.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:systolicAverage.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:systolicAverage.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      },
      {
        "id": "Observation.component:diastolicAverage",
        "path": "Observation.component",
        "sliceName": "diastolicAverage",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicAverage.code",
        "path": "Observation.component.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "96609-3",
              "system": "http://loinc.org",
              "display": "Diastolic blood pressure mean"
            }
          ]
        }
      },
      {
        "id": "Observation.component:diastolicAverage.value[x]",
        "path": "Observation.component.value[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicAverage.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicAverage.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Observation.component:diastolicAverage.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1,
        "patternUri": "http://unitsofmeasure.org"
      },
      {
        "id": "Observation.component:diastolicAverage.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1,
        "patternCode": "mm[Hg]"
      }
    ]
  }
}