@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 -------------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/bsa/Bundle/DRB1> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "DRB1"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org.nz/fhir/ig/bsa/StructureDefinition/BsaDiagnosticReport" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org.nz/fhir/ig/bsa/StructureDefinition/BsaDiagnosticReport>
     ]
  ] ;
  fhir:Bundle.type [ fhir:value "searchset"] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.resource [
       a fhir:DiagnosticReport ;
       fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DiagnosticReport_null\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DiagnosticReport </b></p><h2><span title=\"Codes:{http://loinc.org 18748-4}\">Diagnostic imaging study</span> (<span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0074 RAD}\">Radiology</span>) </h2><table class=\"grid\"><tr><td>Subject</td><td>Unable to get Patient Details</td></tr><tr><td>Reported</td><td>2005-05-16 00:00:00+0000</td></tr></table><p><b>Report Details</b></p></div>"
       ] ;
       fhir:DiagnosticReport.status [ fhir:value "final" ] ;
       fhir:DiagnosticReport.category [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0074" ] ;
           fhir:Coding.code [ fhir:value "RAD" ]
         ]
       ] ;
       fhir:DiagnosticReport.code [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           a loinc:18748-4 ;
           fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
           fhir:Coding.code [ fhir:value "18748-4" ]
         ]
       ] ;
       fhir:DiagnosticReport.subject [
         fhir:Reference.type [ fhir:value "https://standards.digital.health.nz/ns/nhi-id" ] ;
         fhir:Reference.identifier [
           fhir:Identifier.value [ fhir:value "ZNK28DJ" ]
         ] ;
         fhir:Reference.display [ fhir:value "Participant NHI Id" ]
       ] ;
       fhir:DiagnosticReport.issued [ fhir:value "2005-05-16T00:00:00+00:00"^^xsd:dateTime ] ;
       fhir:DiagnosticReport.presentedForm [
         fhir:index 0 ;
         fhir:Attachment.contentType [ fhir:value "text/html" ] ;
         fhir:Attachment.data [ fhir:value "SGVsbG8gV29ybGQhISE="^^xsd:base64Binary ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.resource [
       a fhir:DiagnosticReport ;
       fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DiagnosticReport_null\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DiagnosticReport </b></p><h2><span title=\"Codes:{http://loinc.org 18748-4}\">Diagnostic imaging study</span> (<span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0074 RAD}\">Radiology</span>) </h2><table class=\"grid\"><tr><td>Subject</td><td>Unable to get Patient Details</td></tr><tr><td>Reported</td><td>2025-05-16 00:00:00+0000</td></tr></table><p><b>Report Details</b></p></div>"
       ] ;
       fhir:DiagnosticReport.status [ fhir:value "preliminary" ] ;
       fhir:DiagnosticReport.category [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0074" ] ;
           fhir:Coding.code [ fhir:value "RAD" ]
         ]
       ] ;
       fhir:DiagnosticReport.code [
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           a loinc:18748-4 ;
           fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
           fhir:Coding.code [ fhir:value "18748-4" ]
         ]
       ] ;
       fhir:DiagnosticReport.subject [
         fhir:Reference.type [ fhir:value "https://standards.digital.health.nz/ns/nhi-id" ] ;
         fhir:Reference.identifier [
           fhir:Identifier.value [ fhir:value "ZUA48EH" ]
         ] ;
         fhir:Reference.display [ fhir:value "Participant NHI Id" ]
       ] ;
       fhir:DiagnosticReport.issued [ fhir:value "2025-05-16T00:00:00+00:00"^^xsd:dateTime ] ;
       fhir:DiagnosticReport.presentedForm [
         fhir:index 0 ;
         fhir:Attachment.contentType [ fhir:value "text/html" ] ;
         fhir:Attachment.data [ fhir:value "SGVsbG8gV29ybGQhISE="^^xsd:base64Binary ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/bsa/Bundle/DRB1.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

