{
  "resourceType": "StructureDefinition",
  "id": "DiagnosticReport-eu-lab",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    }
  ],
  "url": "http://hl7.eu/fhir/laboratory/StructureDefinition/DiagnosticReport-eu-lab",
  "version": "2.0.0-nhs-fix",
  "name": "DiagnosticReportLabEu",
  "title": "DiagnosticReport: Laboratory Report",
  "status": "active",
  "date": "2026-07-02T14:28:07+00:00",
  "publisher": "HL7 Europe",
  "contact": [
    {
      "name": "HL7 Europe",
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.eu"
        }
      ]
    }
  ],
  "description": "DiagnosticReport used to represent an entry of a Laboratory Report, including its context, for the scope of the HL7 Europe project.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "150",
          "display": "Europe"
        }
      ]
    }
  ],
  "copyright": "Copyright HL7 Europe. Licensed under creative commons public domain (CC0 1.0).",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "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"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.eu/fhir/base/StructureDefinition/diagnosticReport-eu-core|2.0.0-nhs-fix",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "short": "Laboratory Report DiagnosticReport",
        "definition": "Laboratory Report DiagnosticReport"
      },
      {
        "id": "DiagnosticReport.extension",
        "path": "DiagnosticReport.extension",
        "min": 1
      },
      {
        "id": "DiagnosticReport.extension:DiagnosticReportCompositionR5",
        "path": "DiagnosticReport.extension",
        "sliceName": "DiagnosticReportCompositionR5",
        "short": "Associated Lab Report Composition",
        "definition": "This extension implements the R5 composition element. It allow to link this DiagnosticReport with the Composition documenting this Laboratory Report.",
        "min": 1
      },
      {
        "id": "DiagnosticReport.extension:DiagnosticReportCompositionR5.value[x]",
        "path": "DiagnosticReport.extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/laboratory/StructureDefinition/Composition-eu-lab"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "comment": "Composition.identifier SHALL be equal to one of the DiagnosticReport.identifier, if at least one exists"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/laboratory/StructureDefinition/ServiceRequest-eu-lab"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "Report Category",
        "definition": "A code that classifies this laboratory report. Two basic categories has been selected in this guide: laboratory specialty and Study type. Laboratory specialty is characteristic of the laboratory that produced the test result while Study type is an arbitrary classificion of the test type.",
        "comment": "DiagnosticReport.category and Composition.category shall be aligned"
      },
      {
        "id": "DiagnosticReport.category:studyType",
        "path": "DiagnosticReport.category",
        "sliceName": "studyType",
        "short": "The way of grouping of the test results into clinically meaningful domains (e.g. hematology study, microbiology study, etc.)",
        "definition": "Laboratory services, i.e., results of tests performed, could be characterized using typology of services, commonly called study types. Study type could be seen as an attribute or grouping mechanism that assigns a common clinical sense to certain types of laboratory test results., e.g., Hemoglobin, Platelet count, etc. belongs to 'Hematology study'.",
        "comment": "In comparison to the laboratory specialty which is an attribute of laboratory, study type is a categorization of laboratory service. It needs to be mentioned that classification of test to study types in not standardized.",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab"
        }
      },
      {
        "id": "DiagnosticReport.category:specialty",
        "path": "DiagnosticReport.category",
        "sliceName": "specialty",
        "short": "The clinical domain of the laboratory performing the observation (e.g. microbiology, toxicology, chemistry)",
        "definition": "Laboratory specialty is an attribute of any laboratory setting representing professional qualification of the laboratory to execute certain kind of laboratory tests.",
        "comment": "Specialty could be used as parameter for searching/querying of laboratory test results.",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.eu/fhir/laboratory/ValueSet/lab-specialty-eu-lab"
        }
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "short": "Type of (Laboratory) Report",
        "definition": "Specifies that it refers to a Laboratory Report",
        "comment": "At least one DiagnosticReport.code.coding and Composition.type.coding SHALL be equal",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.eu/fhir/laboratory/ValueSet/lab-reportType-eu-lab"
        }
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "comment": "DiagnosticReport and Composition SHALL have the same subject"
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "short": "The healthcare event which this Laboratory Report is about (when test ordered).",
        "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).\n\n DiagnosticReport and Composition SHALL have the same encounter."
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/laboratory/StructureDefinition/Specimen-eu-lab"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.eu/fhir/laboratory/StructureDefinition/Observation-resultslab-eu-lab"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.link.extension:link",
        "path": "DiagnosticReport.media.link.extension",
        "sliceName": "link",
        "short": "DocumentReference containing additional information/attachments",
        "definition": "Reference to a DocumentReference containing additional information/attachments associated with this report.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/alternate-reference"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.media.link.extension:link.value[x]",
        "path": "DiagnosticReport.media.link.extension.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.media.link.reference",
        "path": "DiagnosticReport.media.link.reference",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.link.type",
        "path": "DiagnosticReport.media.link.type",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.link.identifier",
        "path": "DiagnosticReport.media.link.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media.link.display",
        "path": "DiagnosticReport.media.link.display",
        "short": "Text stating use of cross-version extension 'link'",
        "definition": "Text stating that instead of a reference to a Media resource, a DocumentReference resource is linked through the cross-version extension 'link'.",
        "min": 1
      }
    ]
  }
}