{
  "resourceType": "StructureDefinition",
  "id": "UKCore-Observation",
  "url": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation",
  "version": "2.4.0",
  "name": "UKCoreObservation",
  "title": "UK Core Observation",
  "status": "active",
  "date": "2023-04-28",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "HL7 UK",
      "telecom": [
        {
          "system": "email",
          "value": "ukcore@hl7.org.uk",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "This profile defines the UK constraints and extensions on the International FHIR resource [Observation](https://hl7.org/fhir/R4/Observation.html).",
  "purpose": "This profile allows exchange of information of Measurements and simple assertions made about an individual, device or other subject.\r\n\r\nNote: this profile SHALL NOT be used where a more specific UK Core profile exists.",
  "copyright": "Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html.",
  "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": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.extension",
        "path": "Observation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Observation.extension:triggeredByR5",
        "path": "Observation.extension",
        "sliceName": "triggeredByR5",
        "short": "Triggering observation(s). This is a R5 backport.",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.triggeredBy"
            ]
          }
        ]
      },
      {
        "id": "Observation.extension:triggeredByR5.extension",
        "path": "Observation.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:observation",
        "path": "Observation.extension.extension",
        "sliceName": "observation",
        "min": 1
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:observation.value[x]",
        "path": "Observation.extension.extension.value[x]",
        "short": "Triggering observation.",
        "definition": "A reference to the triggering observation."
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:type",
        "path": "Observation.extension.extension",
        "sliceName": "type",
        "min": 1
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:type.value[x]",
        "path": "Observation.extension.extension.value[x]",
        "short": "The type of trigger. Reflex | Repeat | Re-run",
        "definition": "The type of trigger. Reflex | Repeat | Re-run"
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:reason",
        "path": "Observation.extension.extension",
        "sliceName": "reason",
        "min": 0
      },
      {
        "id": "Observation.extension:triggeredByR5.extension:reason.value[x]",
        "path": "Observation.extension.extension.value[x]",
        "short": "Reason that the observation was triggered.",
        "definition": "Provides the reason why this observation was performed as a result of the observation referenced."
      },
      {
        "id": "Observation.identifier.assigner",
        "path": "Observation.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
              "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest"
            ]
          }
        ]
      },
      {
        "id": "Observation.basedOn.identifier.assigner",
        "path": "Observation.basedOn.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.partOf",
        "path": "Observation.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ImagingStudy",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Immunization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationAdministration",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationDispense",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Procedure"
            ]
          }
        ]
      },
      {
        "id": "Observation.partOf.identifier.assigner",
        "path": "Observation.partOf.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED Clinical Terminology UK coding system describing a type of observation",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-ObservationType"
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Group",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient"
            ]
          }
        ]
      },
      {
        "id": "Observation.subject.identifier.assigner",
        "path": "Observation.subject.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.focus.identifier.assigner",
        "path": "Observation.focus.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter",
        "path": "Observation.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter"
            ]
          }
        ]
      },
      {
        "id": "Observation.encounter.identifier.assigner",
        "path": "Observation.encounter.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Observation.performer.identifier.assigner",
        "path": "Observation.performer.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.note.author[x]",
        "path": "Observation.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson"
            ]
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Observation.bodySite",
        "path": "Observation.bodySite",
        "binding": {
          "strength": "preferred"
        }
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "binding": {
          "strength": "extensible"
        }
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Specimen"
            ]
          }
        ]
      },
      {
        "id": "Observation.specimen.identifier.assigner",
        "path": "Observation.specimen.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device"
            ]
          }
        ]
      },
      {
        "id": "Observation.device.identifier.assigner",
        "path": "Observation.device.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.hasMember",
        "path": "Observation.hasMember",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-QuestionnaireResponse"
            ]
          }
        ]
      },
      {
        "id": "Observation.hasMember.identifier.assigner",
        "path": "Observation.hasMember.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Observation.derivedFrom",
        "path": "Observation.derivedFrom",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Media",
              "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-DocumentReference",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ImagingStudy",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-QuestionnaireResponse"
            ]
          }
        ]
      },
      {
        "id": "Observation.derivedFrom.identifier.assigner",
        "path": "Observation.derivedFrom.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "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 observation",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-ObservationType"
        }
      }
    ]
  }
}