{
  "resourceType": "StructureDefinition",
  "id": "DataStandardsWales-Observation-VitalSigns",
  "url": "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation-VitalSigns",
  "version": "1.2.0",
  "name": "DataStandardsWalesObservationVitalSigns",
  "title": "Data Standards Wales Observation Vital Signs",
  "status": "active",
  "experimental": false,
  "date": "2026-02-26",
  "publisher": "NHS Wales",
  "contact": [
    {
      "name": "NHS Wales",
      "telecom": [
        {
          "system": "email",
          "value": "fhir.standards@wales.nhs.uk",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "Resource structure is derived from Data Standards Wales - Observation. It has drawn on UK Core - Observation - Vital Signs v 1.1.1 (not yet included in a balloted release) for guidance on specific content and constraints for use when the observation is a vital signs measurement.",
  "purpose": "This profile allows exchange of internationally FHIR compliant vital signs information based on measurements and simple assertions made about an individual.",
  "copyright": "2026 NHS Wales",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "constraint": [
          {
            "key": "DSW-obs-vs-001",
            "severity": "error",
            "human": "Where the category is Vital Signs the code.coding SHALL include a LOINC \"magic code\"",
            "expression": "category.where(code='vital-signs').exists() implies code.coding.where(system='http://loinc.org').exists()"
          }
        ]
      },
      {
        "id": "Observation.extension:bodyPosition",
        "path": "Observation.extension",
        "sliceName": "bodyPosition",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/observation-bodyPosition"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Observation.extension:bodyPosition.value[x]",
        "path": "Observation.extension.value[x]",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.nhs.wales/ValueSet/DataStandardsWales-BodyPosition"
        }
      },
      {
        "id": "Observation.extension:recordingSetting",
        "path": "Observation.extension",
        "sliceName": "recordingSetting",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-RecordingSetting"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "fixedCode": "vital-signs"
      },
      {
        "id": "Observation.code.coding",
        "path": "Observation.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.code.coding:loinc",
        "path": "Observation.code.coding",
        "sliceName": "loinc",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
        }
      },
      {
        "id": "Observation.code.coding:loinc.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.code.coding:snomedCT",
        "path": "Observation.code.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED Clinical Terminology UK coding system describing a type of observation",
          "valueSet": "https://fhir.nhs.wales/ValueSet/DataStandardsWales-ObservationVitalSignsType"
        }
      },
      {
        "id": "Observation.code.coding:snomedCT.system",
        "path": "Observation.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1
      },
      {
        "id": "Observation.component.code",
        "path": "Observation.component.code",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED Clinical Terminology UK coding system describing a type of vital sign.",
          "valueSet": "https://fhir.nhs.wales/ValueSet/DataStandardsWales-ObservationVitalSignsType"
        }
      },
      {
        "id": "Observation.component.code.coding",
        "path": "Observation.component.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component.code.coding:loinc",
        "path": "Observation.component.code.coding",
        "sliceName": "loinc",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
        }
      },
      {
        "id": "Observation.component.code.coding:loinc.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "Observation.component.code.coding:snomedCT",
        "path": "Observation.component.code.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED Clinical Terminology UK coding system describing a type of observation for vital-signs",
          "valueSet": "https://fhir.nhs.wales/ValueSet/DataStandardsWales-ObservationVitalSignsType"
        }
      },
      {
        "id": "Observation.component.code.coding:snomedCT.system",
        "path": "Observation.component.code.coding.system",
        "fixedUri": "http://snomed.info/sct"
      }
    ]
  }
}