@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/shared-care/ValueSet/provenance-reason-type-vs> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "provenance-reason-type-vs"] ;
  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: ValueSet provenance-reason-type-vs</b></p><a name=\"provenance-reason-type-vs\"> </a><a name=\"hcprovenance-reason-type-vs\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Include all codes defined in <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-DataOperation.html\"><code>http://terminology.hl7.org/CodeSystem/v3-DataOperation</code></a><span title=\"Version is not explicitly stated, which means it is fixed to 5.0.0, the version found through the package references\"> version ?5.0.0</span></li><li>Include all codes defined in <a href=\"CodeSystem-provenance-reason-type-cs.html\"><code>https://fhir-ig.digital.health.nz/shared-care/CodeSystem/provenance-reason-type-cs</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version ?0.4.5</span></li></ul></div>"
  ] ;
  fhir:ValueSet.url [ fhir:value "https://fhir-ig.digital.health.nz/shared-care/ValueSet/provenance-reason-type-vs"] ;
  fhir:ValueSet.version [ fhir:value "0.4.5"] ;
  fhir:ValueSet.name [ fhir:value "ProvenanceReasonTypeVS"] ;
  fhir:ValueSet.title [ fhir:value "Provenance Reason Type"] ;
  fhir:ValueSet.status [ fhir:value "active"] ;
  fhir:ValueSet.date [ fhir:value "2026-07-06T02:50:45+00:00"^^xsd:dateTime] ;
  fhir:ValueSet.publisher [ fhir:value "Te Whatu Ora"] ;
  fhir:ValueSet.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "Te Whatu Ora" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.tewhatuora.govt.nz/" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:ContactDetail.name [ fhir:value "Te Whatu Ora Integration Team" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "integration@tewhatuora.govt.nz" ] ;
       fhir:ContactPoint.use [ fhir:value "work" ]
     ]
  ] ;
  fhir:ValueSet.description [ fhir:value "Reason type codes for Provenance tracking, combining HL7 v3 DataOperation codes with local DHO reason types"] ;
  fhir:ValueSet.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "NZ" ] ;
       fhir:Coding.display [ fhir:value "New Zealand" ]
     ]
  ] ;
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index 0 ;
       fhir:ValueSet.compose.include.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-DataOperation" ]
     ], [
       fhir:index 1 ;
       fhir:ValueSet.compose.include.system [ fhir:value "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/provenance-reason-type-cs" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir-ig.digital.health.nz/shared-care/ValueSet/provenance-reason-type-vs.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

