@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.nwgenomics.nhs.uk/Imaging/DiagnosticReport/RadiologyDiagnosticReportExample> a fhir:DiagnosticReport ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "RadiologyDiagnosticReportExample"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyDiagnosticReport" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyDiagnosticReport>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>CT thorax, abdomen and pelvis with contrast</b> - final report, issued 29 October 2026.</p><p>Patient: MANCHESTER Sansa (NHS number 973 738 3192). Accession number RAD26110001. Imaging site: Manchester University NHS Foundation Trust (R0A). Reported by Dr Robin EXAMPLE (fictional).</p><p>Conclusion: Example conclusion for a proof-of-concept report.</p><p>Report: PDF at <code>Binary/RadiologyReportPDF</code> (presentedForm.url).</p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-DiagnosticReport.composition" ] ;
     fhir:Extension.valueReference [
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Composition/RadiologyCompositionExample> ;
       fhir:Reference.reference [ fhir:value "Composition/RadiologyCompositionExample" ]
     ]
  ] ;
  fhir:DiagnosticReport.identifier [
     fhir:index -1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "FILL" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://example.org/R0A/report-identifier" ] ;
     fhir:Identifier.value [ fhir:value "RPT-26-0005678" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "R0A" ]
       ]
     ]
  ] ;
  fhir:DiagnosticReport.basedOn [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/ServiceRequest/RadiologyServiceRequestExample> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/RadiologyServiceRequestExample" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.type [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
           fhir:Coding.code [ fhir:value "ACSN" ]
         ]
       ] ;
       fhir:Identifier.system [ fhir:value "http://example.org/R0A/accession-number" ] ;
       fhir:Identifier.value [ fhir:value "RAD26110001" ] ;
       fhir:Identifier.assigner [
         fhir:Reference.identifier [
           fhir:Identifier.value [ fhir:value "R0A" ]
         ]
       ]
     ]
  ] ;
  fhir:DiagnosticReport.status [ fhir:value "final"] ;
  fhir:DiagnosticReport.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:85430-7 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "85430-7" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://hl7.eu/fhir/health-data-api/CodeSystem/eehrxf-document-priority-category-cs" ] ;
       fhir:Coding.code [ fhir:value "Medical-Imaging" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0074" ] ;
       fhir:Coding.code [ fhir:value "RAD" ] ;
       fhir:Coding.display [ fhir:value "Radiology" ]
     ]
  ] ;
  fhir:DiagnosticReport.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-NICIP" ] ;
       fhir:Coding.code [ fhir:value "CCHAPC" ] ;
       fhir:Coding.display [ fhir:value "CT Thorax abdomen pelvis with contrast" ]
     ], [
       fhir:index -1 ;
       a loinc:18748-4 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "18748-4" ] ;
       fhir:Coding.display [ fhir:value "Diagnostic imaging study" ]
     ]
  ] ;
  fhir:DiagnosticReport.subject [
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Patient/PatientManchester> ;
     fhir:Reference.reference [ fhir:value "Patient/PatientManchester" ]
  ] ;
  fhir:DiagnosticReport.effectiveDateTime [ fhir:value "2026-10-28T14:20:00Z"^^xsd:dateTime] ;
  fhir:DiagnosticReport.issued [ fhir:value "2026-10-29T09:45:00Z"^^xsd:dateTime] ;
  fhir:DiagnosticReport.performer [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Organization/OrganizationMFT> ;
     fhir:Reference.reference [ fhir:value "Organization/OrganizationMFT" ]
  ] ;
  fhir:DiagnosticReport.resultsInterpreter [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Practitioner/PractitionerRadiologist> ;
     fhir:Reference.reference [ fhir:value "Practitioner/PractitionerRadiologist" ]
  ] ;
  fhir:DiagnosticReport.imagingStudy [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/ImagingStudy/RadiologyImagingStudyExample> ;
     fhir:Reference.reference [ fhir:value "ImagingStudy/RadiologyImagingStudyExample" ]
  ] ;
  fhir:DiagnosticReport.conclusion [ fhir:value "Example conclusion for a proof-of-concept report."] ;
  fhir:DiagnosticReport.presentedForm [
     fhir:index -1 ;
     fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
     fhir:Attachment.language [ fhir:value "en-GB" ] ;
     fhir:Attachment.url [ fhir:value "Binary/RadiologyReportPDF" ] ;
     fhir:Attachment.size [ fhir:value "1243"^^xsd:nonNegativeInteger ] ;
     fhir:Attachment.title [ fhir:value "CT thorax, abdomen and pelvis with contrast" ] ;
     fhir:Attachment.creation [ fhir:value "2026-10-29T09:45:00Z"^^xsd:dateTime ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.nwgenomics.nhs.uk/Imaging/DiagnosticReport/RadiologyDiagnosticReportExample.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

