{
  "resourceType": "StructureDefinition",
  "id": "England-Provenance-Lab-Pathology",
  "url": "https://fhir.nhs.uk/England/StructureDefinition/England-Provenance-Lab-Pathology",
  "version": "0.1.0",
  "name": "EnglandProvenanceLabPathology",
  "title": "England Provenance Lab Pathology",
  "status": "draft",
  "date": "2026-08-17",
  "publisher": "NHS England",
  "contact": [
    {
      "name": "NHS England",
      "telecom": [
        {
          "system": "email",
          "value": "england.interoperabilityteam@nhs.net",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "\"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": "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": "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",
  "kind": "resource",
  "abstract": false,
  "type": "Provenance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Provenance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Provenance.activity",
        "path": "Provenance.activity",
        "min": 1
      },
      {
        "id": "Provenance.activity.coding",
        "path": "Provenance.activity.coding",
        "min": 1
      },
      {
        "id": "Provenance.activity.coding.system",
        "path": "Provenance.activity.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle"
      },
      {
        "id": "Provenance.activity.coding.code",
        "path": "Provenance.activity.coding.code",
        "min": 1,
        "fixedCode": "transform"
      },
      {
        "id": "Provenance.agent.who.identifier.system",
        "path": "Provenance.agent.who.identifier.system",
        "min": 1,
        "fixedUri": "https://api.service.nhs.uk/pathology-laboratory-reporting/test-reporting-system"
      },
      {
        "id": "Provenance.agent.who.identifier.value",
        "path": "Provenance.agent.who.identifier.value",
        "min": 1
      }
    ]
  }
}