<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="England-Provenance-Lab-Pathology" />
  <url value="https://fhir.nhs.uk/England/StructureDefinition/England-Provenance-Lab-Pathology" />
  <version value="0.1.0" />
  <name value="EnglandProvenanceLabPathology" />
  <title value="England Provenance Lab Pathology" />
  <status value="draft" />
  <date value="2026-08-17" />
  <publisher value="NHS England" />
  <contact>
    <name value="NHS England" />
    <telecom>
      <system value="email" />
      <value value="england.interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="&quot;This profile defines the NHSE constraints and extensions on the FHIR resource, in order to represent a test reporter, also known as a middleware, within the system." />
  <purpose value="This profile ensures the identification and standardisation of the test reporting systems within the Pathology project to ensure the correct routing of information back to the test reporting systems" />
  <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="Provenance" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Provenance" />
  <derivation value="constraint" />
  <differential>
    <element id="Provenance.activity">
      <path value="Provenance.activity" />
      <min value="1" />
    </element>
    <element id="Provenance.activity.coding">
      <path value="Provenance.activity.coding" />
      <min value="1" />
    </element>
    <element id="Provenance.activity.coding.system">
      <path value="Provenance.activity.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle" />
    </element>
    <element id="Provenance.activity.coding.code">
      <path value="Provenance.activity.coding.code" />
      <min value="1" />
      <fixedCode value="transform" />
    </element>
    <element id="Provenance.agent.who.identifier.system">
      <path value="Provenance.agent.who.identifier.system" />
      <min value="1" />
      <fixedUri value="https://api.service.nhs.uk/pathology-laboratory-reporting/test-reporting-system" />
    </element>
    <element id="Provenance.agent.who.identifier.value">
      <path value="Provenance.agent.who.identifier.value" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>