@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.nwgenomics.nhs.uk/Imaging/Bundle/ProcedureScheduledMessage> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ProcedureScheduledMessage"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/BundleMessage" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/BundleMessage>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:Bundle.identifier [
     fhir:Identifier.system [ fhir:value "https://ris.example.nhs.uk/Id/message" ] ;
     fhir:Identifier.value [ fhir:value "RIS-MSG-0005601" ]
  ] ;
  fhir:Bundle.type [ fhir:value "message"] ;
  fhir:Bundle.timestamp [ fhir:value "2026-10-27T09:00:00Z"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://fhir.example.nhs.uk/R4/MessageHeader/ProcedureScheduledMessageHeader" ] ;
     fhir:Bundle.entry.resource <https://fhir.example.nhs.uk/R4/MessageHeader/ProcedureScheduledMessageHeader>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://fhir.example.nhs.uk/R4/ServiceRequest/RadiologyServiceRequestScheduled" ] ;
     fhir:Bundle.entry.resource <https://fhir.example.nhs.uk/R4/ServiceRequest/RadiologyServiceRequestScheduled>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://fhir.example.nhs.uk/R4/ImagingStudy/RadiologyImagingStudyScheduled" ] ;
     fhir:Bundle.entry.resource <https://fhir.example.nhs.uk/R4/ImagingStudy/RadiologyImagingStudyScheduled>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://fhir.example.nhs.uk/R4/Patient/PatientManchester" ] ;
     fhir:Bundle.entry.resource <https://fhir.example.nhs.uk/R4/Patient/PatientManchester>
  ] .

<https://fhir.example.nhs.uk/R4/MessageHeader/ProcedureScheduledMessageHeader> a fhir:MessageHeader ;
  fhir:Resource.id [ fhir:value "ProcedureScheduledMessageHeader"] ;
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2026-10-27T09:00:00Z"^^xsd:dateTime ] ;
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/MessageHeader" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/MessageHeader>
     ]
  ] ;
  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\"><a name=\"MessageHeader_ProcedureScheduledMessageHeader\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader ProcedureScheduledMessageHeader</b></p><a name=\"ProcedureScheduledMessageHeader\"> </a><a name=\"hcProcedureScheduledMessageHeader\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Last updated: 2026-10-27 09:00:00+0000</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-MessageHeader.html\">Document Message (MessageHeader)</a></p></div><p><b>event</b>: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v2-0003.html#v2-0003-O23\">event: O23</a> (OMI - Imaging order)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint</b></td><td><b>Receiver</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"https://pacs.example.nhs.uk/R4/$process-message\">https://pacs.example.nhs.uk/R4/$process-message</a></td><td>Identifier: <a href=\"NamingSystem-ods-organization-code-namingsystem.html\" title=\"The identifier system for an Organisation registered with the Organisation Data Service (ODS).\">ODS Organisation Code</a>/R0A</td></tr></table><p><b>sender</b>: Identifier: <a href=\"NamingSystem-ods-organization-code-namingsystem.html\" title=\"The identifier system for an Organisation registered with the Organisation Data Service (ODS).\">ODS Organisation Code</a>/R0A</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"https://ris.example.nhs.uk/R4\">https://ris.example.nhs.uk/R4</a></td></tr></table><p><b>focus</b>: </p><ul><li><a href=\"ServiceRequest-RadiologyServiceRequestScheduled.html\">ServiceRequest CT Thorax abdomen pelvis with contrast</a></li><li><a href=\"ImagingStudy-RadiologyImagingStudyScheduled.html\">ImagingStudy: identifier = Study Instance UID: DICOM Unique Id#urn:oid:2.25.170157840389855822130589223217853734980; status = registered; modality = Computed Tomography (DICOM#CT); procedureCode = CT of thorax, abdomen and pelvis with contrast; description = CT thorax, abdomen and pelvis with contrast</a></li></ul><p><b>definition</b>: <a href=\"MessageDefinition-procedure-scheduled.html\">Procedure Scheduled (O23)</a></p></div>"
  ] ;
  fhir:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0003" ] ;
     fhir:Coding.code [ fhir:value "O23" ] ;
     fhir:Coding.display [ fhir:value "OMI - Imaging order" ]
  ] ;
  fhir:MessageHeader.destination [
     fhir:index -1 ;
     fhir:MessageHeader.destination.endpoint [ fhir:value "https://pacs.example.nhs.uk/R4/$process-message" ] ;
     fhir:MessageHeader.destination.receiver [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "R0A" ]
       ]
     ]
  ] ;
  fhir:MessageHeader.sender [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "R0A" ]
     ]
  ] ;
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.endpoint [ fhir:value "https://ris.example.nhs.uk/R4" ]
  ] ;
  fhir:MessageHeader.focus [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/ServiceRequest/RadiologyServiceRequestScheduled> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/RadiologyServiceRequestScheduled" ]
  ], [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/ImagingStudy/RadiologyImagingStudyScheduled> ;
     fhir:Reference.reference [ fhir:value "ImagingStudy/RadiologyImagingStudyScheduled" ]
  ] ;
  fhir:MessageHeader.definition [
     fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/MessageDefinition/procedure-scheduled" ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/MessageDefinition/procedure-scheduled>
  ] .

