@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://examplesihe.org.uk/Bundle/Message-HbA1c-Report-Example> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "Message-HbA1c-Report-Example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/BundleMessage" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/BundleMessage>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:Bundle.identifier [
     fhir:Identifier.value [ fhir:value "NHSE-EX-0001" ]
  ] ;
  fhir:Bundle.type [ fhir:value "message"] ;
  fhir:Bundle.timestamp [ fhir:value "2022-03-08T12:09:00+00:00"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:92d17a28-d06d-55b6-b7f6-d3d9daebf9eb" ] ;
     fhir:Bundle.entry.resource <urn:uuid:92d17a28-d06d-55b6-b7f6-d3d9daebf9eb>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5" ] ;
     fhir:Bundle.entry.resource <urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:84c94bb1-4336-5607-9124-6b82052db22a" ] ;
     fhir:Bundle.entry.resource <urn:uuid:84c94bb1-4336-5607-9124-6b82052db22a>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace" ] ;
     fhir:Bundle.entry.resource <urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad" ] ;
     fhir:Bundle.entry.resource <urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:f9469916-f829-5957-a478-acbef4b04196" ] ;
     fhir:Bundle.entry.resource <urn:uuid:f9469916-f829-5957-a478-acbef4b04196>
  ], [
     fhir:index -1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:73f36ee5-bd67-57cb-860a-d12690aa09ba" ] ;
     fhir:Bundle.entry.resource <urn:uuid:73f36ee5-bd67-57cb-860a-d12690aa09ba>
  ] .

<urn:uuid:92d17a28-d06d-55b6-b7f6-d3d9daebf9eb> a fhir:MessageHeader ;
  fhir:Resource.id [ fhir:value "92d17a28-d06d-55b6-b7f6-d3d9daebf9eb"] ;
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-03-08T12:09:00+00:00"^^xsd:dateTime ] ;
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/MessageHeader" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/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_92d17a28-d06d-55b6-b7f6-d3d9daebf9eb\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 92d17a28-d06d-55b6-b7f6-d3d9daebf9eb</b></p><a name=\"92d17a28-d06d-55b6-b7f6-d3d9daebf9eb\"> </a><a name=\"hc92d17a28-d06d-55b6-b7f6-d3d9daebf9eb\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Last updated: 2022-03-08 12:09: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-R01\">event: R01</a> (ORU/ACK - Unsolicited transmission of an observation message)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td><td><b>Receiver</b></td></tr><tr><td style=\"display: none\">*</td><td>GPSYSTEM</td><td>urn:hl7-v2:GPSYSTEM</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>/B82033</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>/Y8J7D</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>LIMS</td><td>urn:hl7-v2:LIMS</td></tr></table><p><b>focus</b>: <a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-73f36ee5-bd67-57cb-860a-d12690aa09ba\">Diagnostic Report for 'Diagnostic studies report' for '-&gt;ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)'</a></p><p><b>definition</b>: <a href=\"MessageDefinition-laboratory-result.html\">Laboratory Result (R01)</a></p></div>"
  ] ;
  fhir:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0003" ] ;
     fhir:Coding.code [ fhir:value "R01" ] ;
     fhir:Coding.display [ fhir:value "ORU/ACK - Unsolicited transmission of an observation message" ]
  ] ;
  fhir:MessageHeader.destination [
     fhir:index -1 ;
     fhir:MessageHeader.destination.name [ fhir:value "GPSYSTEM" ] ;
     fhir:MessageHeader.destination.endpoint [ fhir:value "urn:hl7-v2:GPSYSTEM" ] ;
     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 "B82033" ]
       ]
     ]
  ] ;
  fhir:MessageHeader.sender [
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "Y8J7D" ]
     ]
  ] ;
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "LIMS" ] ;
     fhir:MessageHeader.source.endpoint [ fhir:value "urn:hl7-v2:LIMS" ]
  ] ;
  fhir:MessageHeader.focus [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:73f36ee5-bd67-57cb-860a-d12690aa09ba" ]
  ] ;
  fhir:MessageHeader.definition [
     fhir:value "https://examplesihe.org.uk/MessageDefinition/laboratory-result" ;
     fhir:link <https://examplesihe.org.uk/MessageDefinition/laboratory-result>
  ] .

<urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5> a fhir:Patient ;
  fhir:Resource.id [ fhir:value "bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/Patient" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/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_bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5</b></p><a name=\"bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\"> </a><a name=\"hcbfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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;\">ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Ids (see the one above)\">Other Ids:</td><td colspan=\"3\"><ul><li>Patient internal identifier/Y8J7D0381527</li><li>National Health Plan Identifier/9999999468</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">B6 5RQ </td></tr></table></div>"
  ] ;
  fhir:Patient.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 "MR" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://examplesihe.org.uk/Id/mrn/RCB" ] ;
     fhir:Identifier.value [ fhir:value "RCB4719263" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "RCB" ]
       ]
     ]
  ], [
     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 "PI" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://examplesihe.org.uk/Id/patient-internal/Y8J7D" ] ;
     fhir:Identifier.value [ fhir:value "Y8J7D0381527" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "Y8J7D" ]
       ]
     ]
  ], [
     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 "NH" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
     fhir:Identifier.value [ fhir:value "9999999468" ]
  ] ;
  fhir:Patient.name [
     fhir:index -1 ;
     fhir:HumanName.family [ fhir:value "EDITESTPATIENT" ] ;
     fhir:HumanName.given [
       fhir:value "ONE" ;
       fhir:index -1
     ], [
       fhir:value "John" ;
       fhir:index -1
     ]
  ] ;
  fhir:Patient.gender [ fhir:value "male"] ;
  fhir:Patient.birthDate [ fhir:value "1925-01-27"^^xsd:date] ;
  fhir:Patient.address [
     fhir:index -1 ;
     fhir:Address.postalCode [ fhir:value "B6 5RQ" ]
  ] .

<urn:uuid:84c94bb1-4336-5607-9124-6b82052db22a> a fhir:PractitionerRole ;
  fhir:Resource.id [ fhir:value "84c94bb1-4336-5607-9124-6b82052db22a"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/PractitionerRole" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/PractitionerRole>
     ]
  ] ;
  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=\"PractitionerRole_84c94bb1-4336-5607-9124-6b82052db22a\"> </a><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole 84c94bb1-4336-5607-9124-6b82052db22a</b></p><a name=\"84c94bb1-4336-5607-9124-6b82052db22a\"> </a><a name=\"hc84c94bb1-4336-5607-9124-6b82052db22a\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-PractitionerRole.html\">PractitionerRole</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Dr Gale GASKELL at PICKERING MEDICAL PRACTICE</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"The practitioner who is able to provide the services in this role\">Practitioner:</td><td colspan=\"3\">Dr Gale GASKELL (Identifier: <a href=\"NamingSystem-gmcnumber-namingsystem.html\" title=\"General Medical Council Consultant Code. For more details see: [NHS Data Model Dictionary](https://www.datadictionary.nhs.uk/attributes/general_medical_council_reference_number.html)\">GMC Number</a>/C1008215)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The organization where the practitioner performs the roles\">Organization:</td><td colspan=\"3\">PICKERING MEDICAL PRACTICE (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>/B82033)</td></tr></table></div>"
  ] ;
  fhir:PractitionerRole.practitioner [
     fhir:Reference.type [ fhir:value "Practitioner" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ] ;
       fhir:Identifier.value [ fhir:value "C1008215" ]
     ] ;
     fhir:Reference.display [ fhir:value "Dr Gale GASKELL" ]
  ] ;
  fhir:PractitionerRole.organization [
     fhir:Reference.type [ fhir:value "Organization" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "B82033" ]
     ] ;
     fhir:Reference.display [ fhir:value "PICKERING MEDICAL PRACTICE" ]
  ] .

<urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace> a fhir:ServiceRequest ;
  fhir:Resource.id [ fhir:value "d722ddcf-b3da-51eb-b616-01d6c5f1eace"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/LaboratoryOrder" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/LaboratoryOrder>
     ]
  ] ;
  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_d722ddcf-b3da-51eb-b616-01d6c5f1eace\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest d722ddcf-b3da-51eb-b616-01d6c5f1eace</b></p><a name=\"d722ddcf-b3da-51eb-b616-01d6c5f1eace\"> </a><a name=\"hcd722ddcf-b3da-51eb-b616-01d6c5f1eace\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-LaboratoryOrder.html\">Laboratory Order</a></p></div><p><b>identifier</b>: Placer Identifier/REQ-20220129-000241, Filler Identifier/REP-20220130-007843</p><p><b>status</b>: Completed</p><p><b>intent</b>: Order</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 999791000000106}\">Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised</span></p><p><b>subject</b>: <a href=\"Bundle-Document-CRP-Report-Example.html#urn-uuid-bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\">ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)</a></p><p><b>authoredOn</b>: 2022-01-29 10:24:00+0000</p><p><b>requester</b>: <a href=\"Bundle-Document-CRP-Report-Example.html#urn-uuid-84c94bb1-4336-5607-9124-6b82052db22a\">Dr Gale GASKELL at PICKERING MEDICAL PRACTICE</a></p><p><b>performer</b>: TD008362 PATH LAB 001 (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>/Y8J7D)</p><p><b>specimen</b>: <a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-c41f9657-4d5b-553e-97db-9caf4478d9ad\">Specimen: identifier = Placer Identifier: SPC-REQ-20220129-000362; accessionIdentifier = Accession ID: SPC-Lab-20220129-008927; status = available; type = Venous blood specimen; receivedTime = 2022-01-29 15:14:00+0000</a></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 "PLAC" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://B82033-pickeringmedicalpractice.com/labrequest" ] ;
     fhir:Identifier.value [ fhir:value "REQ-20220129-000241" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "B82033" ]
       ]
     ]
  ], [
     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://Y8J7D-pathlab001.com/report" ] ;
     fhir:Identifier.value [ fhir:value "REP-20220130-007843" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "Y8J7D" ]
       ]
     ]
  ] ;
  fhir:ServiceRequest.status [ fhir:value "completed"] ;
  fhir:ServiceRequest.intent [ fhir:value "order"] ;
  fhir:ServiceRequest.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:999791000000106 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "999791000000106" ] ;
       fhir:Coding.display [ fhir:value "Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised" ]
     ]
  ] ;
  fhir:ServiceRequest.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "9999999468" ]
     ]
  ] ;
  fhir:ServiceRequest.authoredOn [ fhir:value "2022-01-29T10:24:00+00:00"^^xsd:dateTime] ;
  fhir:ServiceRequest.requester [
     fhir:Reference.reference [ fhir:value "urn:uuid:84c94bb1-4336-5607-9124-6b82052db22a" ]
  ] ;
  fhir:ServiceRequest.performer [
     fhir:index -1 ;
     fhir:Reference.type [ fhir:value "Organization" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "Y8J7D" ]
     ] ;
     fhir:Reference.display [ fhir:value "TD008362 PATH LAB 001" ]
  ] ;
  fhir:ServiceRequest.specimen [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad" ]
  ] .

<urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad> a fhir:Specimen ;
  fhir:Resource.id [ fhir:value "c41f9657-4d5b-553e-97db-9caf4478d9ad"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/Specimen" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/Specimen>
     ]
  ] ;
  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=\"Specimen_c41f9657-4d5b-553e-97db-9caf4478d9ad\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Specimen c41f9657-4d5b-553e-97db-9caf4478d9ad</b></p><a name=\"c41f9657-4d5b-553e-97db-9caf4478d9ad\"> </a><a name=\"hcc41f9657-4d5b-553e-97db-9caf4478d9ad\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-Specimen.html\">Specimen</a></p></div><p><b>identifier</b>: Placer Identifier/SPC-REQ-20220129-000362</p><p><b>accessionIdentifier</b>: Accession ID/SPC-Lab-20220129-008927</p><p><b>status</b>: Available</p><p><b>type</b>: <span title=\"Codes:\">Venous blood specimen</span></p><p><b>subject</b>: <a href=\"Bundle-Document-CRP-Report-Example.html#urn-uuid-bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\">ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)</a></p><p><b>receivedTime</b>: 2022-01-29 15:14:00+0000</p><p><b>request</b>: <a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-d722ddcf-b3da-51eb-b616-01d6c5f1eace\">ServiceRequest Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised</a></p><h3>Collections</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Collected[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>2022-01-29 10:18:00+0000</td></tr></table></div>"
  ] ;
  fhir:Specimen.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 "PLAC" ]
       ]
     ] ;
     fhir:Identifier.system [ fhir:value "http://B82033-pickeringmedicalpractice.com/specimen" ] ;
     fhir:Identifier.value [ fhir:value "SPC-REQ-20220129-000362" ]
  ] ;
  fhir:Specimen.accessionIdentifier [
     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://Y8J7D-pathlab001.com/specimen" ] ;
     fhir:Identifier.value [ fhir:value "SPC-Lab-20220129-008927" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "Y8J7D" ]
       ]
     ]
  ] ;
  fhir:Specimen.status [ fhir:value "available"] ;
  fhir:Specimen.type [
     fhir:CodeableConcept.text [ fhir:value "Venous blood specimen" ]
  ] ;
  fhir:Specimen.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "9999999468" ]
     ]
  ] ;
  fhir:Specimen.receivedTime [ fhir:value "2022-01-29T15:14:00+00:00"^^xsd:dateTime] ;
  fhir:Specimen.request [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace" ]
  ] ;
  fhir:Specimen.collection [
     fhir:Specimen.collection.collectedDateTime [ fhir:value "2022-01-29T10:18:00+00:00"^^xsd:dateTime ]
  ] .

