<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NHSEngland-Observation-GenomicsLab" />
  <url value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Observation-GenomicsLab" />
  <version value="0.3.0" />
  <name value="NHSEngland_Observation_GenomicsLab" />
  <title value="NHSEngland Observation GenomicsLab" />
  <status value="active" />
  <date value="2026-04-16" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the Genomics constraints and extensions on the UK Core Resource [Lab Observation](https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation-Lab)." />
  <purpose value="Used to represent the bulk of clinical information to be sent alongside a Genomic Test Order, as well as clinical results included within structured Diagnostic Reports.&#xD;&#xA;&#xD;&#xA;Observations within Genomics are used to represent a point-in-time observation made about a patient or specimen. This means Observations SHOULD NOT be updated post-submission unless the original Observation has been entered in error or incorrectly coded (in this case, the appropriate status SHALL be used, e.g. entered-in-error or corrected).&#xD;&#xA;&#xD;&#xA;For new observations which invalidate previous observations made about a patient, a new Observation resource SHOULD be created, the new observation MAY reference the invalidated observation via the observation-replaces extension." />
  <copyright value="Copyright © 2026+ NHS England 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-Lab" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.extension:obsReplaces">
      <path value="Observation.extension" />
      <sliceName value="obsReplaces" />
      <definition value="A core extension on the base HL7 International Observation resource. Used to link to previous Observation resources which have been invalidated by this Observation instance, e.g. for cases where a previously present HPO term is now no longer applicable. For new observations which invalidate previous observations made about a patient, the new Observation resource SHOULD be created, and MAY reference the invalidated observation via the observation-replaces extension." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/observation-replaces" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <definition value="To record the device/software that generated an observation. Our recommendation is that this element SHOULD reference the Genomic Study Procedure profile and its extension:genomic-study-analysis SHOULD reference the Procedure resource for the Genomic Study Analysis" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/genomics-reporting/StructureDefinition/genomic-study" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Observation.status">
      <path value="Observation.status" />
      <definition value="SHOULD be marked as final for most observations unless corrected after submission. Observations within Genomics are used to represent a point-in-time observation made about a patient or specimen. This means Observations should not be updated post-submission unless the original Observation has been entered in error or incorrectly coded (in this case, the appropriate status SHALL be used, e.g. entered-in-error or corrected, respectively)." />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <definition value="SHALL be present. SNOMED CT coding is preferred, though it is expected that alternative codings will be used depending on the appropriateness for a particular observation e.g. HPO or other codings found within the HL7 International Genomic Reporting IG as their use may already be widespread within Genomics. If a SNOMED CT equivalent exists for a code regularly captured within another CodeSystem, additional 'coding' elements within 'code' SHOULD be provided to aid analytics.&#xD;&#xA;&#xD;&#xA;For 'PCI-6 - Phenotypic details', HPO terms SHALL be used, using codes from the Human Phenotype Ontology.&#xD;&#xA;&#xD;&#xA;When recording HPO codes, the Observation.code.coding.system SHALL be fixed to http://human-phenotype-ontology.org" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.code.coding:codingSnomedCT">
      <path value="Observation.code.coding" />
      <sliceName value="codingSnomedCT" />
    </element>
    <element id="Observation.code.coding:codingSnomedCT.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Observation.code.coding:codingHPO">
      <path value="Observation.code.coding" />
      <sliceName value="codingHPO" />
    </element>
    <element id="Observation.code.coding:codingHPO.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="http://human-phenotype-ontology.org" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <definition value="SHALL be present. Reference to the associated Patient. This MAY be through a resource reference if the ID on the central service is known (or provided within the transaction bundle) or through NHS number where this is known and has been traced through PDS" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Patient-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <definition value="For recording the what the observation relates to, e.g. Specimen or Condition, when the observation relevant to the focal resource rather than the patient themselves e.g. Sample nucleated cell count.&#xD;&#xA;Note: Tumour type and cellularity observations relate to the collected sample rather than the primary condition being tested for, which means these observations should reference the Specimen resource instead of a Condition" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-Specimen-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <definition value="It is expected that all Observations SHOULD include the effective time the observation was made, if known, to aid interpretation." />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/StructureDefinition/NHSEngland-PractitionerRole-Genomics" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <aggregation value="referenced" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <definition value="The value element SHOULD use the most appropriate data type for the observation in question. Using preferred CodeSystems as specified within HL7 International FHIR R4 or the UK Core. For asserting absence of a particular condition/situation, the finding SHOULD be specified within the 'code' element and 'valueBoolean' set to 'false' or 'valueCodeableConcept' set to an appropriate qualifier value code from SNOMED CT.&#xD;&#xA;HPO terms are recorded as being either Absent or Present, this is represented within FHIR by the HPO term being recorded in Observation.code.coding.code, with the Absent/Present status being recorded as Observation.valueBoolean set as false or true respectively.&#xD;&#xA;&#xD;&#xA;For an assertion of a particular situation being present, e.g. a Condition or Procedure having been performed, these SHOULD be collected within the relevant clinical resources, alongside additional information needed to inform interpretation." />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <definition value="SHOULD be used to group qualifiers of an observation. In particular, details regarding observations related to a pregnancy SHOULD be added as components on a pregnancy status observation.&#xD;&#xA;Examples of how pregnancy information can be captured within Observations (pregnancy status with EDD, gestation etc. recorded as components) will be added to the Fetus Management Clinical Scenario." />
    </element>
  </differential>
</StructureDefinition>