{
  "resourceType": "StructureDefinition",
  "id": "DataStandardsWales-Observation-Lab",
  "url": "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation-Lab",
  "version": "0.2.0",
  "name": "DataStandardsWalesObservationLab",
  "title": "Data Standards Wales Observation - Lab",
  "status": "draft",
  "experimental": false,
  "date": "2026-02-26",
  "publisher": "NHS Wales",
  "copyright": "2026 NHS Wales.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.category:LaboratorySlice",
        "path": "Observation.category",
        "sliceName": "LaboratorySlice",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/ValueSet/observation-category",
              "version": "4.3.0",
              "code": "laboratory",
              "display": "Laboratory"
            }
          ]
        }
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-PathologyAndLaboratoryMedicineObservables"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient"
            ]
          }
        ]
      }
    ]
  }
}