<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Observation-VitalSigns" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation-VitalSigns" />
  <version value="0.1.1" />
  <name value="UKCoreObservationVitalSigns" />
  <title value="UK Core Observation Vital Signs" />
  <status value="draft" />
  <date value="2025-11-06" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="Defines the observation constraints and extensions on the UK Core Observation resource for the minimal set of data to query and retrieve clinical observation vital signs information." />
  <purpose value="This profile allows exchange of internationally FHIR compliant vital signs information based on measurements and simple assertions made about an individual. Where a more constrained derived profile exists, it should be used instead of this profile." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); 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 &quot;AS IS&quot; 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 value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <constraint>
        <key value="ukcore-obs-vs-001" />
        <severity value="error" />
        <human value="`code.coding` SHALL include a LOINC &quot;magic code&quot;" />
        <expression value="code.coding.where(system='http://loinc.org').exists()" />
      </constraint>
    </element>
    <element id="Observation.extension:bodyPosition">
      <path value="Observation.extension" />
      <sliceName value="bodyPosition" />
      <short value="The patients body position when the vital signs observation was recorded." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/observation-bodyPosition" />
      </type>
    </element>
    <element id="Observation.extension:bodyPosition.value[x]">
      <path value="Observation.extension.value[x]" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-BodyPosition" />
      </binding>
    </element>
    <element id="Observation.extension:recordingSetting">
      <path value="Observation.extension" />
      <sliceName value="recordingSetting" />
      <short value="Records whether the vital signs observation was performed in a clinical or non clinical setting." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-RecordingSetting" />
      </type>
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <short value="A status of `final` SHALL be present." />
      <fixedCode value="final" />
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <short value="A category of `vital-signs` SHALL be present." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.category.coding.system">
      <path value="Observation.category.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/observation-category" />
    </element>
    <element id="Observation.category.coding.code">
      <path value="Observation.category.coding.code" />
      <fixedCode value="vital-signs" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <short value="The type of vital signs observation (code / type)." />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-ObservationVitalSignsType" />
      </binding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Who or what the observation relates to SHALL be present." />
      <min value="1" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <short value="A clinically relevant time / time-period for observation SHALL be present." />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>