<urn:uuid:f9469916-f829-5957-a478-acbef4b04196> a fhir:Observation ;
  fhir:Resource.id [ fhir:value "f9469916-f829-5957-a478-acbef4b04196"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/LaboratoryResult" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/LaboratoryResult>
     ]
  ] ;
  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=\"Observation_f9469916-f829-5957-a478-acbef4b04196\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation f9469916-f829-5957-a478-acbef4b04196</b></p><a name=\"f9469916-f829-5957-a478-acbef4b04196\"> </a><a name=\"hcf9469916-f829-5957-a478-acbef4b04196\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-LaboratoryResult.html\">Laboratory Result</a></p></div><p><b>basedOn</b>: <a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-d722ddcf-b3da-51eb-b616-01d6c5f1eace\">ServiceRequest Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised</a></p><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 999791000000106}\">Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised</span></p><p><b>subject</b>: <a href=\"Bundle-Document-CRP-Report-Example.html#urn-uuid-bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5\">ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)</a></p><p><b>effective</b>: 2022-01-29 10:18:00+0000</p><p><b>issued</b>: 2022-01-30 12:48:00+0000</p><p><b>performer</b>: TD008362 PATH LAB 001 (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>/Y8J7D)</p><p><b>value</b>: 54 mmol/mol<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemmol/mol = 'mmol/mol')</span></p><p><b>note</b>: </p><blockquote><div><p>DIAGNOSIS OF DIABETES MELLITUS:\nHbA1c of 48 mmol/mol and above is diagnostic of DM (WHO 2011)\n42 - 47 mmol/mol indicates high risk of DM (NICE Guidance PH38 2012)</p>\n<p>MONITORING OF DIABETES MELLITUS (ADULTS):\nType 2 target values: 48 mmol/mol – 57 mmol/mol (NICE Guidelines NG28)\nType 1 target values: 48 mmol/mol or lower (NICE Guidelines NG17)</p>\n</div></blockquote><p><b>specimen</b>: <a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-c41f9657-4d5b-553e-97db-9caf4478d9ad\">Specimen: identifier = Placer Identifier: SPC-REQ-20220129-000362; accessionIdentifier = Accession ID: SPC-Lab-20220129-008927; status = available; type = Venous blood specimen; receivedTime = 2022-01-29 15:14:00+0000</a></p></div>"
  ] ;
  fhir:Observation.basedOn [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace" ]
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ;
       fhir:Coding.code [ fhir:value "laboratory" ] ;
       fhir:Coding.display [ fhir:value "Laboratory" ]
     ]
  ] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:999791000000106 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "999791000000106" ] ;
       fhir:Coding.display [ fhir:value "Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "9999999468" ]
     ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2022-01-29T10:18:00+00:00"^^xsd:dateTime] ;
  fhir:Observation.issued [ fhir:value "2022-01-30T12:48:00+00:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index -1 ;
     fhir:Reference.type [ fhir:value "Organization" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "Y8J7D" ]
     ] ;
     fhir:Reference.display [ fhir:value "TD008362 PATH LAB 001" ]
  ] ;
  fhir:Observation.valueQuantity [
     fhir:Quantity.value [ fhir:value "54"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "mmol/mol" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "mmol/mol" ]
  ] ;
  fhir:Observation.note [
     fhir:index -1 ;
     fhir:Annotation.text [ fhir:value "DIAGNOSIS OF DIABETES MELLITUS:\nHbA1c of 48 mmol/mol and above is diagnostic of DM (WHO 2011)\n42 - 47 mmol/mol indicates high risk of DM (NICE Guidance PH38 2012)\n\nMONITORING OF DIABETES MELLITUS (ADULTS):\nType 2 target values: 48 mmol/mol – 57 mmol/mol (NICE Guidelines NG28)\nType 1 target values: 48 mmol/mol or lower (NICE Guidelines NG17)" ]
  ] ;
  fhir:Observation.specimen [
     fhir:Reference.reference [ fhir:value "urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad" ]
  ] .

