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
| Official URL: https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRVerificationSamplesOperation | Version: 1.1.7 | |||
| Draft as of 2026-11-16 | Computable Name: VerificationSamples | |||
DRAFT OPERATION: This operation returns AuditEvent resources that have been sampled for verification and are still outstanding for the data viewer application.
The operation is invoked on the AuditEvent type using GET /AuditEvent/$verification-samples.
Sampling runs independently of this retrieval operation.
For 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.
Samples:
client_idThe 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.
The required operation scope is https://fhir-ig.digital.health.nz/sdhr/OperationDefinition/SDHRVerificationSamplesOperation. Generic AuditEvent read, search and write routes are unavailable.
URL: [base]/AuditEvent/$verification-samples
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| OUT | return | 1..1 | Bundle | 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. |