New Zealand NHI IG
1.4.1 - Release

New Zealand NHI IG - Local Development build (v1.4.1) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

OperationDefinition: Set patient's preferred name

Official URL: https://nhi-ig.hip.digital.health.nz/OperationDefinition/set-preferred-name Version: 1.4.1
Draft as of 2023-06-12 Computable Name: Set Preferred Nam

Inactivate name

URL: [base]/Patient/[id]/$set-preferred-name

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INnhi1..1string

The Patient's nhi number

INversion-id1..1string

The current value of the patient resources meta.versionId

INpreferred-id1..1integer

The id of the name element to be set to be the preferred name (patient.name.id)

OUTreturn0..1Patient

The updated patient resource

OUTfailure0..1OperationOutcome

Error response

The NHI is validated, the versionId is validated, the name.id is validated. If all request parameters are valid the name.preferred boolean is set to TRUE on the requested name and FALSE on the current preferred name.