<https://fhir.example.nhs.uk/R4/ServiceRequest/RadiologyServiceRequestScheduled> a fhir:ServiceRequest ;
  fhir:Resource.id [ fhir:value "RadiologyServiceRequestScheduled"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyServiceRequest" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyServiceRequest>
     ]
  ] ;
  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\"><a name=\"ServiceRequest_RadiologyServiceRequestScheduled\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest RadiologyServiceRequestScheduled</b></p><a name=\"RadiologyServiceRequestScheduled\"> </a><a name=\"hcRadiologyServiceRequestScheduled\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-RadiologyServiceRequest.html\">Radiology Service Request</a></p></div><p><b>identifier</b>: Accession ID/RAD26110001</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://snomed.info/sct 363679005}\">Imaging</span></p><p><b>code</b>: <span title=\"Codes:{https://fhir.interweavedigital.nhs.uk/CodeSystem/Interweave-NICIP CCHAPC}, {http://snomed.info/sct 433761009}\">CT Thorax abdomen pelvis with contrast</span></p><p><b>subject</b>: <a href=\"Patient-PatientManchester.html\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( R0A4990415)</a></p><p><b>occurrence</b>: 2026-10-28 14:00:00+0000</p><p><b>authoredOn</b>: 2026-10-26 10:15:00+0000</p><p><b>reasonCode</b>: <span title=\"Codes:\">Staging of suspected colorectal cancer</span></p></div>"
  ] ;
  fhir:ServiceRequest.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 "ACSN" ]
       ], [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ] ;
         fhir:Coding.code [ fhir:value "PLAC" ]
       ]
     ] ;
     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.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "R0A" ]
       ]
     ]
  ] ;
  fhir:ServiceRequest.status [ fhir:value "active"] ;
  fhir:ServiceRequest.intent [ fhir:value "order"] ;
  fhir:ServiceRequest.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:363679005 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "363679005" ]
     ]
  ] ;
  fhir:ServiceRequest.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 sct:433761009 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "433761009" ] ;
       fhir:Coding.display [ fhir:value "CT of thorax, abdomen and pelvis with contrast" ]
     ]
  ] ;
  fhir:ServiceRequest.subject [
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Patient/PatientManchester> ;
     fhir:Reference.reference [ fhir:value "Patient/PatientManchester" ]
  ] ;
  fhir:ServiceRequest.occurrenceDateTime [ fhir:value "2026-10-28T14:00:00Z"^^xsd:dateTime] ;
  fhir:ServiceRequest.authoredOn [ fhir:value "2026-10-26T10:15:00Z"^^xsd:dateTime] ;
  fhir:ServiceRequest.reasonCode [
     fhir:index -1 ;
     fhir:CodeableConcept.text [ fhir:value "Staging of suspected colorectal cancer" ]
  ] .

