NZ Shared Digital Health Record API
1.0.0 - release

NZ Shared Digital Health Record API, published by Health New Zealand. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/tewhatuora/fhir-sdhr/ and changes regularly. See the Directory of published versions

## : SDHR Specific Outcome Codes - TTL Representation

Active as of 2025-11-18

Raw ttl | Download

    @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 -------------------------------------------------------------------

     a fhir:CodeSystem ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "sdhr-outcome-codes"] ; #
      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-outcome-codes</b></p><a name=\"sdhr-outcome-codes\"> </a><a name=\"hcsdhr-outcome-codes\"> </a><p>This case-sensitive code system <code>https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-outcome-codes</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-records-withheld-at-source<a name=\"sdhr-outcome-codes-sdhr-records-withheld-at-source\"> </a></td><td>Records withheld at source</td><td>This code is used when the patient has records that are withheld from the Shared Digital Health Record service at source, for example, a GP practice or hospital.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-participation-status-denied<a name=\"sdhr-outcome-codes-sdhr-participation-status-denied\"> </a></td><td>SDHR Participation Status Denied</td><td>This code is used when the patient has opted out of participating in the Shared Digital Health Record service.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-participation-status-denied-facility<a name=\"sdhr-outcome-codes-sdhr-participation-status-denied-facility\"> </a></td><td>SDHR Participation Status Denied at Facility</td><td>This code is used when the patient has opted out of participating in the Shared Digital Health Record service at a specific facility.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-invalid-patient<a name=\"sdhr-outcome-codes-sdhr-invalid-patient\"> </a></td><td>SDHR Invalid Patient</td><td>This code is used when the patient parameter is invalid for the Shared Digital Health Record service operation. Please ensure the patient is correctly specified and matches the required NHI Patient URL format.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-parameter-missing<a name=\"sdhr-outcome-codes-sdhr-parameter-missing\"> </a></td><td>SDHR Required parameter missing</td><td>This code is used when a required parameter is missing in the request, such as the reasonCode parameter.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-parameter-invalid<a name=\"sdhr-outcome-codes-sdhr-parameter-invalid\"> </a></td><td>SDHR parameter invalid</td><td>This code is used when a parameter is invalid in the request.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-participation-status-invalid<a name=\"sdhr-outcome-codes-sdhr-participation-status-invalid\"> </a></td><td>SDHR Participation Status Invalid</td><td/></tr><tr><td style=\"white-space:nowrap\">sdhr-operation-success<a name=\"sdhr-outcome-codes-sdhr-operation-success\"> </a></td><td>SDHR Operation Success</td><td>This code is used when the operation was successful, such as when a patient's participation status was successfully recorded.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-participation-status-unknown<a name=\"sdhr-outcome-codes-sdhr-participation-status-unknown\"> </a></td><td>SDHR Participation Status Unknown</td><td>This code is used when the Shared Digital Health Record service has no record of participation preferences for this patient. Please use the $participate operation to indicate the patient's participation preferences.</td></tr><tr><td style=\"white-space:nowrap\">sdhr-facility-locked<a name=\"sdhr-outcome-codes-sdhr-facility-locked\"> </a></td><td>SDHR Facility Locked</td><td>This code is used when a facility has been temporarily locked due to a background load process</td></tr><tr><td style=\"white-space:nowrap\">sdhr-patient-locked<a name=\"sdhr-outcome-codes-sdhr-patient-locked\"> </a></td><td>SDHR Patient Locked</td><td>This code is used when a patient has been temporarily locked due to a background load process</td></tr><tr><td style=\"white-space:nowrap\">sdhr-facility-unknown<a name=\"sdhr-outcome-codes-sdhr-facility-unknown\"> </a></td><td>SDHR Facility Unknown</td><td>This code is used when a facility has not been onboarded to SDHR</td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
    fhir:v "https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-outcome-codes"^^xsd:anyURI ;
    fhir:l <https://fhir-ig.digital.health.nz/sdhr/CodeSystem/sdhr-outcome-codes>
      ] ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "SDHROutcomeCodes"] ; #
      fhir:title [ fhir:v "SDHR Specific Outcome Codes"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v false] ; #
      fhir:date [ fhir:v "2025-11-18T19:29:08+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 standard OperationOucome codes used throughout this Implementation Guide for New Zealand Shared Digital Health Records"] ; #
      fhir:purpose [ fhir:v "The codes defined in this CodeSystem are used by the Shared Digital Health Record service to indicate the outcome of\noperations.\n\nThese codes will be used in various `OperationOutcome` resources to provide feedback on the outcome of a request.\n\nSee [SDHR Participate Operation](https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRParticipateOperation) for more example information on the use of these codes.\n"] ; #
      fhir:caseSensitive [ fhir:v true] ; #
      fhir:content [ fhir:v "complete"] ; #
      fhir:count [ fhir:v "12"^^xsd:nonNegativeInteger] ; #
      fhir:concept ( [
    fhir:code [ fhir:v "sdhr-records-withheld-at-source" ] ;
    fhir:display [ fhir:v "Records withheld at source" ] ;
    fhir:definition [ fhir:v "This code is used when the patient has records that are withheld from the Shared Digital Health Record service at source, for example, a GP practice or hospital." ]
      ] [
    fhir:code [ fhir:v "sdhr-participation-status-denied" ] ;
    fhir:display [ fhir:v "SDHR Participation Status Denied" ] ;
    fhir:definition [ fhir:v "This code is used when the patient has opted out of participating in the Shared Digital Health Record service." ]
      ] [
    fhir:code [ fhir:v "sdhr-participation-status-denied-facility" ] ;
    fhir:display [ fhir:v "SDHR Participation Status Denied at Facility" ] ;
    fhir:definition [ fhir:v "This code is used when the patient has opted out of participating in the Shared Digital Health Record service at a specific facility." ]
      ] [
    fhir:code [ fhir:v "sdhr-invalid-patient" ] ;
    fhir:display [ fhir:v "SDHR Invalid Patient" ] ;
    fhir:definition [ fhir:v "This code is used when the patient parameter is invalid for the Shared Digital Health Record service operation. Please ensure the patient is correctly specified and matches the required NHI Patient URL format." ]
      ] [
    fhir:code [ fhir:v "sdhr-parameter-missing" ] ;
    fhir:display [ fhir:v "SDHR Required parameter missing" ] ;
    fhir:definition [ fhir:v "This code is used when a required parameter is missing in the request, such as the reasonCode parameter." ]
      ] [
    fhir:code [ fhir:v "sdhr-parameter-invalid" ] ;
    fhir:display [ fhir:v "SDHR parameter invalid" ] ;
    fhir:definition [ fhir:v "This code is used when a parameter is invalid in the request." ]
      ] [
    fhir:code [ fhir:v "sdhr-participation-status-invalid" ] ;
    fhir:display [ fhir:v "SDHR Participation Status Invalid" ]
      ] [
    fhir:code [ fhir:v "sdhr-operation-success" ] ;
    fhir:display [ fhir:v "SDHR Operation Success" ] ;
    fhir:definition [ fhir:v "This code is used when the operation was successful, such as when a patient's participation status was successfully recorded." ]
      ] [
    fhir:code [ fhir:v "sdhr-participation-status-unknown" ] ;
    fhir:display [ fhir:v "SDHR Participation Status Unknown" ] ;
    fhir:definition [ fhir:v "This code is used when the Shared Digital Health Record service has no record of participation preferences for this patient. Please use the $participate operation to indicate the patient's participation preferences." ]
      ] [
    fhir:code [ fhir:v "sdhr-facility-locked" ] ;
    fhir:display [ fhir:v "SDHR Facility Locked" ] ;
    fhir:definition [ fhir:v "This code is used when a facility has been temporarily locked due to a background load process" ]
      ] [
    fhir:code [ fhir:v "sdhr-patient-locked" ] ;
    fhir:display [ fhir:v "SDHR Patient Locked" ] ;
    fhir:definition [ fhir:v "This code is used when a patient has been temporarily locked due to a background load process" ]
      ] [
    fhir:code [ fhir:v "sdhr-facility-unknown" ] ;
    fhir:display [ fhir:v "SDHR Facility Unknown" ] ;
    fhir:definition [ fhir:v "This code is used when a facility has not been onboarded to SDHR" ]
      ] ) . #