NZ Shared Digital Health Record API
1.1.7 - release
NZ Shared Digital Health Record API - Local Development build (v1.1.7) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Draft as of 2026-11-16 |
@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/fhir/OperationDefinition/SDHRVerificationSamplesOperation> a fhir:OperationDefinition ;
fhir:nodeRole fhir:treeRoot ;
fhir:Resource.id [ fhir:value "SDHRVerificationSamplesOperation"] ;
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: OperationDefinition SDHRVerificationSamplesOperation</b></p><a name=\"SDHRVerificationSamplesOperation\"> </a><a name=\"hcSDHRVerificationSamplesOperation\"> </a><p>URL: [base]/AuditEvent/$verification-samples</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>All pending slim AuditEvent resources conforming to SDHRAuditEvent for the authenticated client in one searchset Bundle, including an empty Bundle when no samples are pending. The total equals the number of entries; no paging links are returned. First enrolment returns an informational OperationOutcome instead.</p>\n</div></td></tr></table></div>"
] ;
fhir:OperationDefinition.url [ fhir:value "https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRVerificationSamplesOperation"] ;
fhir:OperationDefinition.version [ fhir:value "1.1.7"] ;
fhir:OperationDefinition.name [ fhir:value "VerificationSamples"] ;
fhir:OperationDefinition.status [ fhir:value "draft"] ;
fhir:OperationDefinition.kind [ fhir:value "operation"] ;
fhir:OperationDefinition.date [ fhir:value "2026-11-16T02:42:20+00:00"^^xsd:dateTime] ;
fhir:OperationDefinition.publisher [ fhir:value "Health New Zealand"] ;
fhir:OperationDefinition.contact [
fhir:index 0 ;
fhir:ContactDetail.name [ fhir:value "Health New Zealand" ] ;
fhir:ContactDetail.telecom [
fhir:index 0 ;
fhir:ContactPoint.system [ fhir:value "url" ] ;
fhir:ContactPoint.value [ fhir:value "https://github.com/tewhatuora" ]
]
], [
fhir:index 1 ;
fhir:ContactDetail.name [ fhir:value "HNZ 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:OperationDefinition.description [ fhir:value "DRAFT OPERATION: This operation returns `AuditEvent` resources that have been sampled for verification and are still outstanding for the data viewer application.\n\nThe operation is invoked on the `AuditEvent` type using `GET /AuditEvent/$verification-samples`.\n\nSampling runs independently of this retrieval operation.\n\nFor an existing registration, a successful response is a searchset `Bundle` containing all pending slim `SDHRAuditEvent` samples. On first enrolment, the operation starts sampling in the background and returns an informational `OperationOutcome` with code `sdhr-audit-event-sampling-in-progress`; retry retrieval later. In each sample, the application agent has the `dataprocessor` role and identifies the Keycloak client UUID in `who.identifier`. The separate healthworker agent carries the clinician’s HPI person identifier; an organisation agent may also be present. Use the clinician identity, patient NHI and recorded time to assess whether the clinician had a valid reason to access that patient. NHI and correlation ID are returned as string-valued `entity.detail` entries with types `nhi` and `correlationId`.\n\nSamples:\n- are pending verification\n- belong to the authenticated `client_id`\n- have not already been marked as verified by the data viewer application\n\nThe operation does not accept paging parameters. Requests containing `_count` or `_getpagesoffset` are rejected with HTTP 400. The server fixes the client and pending-verification filters and returns all matching samples in one response, with `Bundle.total` equal to the number of entries and no continuation links. An empty searchset Bundle means no pending samples are currently available. Internal snapshot retrieval is bounded by execution time, record count and response size; if a complete response cannot be returned, the operation returns an error `OperationOutcome`, never a successful partial Bundle.\n\nThe required operation scope is `https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRVerificationSamplesOperation`. Generic AuditEvent read, search and write routes are unavailable."] ;
fhir:OperationDefinition.affectsState [ fhir:value "false"^^xsd:boolean] ;
fhir:OperationDefinition.code [ fhir:value "verification-samples"] ;
fhir:OperationDefinition.resource [
fhir:value "AuditEvent" ;
fhir:index 0
] ;
fhir:OperationDefinition.system [ fhir:value "false"^^xsd:boolean] ;
fhir:OperationDefinition.type [ fhir:value "true"^^xsd:boolean] ;
fhir:OperationDefinition.instance [ fhir:value "false"^^xsd:boolean] ;
fhir:OperationDefinition.parameter [
fhir:index 0 ;
fhir:OperationDefinition.parameter.name [ fhir:value "return" ] ;
fhir:OperationDefinition.parameter.use [ fhir:value "out" ] ;
fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xsd:integer ] ;
fhir:OperationDefinition.parameter.max [ fhir:value "1" ] ;
fhir:OperationDefinition.parameter.documentation [ fhir:value "All pending slim AuditEvent resources conforming to SDHRAuditEvent for the authenticated client in one searchset Bundle, including an empty Bundle when no samples are pending. The total equals the number of entries; no paging links are returned. First enrolment returns an informational OperationOutcome instead." ] ;
fhir:OperationDefinition.parameter.type [ fhir:value "Bundle" ]
] .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/OperationDefinition/SDHRVerificationSamplesOperation.ttl> a owl:Ontology ;
owl:imports fhir:fhir.ttl ;
owl:versionIRI <http://build.fhir.org/OperationDefinition/SDHRVerificationSamplesOperation.ttl> .
IG © 2025+ Health New Zealand. Package tewhatuora.fhir.nz-shared-digital-health-record#1.1.7 based on FHIR 4.0.1. Generated 2026-11-16
Links: Table of Contents |
QA Report