@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 -------------------------------------------------------------------

<http://hl7.org.nz/fhir/NamingSystem/sdhr-id> a fhir:NamingSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "sdhr-id"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: NamingSystem sdhr-id</b></p><a name=\"sdhr-id\"> </a><a name=\"hcsdhr-id\"> </a><h3>Summary</h3><table class=\"grid\"><tr><td>Defining URL</td><td>http://hl7.org.nz/fhir/NamingSystem/sdhr-id</td></tr><tr><td>Name</td><td>Sdhr_id</td></tr><tr><td>Status</td><td>active</td></tr><tr><td>Definition</td><td><div><p>Identifier namespace for SDHR-assigned resource identifiers.</p>\n</div></td></tr><tr><td>Publisher</td><td>HL7 New Zealand</td></tr></table><h3>Identifiers</h3><table class=\"grid\"><tr><td><b>Type</b></td><td><b>Value</b></td><td><b>Preferred</b></td></tr><tr><td>URI</td><td>https://standards.digital.health.nz/ns/sdhr-id</td><td>true</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-NamingSystem.url" ] ;
     fhir:Extension.valueUri [ fhir:value "http://hl7.org.nz/fhir/NamingSystem/sdhr-id" ]
  ] ;
  fhir:NamingSystem.name [ fhir:value "Sdhr_id"] ;
  fhir:NamingSystem.status [ fhir:value "active"] ;
  fhir:NamingSystem.kind [ fhir:value "identifier"] ;
  fhir:NamingSystem.date [ fhir:value "2026-06-03"^^xsd:date] ;
  fhir:NamingSystem.publisher [ fhir:value "HL7 New Zealand"] ;
  fhir:NamingSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "HL7 New Zealand" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "mailto:admin@hl7.org.nz" ]
     ]
  ] ;
  fhir:NamingSystem.responsible [ fhir:value "HISO"] ;
  fhir:NamingSystem.description [ fhir:value "Identifier namespace for SDHR-assigned resource identifiers."] ;
  fhir:NamingSystem.usage [ fhir:value "This sdhr-id identifier is recorded in Resource.identifier on a local resource to support synchronisation with the SDHR Data Service. Its value is the original SDHR-assigned FHIR Resource.id, allowing the integrating system to preserve a reference to the SDHR resource. This enables the system to match the local resource back to the corresponding SDHR resource during future synchronisation and other interactions."] ;
  fhir:NamingSystem.uniqueId [
     fhir:index 0 ;
     fhir:NamingSystem.uniqueId.type [ fhir:value "uri" ] ;
     fhir:NamingSystem.uniqueId.value [ fhir:value "https://standards.digital.health.nz/ns/sdhr-id" ] ;
     fhir:NamingSystem.uniqueId.preferred [ fhir:value "true"^^xsd:boolean ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.nz/fhir/NamingSystem/sdhr-id.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