<https://fhir.example.nhs.uk/R4/ImagingStudy/RadiologyImagingStudyScheduled> a fhir:ImagingStudy ;
  fhir:Resource.id [ fhir:value "RadiologyImagingStudyScheduled"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyImagingStudy" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/RadiologyImagingStudy>
     ]
  ] ;
  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\"><a name=\"ImagingStudy_RadiologyImagingStudyScheduled\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ImagingStudy RadiologyImagingStudyScheduled</b></p><a name=\"RadiologyImagingStudyScheduled\"> </a><a name=\"hcRadiologyImagingStudyScheduled\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-RadiologyImagingStudy.html\">Radiology Imaging Study</a></p></div><p><b>identifier</b>: Study Instance UID/urn:oid:2.25.170157840389855822130589223217853734980</p><p><b>status</b>: Registered</p><p><b>modality</b>: <a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-CT\">DICOM: CT</a> (Computed Tomography)</p><p><b>subject</b>: <a href=\"Patient-PatientManchester.html\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( R0A4990415)</a></p><p><b>basedOn</b>: <a href=\"ServiceRequest-RadiologyServiceRequestScheduled.html\">ServiceRequest CT Thorax abdomen pelvis with contrast</a></p><p><b>procedureCode</b>: <span title=\"Codes:{http://snomed.info/sct 433761009}\">CT of thorax, abdomen and pelvis with contrast</span></p><p><b>description</b>: CT thorax, abdomen and pelvis with contrast</p></div>"
  ] ;
  fhir:ImagingStudy.identifier [
     fhir:index -1 ;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ] ;
         fhir:Coding.code [ fhir:value "110180" ] ;
         fhir:Coding.display [ fhir:value "Study Instance UID" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "urn:dicom:uid" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.25.170157840389855822130589223217853734980" ]
  ] ;
  fhir:ImagingStudy.status [ fhir:value "registered"] ;
  fhir:ImagingStudy.modality [
     fhir:index -1 ;
     fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ] ;
     fhir:Coding.code [ fhir:value "CT" ] ;
     fhir:Coding.display [ fhir:value "Computed Tomography" ]
  ] ;
  fhir:ImagingStudy.subject [
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/Patient/PatientManchester> ;
     fhir:Reference.reference [ fhir:value "Patient/PatientManchester" ]
  ] ;
  fhir:ImagingStudy.basedOn [
     fhir:index -1 ;
     fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/ServiceRequest/RadiologyServiceRequestScheduled> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/RadiologyServiceRequestScheduled" ] ;
     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:ImagingStudy.procedureCode [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:433761009 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "433761009" ] ;
       fhir:Coding.display [ fhir:value "CT of thorax, abdomen and pelvis with contrast" ]
     ]
  ] ;
  fhir:ImagingStudy.description [ fhir:value "CT thorax, abdomen and pelvis with contrast"] .

<https://fhir.example.nhs.uk/R4/Patient/PatientManchester> a fhir:Patient ;
  fhir:Resource.id [ fhir:value "PatientManchester"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/Patient" ;
       fhir:index -1 ;
       fhir:link <https://fhir.nwgenomics.nhs.uk/Imaging/StructureDefinition/Patient>
     ]
  ] ;
  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\"><a name=\"Patient_PatientManchester\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient PatientManchester</b></p><a name=\"PatientManchester\"> </a><a name=\"hcPatientManchester\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-Patient.html\">Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Sansa MANCHESTER  Female, DoB: 1972-09-21 ( R0A4990415)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\"><a href=\"NamingSystem-nhs-number-namingsystem.html\" title=\"NHS Number allocated to the patient in England and Wales. For more details see: [NHS Data Model Dictionary](https://www.datadictionary.nhs.uk/attributes/nhs_number.html)\">NHS Number</a>/9737383192</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">Oxford Rd MANCHESTER M13 9PL </td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>General Practitioner: Identifier: <a href=\"NamingSystem-ods-organization-code-namingsystem.html\" title=\"The identifier system for an Organisation registered with the Organisation Data Service (ODS).\">ODS Organisation Code</a>/P84673</li></ul></td></tr></table></div>"
  ] ;
  fhir:Patient.identifier [
     fhir:index -1 ;
     fhir:Identifier.value [ fhir:value "R0A4990415" ] ;
     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:index -1 ;
     fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
     fhir:Identifier.value [ fhir:value "9737383192" ]
  ] ;
  fhir:Patient.name [
     fhir:index -1 ;
     fhir:HumanName.family [ fhir:value "MANCHESTER" ] ;
     fhir:HumanName.given [
       fhir:value "Sansa" ;
       fhir:index -1
     ]
  ] ;
  fhir:Patient.gender [ fhir:value "female"] ;
  fhir:Patient.birthDate [ fhir:value "1972-09-21"^^xsd:date] ;
  fhir:Patient.address [
     fhir:index -1 ;
     fhir:Address.line [
       fhir:value "Oxford Rd" ;
       fhir:index -1
     ] ;
     fhir:Address.city [ fhir:value "MANCHESTER" ] ;
     fhir:Address.postalCode [ fhir:value "M13 9PL" ]
  ] ;
  fhir:Patient.generalPractitioner [
     fhir:index -1 ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "P84673" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.nwgenomics.nhs.uk/Imaging/Bundle/ProcedureScheduledMessage.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

