@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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/CodeSystem/sdhr-participation-reason> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "sdhr-participation-reason"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "1" ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem sdhr-participation-reason</b></p><a name=\"sdhr-participation-reason\"> </a><a name=\"hcsdhr-participation-reason\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 1</p></div><p>This  code system <code>https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-participation-reason</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">sdhr-record-withheld<a name=\"sdhr-participation-reason-sdhr-record-withheld\"> </a></td><td>Record withheld</td><td>Record withheld from the service for privacy or confidentiality reasons.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-record-released<a name=\"sdhr-participation-reason-sdhr-record-released\"> </a></td><td>Record released</td><td>Record that was previously withheld has been released (is no longer confidential or restricted) to the service by the patient.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-facility-opt-out<a name=\"sdhr-participation-reason-sdhr-facility-opt-out\"> </a></td><td>Facility opt out</td><td>Patient has opted out of participation entirely at the facility. This means that no records will be shared from that facility.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-facility-opt-in<a name=\"sdhr-participation-reason-sdhr-facility-opt-in\"> </a></td><td>Facility opt in</td><td>Patient has opted in to participation at the facility. This means that records will be shared from that facility.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-hnz-opt-out<a name=\"sdhr-participation-reason-sdhr-hnz-opt-out\"> </a></td><td>HNZ opt out</td><td>Patient has opted out of participation entirely with Health NZ. This means that no records will be shared from any facility.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-hnz-opt-in<a name=\"sdhr-participation-reason-sdhr-hnz-opt-in\"> </a></td><td>HNZ opt in</td><td>Patient has opted in to participation with Health NZ. This means that records will be shared from all facilities.</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-participation-reason"^^xsd:anyURI ;
     fhir:l <https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-participation-reason>
  ] ; # 
  fhir:version [ fhir:v "1.0.1"] ; # 
  fhir:name [ fhir:v "SDHRParticipationReason"] ; # 
  fhir:title [ fhir:v "SDHR Participation Reason Codes"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2026-06-05T02:07:34+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Health New Zealand"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Health New Zealand" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://github.com/tewhatuora" ]
     ] )
  ] [
     fhir:name [ fhir:v "HNZ Integration Team" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "integration@tewhatuora.govt.nz" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This code system defines the reasons for a patient to participate in the Shared Digital Health Record service."] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:count [ fhir:v "6"^^xsd:nonNegativeInteger] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "sdhr-record-withheld" ] ;
     fhir:display [ fhir:v "Record withheld" ] ;
     fhir:definition [ fhir:v "Record withheld from the service for privacy or confidentiality reasons." ]
  ] [
     fhir:code [ fhir:v "sdhr-record-released" ] ;
     fhir:display [ fhir:v "Record released" ] ;
     fhir:definition [ fhir:v "Record that was previously withheld has been released (is no longer confidential or restricted) to the service by the patient." ]
  ] [
     fhir:code [ fhir:v "sdhr-facility-opt-out" ] ;
     fhir:display [ fhir:v "Facility opt out" ] ;
     fhir:definition [ fhir:v "Patient has opted out of participation entirely at the facility. This means that no records will be shared from that facility." ]
  ] [
     fhir:code [ fhir:v "sdhr-facility-opt-in" ] ;
     fhir:display [ fhir:v "Facility opt in" ] ;
     fhir:definition [ fhir:v "Patient has opted in to participation at the facility. This means that records will be shared from that facility." ]
  ] [
     fhir:code [ fhir:v "sdhr-hnz-opt-out" ] ;
     fhir:display [ fhir:v "HNZ opt out" ] ;
     fhir:definition [ fhir:v "Patient has opted out of participation entirely with Health NZ. This means that no records will be shared from any facility." ]
  ] [
     fhir:code [ fhir:v "sdhr-hnz-opt-in" ] ;
     fhir:display [ fhir:v "HNZ opt in" ] ;
     fhir:definition [ fhir:v "Patient has opted in to participation with Health NZ. This means that records will be shared from all facilities." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

