{
  "resourceType": "StructureDefinition",
  "id": "UKCore-DiagnosticReport",
  "url": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport",
  "version": "2.2.0",
  "name": "UKCoreDiagnosticReport",
  "title": "UK Core DiagnosticReport",
  "status": "draft",
  "date": "2023-02-17T13:40:13.4888989+00:00",
  "publisher": "HL7 UK",
  "contact": [
    {
      "name": "HL7 UK",
      "telecom": [
        {
          "system": "email",
          "value": "ukcore@hl7.org.uk",
          "use": "work",
          "rank": 1
        }
      ]
    }
  ],
  "description": "This profile defines the UK constraints and extensions on the International FHIR resource [DiagnosticReport](https://hl7.org/fhir/R4/DiagnosticReport.html).",
  "purpose": "This profile allows exchange of the findings and interpretation of diagnostic tests performed on individuals, groups of individuals, devices and locations and/or specimens derived from these. The report includes clinical context such as requesting and provider information and some mix of atomic results, images, textual and coded interpretations and formatted representation of diagnostic reports.",
  "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",
  "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.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier.assigner",
        "path": "DiagnosticReport.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
              "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-CarePlan",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.assigner",
        "path": "DiagnosticReport.basedOn.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.category.coding",
        "path": "DiagnosticReport.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.category.coding:snomedCT",
        "path": "DiagnosticReport.category.coding",
        "sliceName": "snomedCT"
      },
      {
        "id": "DiagnosticReport.category.coding:snomedCT.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "DiagnosticReport.category.coding:snomedCT.code",
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding:snomedCT.display",
        "path": "DiagnosticReport.category.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.code.coding:snomedCT",
        "path": "DiagnosticReport.code.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED UK Clinical Terminology coding system",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-ReportCodeSnCT"
        }
      },
      {
        "id": "DiagnosticReport.code.coding:snomedCT.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "DiagnosticReport.code.coding:snomedCT.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding:snomedCT.display",
        "path": "DiagnosticReport.code.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Group",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Location"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject.identifier.assigner",
        "path": "DiagnosticReport.subject.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter.identifier.assigner",
        "path": "DiagnosticReport.encounter.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.performer.identifier.assigner",
        "path": "DiagnosticReport.performer.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-PractitionerRole",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-CareTeam"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter.identifier.assigner",
        "path": "DiagnosticReport.resultsInterpreter.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Specimen"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen.identifier.assigner",
        "path": "DiagnosticReport.specimen.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.identifier.assigner",
        "path": "DiagnosticReport.result.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-ImagingStudy"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.imagingStudy.identifier.assigner",
        "path": "DiagnosticReport.imagingStudy.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.media.link.identifier.assigner",
        "path": "DiagnosticReport.media.link.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding",
        "path": "DiagnosticReport.conclusionCode.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding:snomedCT",
        "path": "DiagnosticReport.conclusionCode.coding",
        "sliceName": "snomedCT",
        "binding": {
          "strength": "preferred",
          "description": "A code from the SNOMED UK Clinical Terminology coding system",
          "valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-FindingCode"
        }
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding:snomedCT.system",
        "path": "DiagnosticReport.conclusionCode.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding:snomedCT.code",
        "path": "DiagnosticReport.conclusionCode.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.conclusionCode.coding:snomedCT.display",
        "path": "DiagnosticReport.conclusionCode.coding.display",
        "min": 1
      }
    ]
  }
}