{
  "resourceType": "StructureDefinition",
  "id": "NHSHC-Observation-VitalSigns",
  "url": "https://fhir.nhs.uk/StructureDefinition/NHSHC-Observation-VitalSigns",
  "version": "0.1.0",
  "name": "NHSHCObservationVitalSigns",
  "title": "NHSHC Observation - Vital Signs",
  "status": "draft",
  "date": "2026-07-30",
  "publisher": "NHS England",
  "description": "Derived profile from NHSHC-Observation for vital signs in NHS Health Check Online. Constrains category to vital-signs and provides code slices for height, weight, waist circumference, BMI, and blood pressure with systolic/diastolic components.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://fhir.nhs.uk/StructureDefinition/NHSHC-Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "constraint": [
          {
            "key": "nhshc-vs-1",
            "severity": "error",
            "human": "At least one of value[x], dataAbsentReason, component, or hasMember must be present.",
            "expression": "value.exists() or dataAbsentReason.exists() or component.exists() or hasMember.exists()"
          }
        ]
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "min": 1,
        "fixedCode": "final"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/observation-category",
              "code": "vital-signs"
            }
          ]
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.nhs.uk/ValueSet/NHSHC-VitalSignsCode"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/StructureDefinition/NHSHC-Encounter"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "description": "Slice by blood pressure component — systolic and diastolic",
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:systolicBloodPressure",
        "path": "Observation.component",
        "sliceName": "systolicBloodPressure",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.component:systolicBloodPressure.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.nhs.uk/ValueSet/NHSHC-SystolicBloodPressureCode"
        }
      },
      {
        "id": "Observation.component:diastolicBloodPressure",
        "path": "Observation.component",
        "sliceName": "diastolicBloodPressure",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.component:diastolicBloodPressure.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.nhs.uk/ValueSet/NHSHC-DiastolicBloodPressureCode"
        }
      }
    ]
  }
}