@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/Bundle/BundleVerificationSamplesResponseExample> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "BundleVerificationSamplesResponseExample"] ;
  fhir:Bundle.type [ fhir:value "searchset"] ;
  fhir:Bundle.timestamp [ fhir:value "2026-07-03T10:00:00+12:00"^^xsd:dateTime] ;
  fhir:Bundle.total [ fhir:value "2"^^xsd:nonNegativeInteger] ;
  fhir:Bundle.link [
     fhir:index 0 ;
     fhir:Bundle.link.relation [ fhir:value "self" ] ;
     fhir:Bundle.link.url [ fhir:value "https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/$verification-samples" ]
  ] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/b3f9de58-2da4-427c-a39c-07147eac3615" ] ;
     fhir:Bundle.entry.resource <https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/b3f9de58-2da4-427c-a39c-07147eac3615>
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/6ebffb1a-61a1-4646-857e-51d4153b698d" ] ;
     fhir:Bundle.entry.resource <https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/6ebffb1a-61a1-4646-857e-51d4153b698d>
  ] .

<https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/b3f9de58-2da4-427c-a39c-07147eac3615> a fhir:AuditEvent ;
  fhir:Resource.id [ fhir:value "b3f9de58-2da4-427c-a39c-07147eac3615"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"AuditEvent_b3f9de58-2da4-427c-a39c-07147eac3615\"> </a><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent b3f9de58-2da4-427c-a39c-07147eac3615</b></p><a name=\"b3f9de58-2da4-427c-a39c-07147eac3615\"> </a><a name=\"hcb3f9de58-2da4-427c-a39c-07147eac3615\"> </a><p><b>type</b>: <a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-audit-event-type.html#audit-event-type-rest\">Audit Event ID: rest</a> (RESTful Operation)</p><p><b>recorded</b>: 2026-07-03 09:15:00+1200</p><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/extra-security-role-type dataprocessor}\">Data Processor</span></p><p><b>who</b>: Identifier: <code>https://api.auth.digital.health.nz/realms/hnz-integration/clients</code>/2b628d46-bdad-4f91-a3b0-c26e058c7d24</p><p><b>requestor</b>: false</p></blockquote><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass PROV}\">healthcare provider</span></p><p><b>who</b>: Identifier: HPIProvider/99ZZFX</p><p><b>requestor</b>: true</p></blockquote><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass PROV}\">healthcare provider</span></p><p><b>who</b>: Identifier: HPIOrganization/GZZ999</p><p><b>requestor</b>: false</p></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Observer</b></td></tr><tr><td style=\"display: none\">*</td><td>SDHR verification samples</td></tr></table><blockquote><p><b>entity</b></p><blockquote><p><b>detail</b></p><p><b>type</b>: nhi</p><p><b>value</b>: ZZZ0004</p></blockquote><blockquote><p><b>detail</b></p><p><b>type</b>: correlationId</p><p><b>value</b>: c500dae6-ac65-4e4f-a4c1-5aa222a6a807</p></blockquote></blockquote></div>"
  ] ;
  fhir:AuditEvent.type [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-event-type" ] ;
     fhir:Coding.code [ fhir:value "rest" ]
  ] ;
  fhir:AuditEvent.recorded [ fhir:value "2026-07-03T09:15:00+12:00"^^xsd:dateTime] ;
  fhir:AuditEvent.agent [
     fhir:index 0 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/extra-security-role-type" ] ;
         fhir:Coding.code [ fhir:value "dataprocessor" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://api.auth.digital.health.nz/realms/hnz-integration/clients" ] ;
         fhir:Identifier.value [ fhir:value "2b628d46-bdad-4f91-a3b0-c26e058c7d24" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 1 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleClass" ] ;
         fhir:Coding.code [ fhir:value "PROV" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-person-id" ] ;
         fhir:Identifier.value [ fhir:value "99ZZFX" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ], [
     fhir:index 2 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleClass" ] ;
         fhir:Coding.code [ fhir:value "PROV" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-organisation-id" ] ;
         fhir:Identifier.value [ fhir:value "GZZ999" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ]
  ] ;
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.observer [
       fhir:Reference.display [ fhir:value "SDHR verification samples" ]
     ]
  ] ;
  fhir:AuditEvent.entity [
     fhir:index 0 ;
     fhir:AuditEvent.entity.detail [
       fhir:index 0 ;
       fhir:AuditEvent.entity.detail.type [ fhir:value "nhi" ] ;
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "ZZZ0004" ]
     ], [
       fhir:index 1 ;
       fhir:AuditEvent.entity.detail.type [ fhir:value "correlationId" ] ;
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "c500dae6-ac65-4e4f-a4c1-5aa222a6a807" ]
     ]
  ] .

<https://api.uat.sdhr.digital.health.nz/s2s/AuditEvent/6ebffb1a-61a1-4646-857e-51d4153b698d> a fhir:AuditEvent ;
  fhir:Resource.id [ fhir:value "6ebffb1a-61a1-4646-857e-51d4153b698d"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"AuditEvent_6ebffb1a-61a1-4646-857e-51d4153b698d\"> </a><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent 6ebffb1a-61a1-4646-857e-51d4153b698d</b></p><a name=\"6ebffb1a-61a1-4646-857e-51d4153b698d\"> </a><a name=\"hc6ebffb1a-61a1-4646-857e-51d4153b698d\"> </a><p><b>type</b>: <a href=\"http://terminology.hl7.org/7.4.0/CodeSystem-audit-event-type.html#audit-event-type-rest\">Audit Event ID: rest</a> (RESTful Operation)</p><p><b>recorded</b>: 2026-07-03 09:20:00+1200</p><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/extra-security-role-type dataprocessor}\">Data Processor</span></p><p><b>who</b>: Identifier: <code>https://api.auth.digital.health.nz/realms/hnz-integration/clients</code>/2b628d46-bdad-4f91-a3b0-c26e058c7d24</p><p><b>requestor</b>: false</p></blockquote><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass PROV}\">healthcare provider</span></p><p><b>who</b>: Identifier: HPIProvider/99ZZFX</p><p><b>requestor</b>: true</p></blockquote><blockquote><p><b>agent</b></p><p><b>role</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleClass PROV}\">healthcare provider</span></p><p><b>who</b>: Identifier: HPIOrganization/GZZ999</p><p><b>requestor</b>: false</p></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Observer</b></td></tr><tr><td style=\"display: none\">*</td><td>SDHR verification samples</td></tr></table><blockquote><p><b>entity</b></p><blockquote><p><b>detail</b></p><p><b>type</b>: nhi</p><p><b>value</b>: ZZZ0004</p></blockquote><blockquote><p><b>detail</b></p><p><b>type</b>: correlationId</p><p><b>value</b>: c500dae6-ac65-4e4f-a4c1-5aa222a6a807</p></blockquote></blockquote></div>"
  ] ;
  fhir:AuditEvent.type [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-event-type" ] ;
     fhir:Coding.code [ fhir:value "rest" ]
  ] ;
  fhir:AuditEvent.recorded [ fhir:value "2026-07-03T09:20:00+12:00"^^xsd:dateTime] ;
  fhir:AuditEvent.agent [
     fhir:index 0 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/extra-security-role-type" ] ;
         fhir:Coding.code [ fhir:value "dataprocessor" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://api.auth.digital.health.nz/realms/hnz-integration/clients" ] ;
         fhir:Identifier.value [ fhir:value "2b628d46-bdad-4f91-a3b0-c26e058c7d24" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ]
  ], [
     fhir:index 1 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleClass" ] ;
         fhir:Coding.code [ fhir:value "PROV" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-person-id" ] ;
         fhir:Identifier.value [ fhir:value "99ZZFX" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ], [
     fhir:index 2 ;
     fhir:AuditEvent.agent.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleClass" ] ;
         fhir:Coding.code [ fhir:value "PROV" ]
       ]
     ] ;
     fhir:AuditEvent.agent.who [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://standards.digital.health.nz/ns/hpi-organisation-id" ] ;
         fhir:Identifier.value [ fhir:value "GZZ999" ]
       ]
     ] ;
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ]
  ] ;
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.observer [
       fhir:Reference.display [ fhir:value "SDHR verification samples" ]
     ]
  ] ;
  fhir:AuditEvent.entity [
     fhir:index 0 ;
     fhir:AuditEvent.entity.detail [
       fhir:index 0 ;
       fhir:AuditEvent.entity.detail.type [ fhir:value "nhi" ] ;
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "ZZZ0004" ]
     ], [
       fhir:index 1 ;
       fhir:AuditEvent.entity.detail.type [ fhir:value "correlationId" ] ;
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "c500dae6-ac65-4e4f-a4c1-5aa222a6a807" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/sdhr/Bundle/BundleVerificationSamplesResponseExample.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