<urn:uuid:73f36ee5-bd67-57cb-860a-d12690aa09ba> a fhir:DiagnosticReport ;
  fhir:Resource.id [ fhir:value "73f36ee5-bd67-57cb-860a-d12690aa09ba"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://examplesihe.org.uk/StructureDefinition/LaboratoryReport" ;
       fhir:index -1 ;
       fhir:link <https://examplesihe.org.uk/StructureDefinition/LaboratoryReport>
     ]
  ] ;
  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=\"DiagnosticReport_73f36ee5-bd67-57cb-860a-d12690aa09ba\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DiagnosticReport 73f36ee5-bd67-57cb-860a-d12690aa09ba</b></p><a name=\"73f36ee5-bd67-57cb-860a-d12690aa09ba\"> </a><a name=\"hc73f36ee5-bd67-57cb-860a-d12690aa09ba\"> </a><div style=\"display: inline-block; background-color: #fbffeb; 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-LaboratoryReport.html\">Laboratory Report</a></p></div><h2><span title=\"Codes:{http://snomed.info/sct 721981007}, {http://loinc.org 11502-2}\">Diagnostic studies report</span> (<span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0074 CH}\">Chemistry</span>) </h2><table class=\"grid\"><tr><td>Subject</td><td>ONE John EDITESTPATIENT  Male, DoB: 1925-01-27 ( Medical record number: RCB4719263)</td></tr><tr><td>Relevant Time</td><td>2022-01-29 10:18:00+0000</td></tr><tr><td>Reported</td><td>2022-01-30 12:48:00+0000</td></tr><tr><td>Performer</td><td> TD008362 PATH LAB 001 (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>/Y8J7D)</td></tr><tr><td>Identifier</td><td> Filler Identifier/REP-20220130-007843</td></tr></table><p><b>Report Details</b></p><table class=\"grid\"><tr><td><b>Code</b></td><td><b>Value</b></td><td><b>Flags</b></td><td><b>Note</b></td></tr><tr><td><a href=\"Bundle-Document-HbA1c-Report-Example.html#urn-uuid-f9469916-f829-5957-a478-acbef4b04196\"><span title=\"Codes:{http://snomed.info/sct 999791000000106}\">Haemoglobin A1c level - International Federation of Clinical Chemistry and Laboratory Medicine standardised</span></a></td><td>54 mmol/mol<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemmol/mol = 'mmol/mol')</span></td><td>Final</td><td><blockquote><div><p>DIAGNOSIS OF DIABETES MELLITUS:\nHbA1c of 48 mmol/mol and above is diagnostic of DM (WHO 2011)\n42 - 47 mmol/mol indicates high risk of DM (NICE Guidance PH38 2012)</p>\n<p>MONITORING OF DIABETES MELLITUS (ADULTS):\nType 2 target values: 48 mmol/mol – 57 mmol/mol (NICE Guidelines NG28)\nType 1 target values: 48 mmol/mol or lower (NICE Guidelines NG17)</p>\n</div></blockquote></td></tr></table></div>"
  ] ;
  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://Y8J7D-pathlab001.com/report" ] ;
     fhir:Identifier.value [ fhir:value "REP-20220130-007843" ] ;
     fhir:Identifier.assigner [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "Y8J7D" ]
       ]
     ]
  ] ;
  fhir:DiagnosticReport.basedOn [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:d722ddcf-b3da-51eb-b616-01d6c5f1eace" ]
  ] ;
  fhir:DiagnosticReport.status [ fhir:value "final"] ;
  fhir:DiagnosticReport.category [
     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 "CH" ] ;
       fhir:Coding.display [ fhir:value "Chemistry" ]
     ]
  ] ;
  fhir:DiagnosticReport.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:721981007 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "721981007" ] ;
       fhir:Coding.display [ fhir:value "Diagnostic studies report" ]
     ], [
       fhir:index -1 ;
       a loinc:11502-2 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "11502-2" ] ;
       fhir:Coding.display [ fhir:value "Laboratory report" ]
     ]
  ] ;
  fhir:DiagnosticReport.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:bfe333d7-2a8c-5dae-a44a-5d3b120d2ef5" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "9999999468" ]
     ]
  ] ;
  fhir:DiagnosticReport.effectiveDateTime [ fhir:value "2022-01-29T10:18:00+00:00"^^xsd:dateTime] ;
  fhir:DiagnosticReport.issued [ fhir:value "2022-01-30T12:48:00+00:00"^^xsd:dateTime] ;
  fhir:DiagnosticReport.performer [
     fhir:index -1 ;
     fhir:Reference.type [ fhir:value "Organization" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
       fhir:Identifier.value [ fhir:value "Y8J7D" ]
     ] ;
     fhir:Reference.display [ fhir:value "TD008362 PATH LAB 001" ]
  ] ;
  fhir:DiagnosticReport.specimen [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:c41f9657-4d5b-553e-97db-9caf4478d9ad" ]
  ] ;
  fhir:DiagnosticReport.result [
     fhir:index -1 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:f9469916-f829-5957-a478-acbef4b04196" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://examplesihe.org.uk/Bundle/Message-HbA1c-Report-Example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

