New Zealand NHI IG
1.6.5 - Release
New Zealand NHI IG - Local Development build (v1.6.5) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hl7.org.nz/fhir/StructureDefinition/CreateNhiPatient | Version: 1.6.5 | |||
| Active as of 2025-10-06 | Computable Name: CreateNhiPatient | |||
The information to be supplied when requesting that a new Patient resource be created in the NHI.
Describe information to be supplied when requesting that a new Patient resource be created in the NHI
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: nz-pat-1, nhi-nz-pat-1, nhi-nz-pat-2, nhi-nz-pat-3, nhi-nz-pat-4, nhi-nz-pat-5, nhi-nz-pat-6, EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..6 | (Complex) | NZ Ethnicity URL: http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity | |
![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity" | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Hip_ethnicity_lvl_4 (2.0) (required) | |
![]() ![]() ![]() |
1..1 | (Complex) | NZ Citizenship URL: http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "status" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship status (preferred) | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship" | |
![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/birth-place | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "country" | |
![]() ![]() ![]() ![]() ![]() |
0..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "place-of-birth" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Country of Birth Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/birth-place" | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 0..* | Identifier | An identifier for this patient Slice: Unordered, Closed by value:system |
![]() ![]() |
ΣC | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Name Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | boolean | Preferred URL: http://hl7.org/fhir/StructureDefinition/iso21090-preferred | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/name-use-extra Binding: NHI Name Use Extra (required) | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | temp | nickname | maiden Binding: NameUse (required): The use of a human name. |
![]() ![]() ![]() |
Σ | 0..2 | string | Given name and other given name(s) This repeating element order: Given Names appear in the correct order for presenting the name |
![]() ![]() ![]() |
Σ | 0..1 | string | Parts that come before the name Binding: Name Prefix Codes (required) This repeating element order: Prefixes appear in the correct order for presenting the name |
![]() ![]() |
Σ | 1..1 | code | male | female | other | unknown Binding: AdministrativeGender (required): The gender of a person used for administrative purposes. |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/gender-original-text | |
![]() ![]() |
Σ | 1..1 | date | The date of birth for the individual |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Birth Information Source (required) | |
![]() ![]() |
?!Σ | 0..1 | dateTime | Indicates if the individual is deceased or not |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Death Information Source (required) | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | A geocode using the NZ specific datum (reference point) URL: http://hl7.org.nz/fhir/StructureDefinition/nz-geocode | |
![]() ![]() ![]() ![]() |
0..1 | string | The suburb part of the address URL: http://hl7.org.nz/fhir/StructureDefinition/suburb | |
![]() ![]() ![]() ![]() |
0..1 | string | The name of the building URL: http://hl7.org.nz/fhir/StructureDefinition/building-name | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The domicile code associated with this address URL: http://hl7.org.nz/fhir/StructureDefinition/domicile-code Binding: Domicile Code (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The reason an address was not validated URL: http://hl7.org.nz/fhir/StructureDefinition/not-validated-address-reason Binding: Address Not Validated Reason (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nz-address-id | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nhi-address-derived | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | home | work | temp | old | billing - purpose of this address Binding: NHI Address Use Codes (required) Example General: home |
![]() ![]() ![]() |
Σ | 1..1 | code | postal | physical Binding: NHI Address Type Codes (required) Example General: both |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| nhi-nz-pat-1 | error | Patient | only allows certain name name use values |
Patient.name.where( (use.empty()) or (use='nickname') or (use = 'maiden') or (use = 'temp') )
|
| nhi-nz-pat-2 | error | Patient | home phone 0..1 |
Patient.telecom.where(use='home' and system = 'phone').count() < 2
|
| nhi-nz-pat-3 | error | Patient | mobile phone 0..1 |
Patient.telecom.where(use='mobile' and system = 'phone').count() < 2
|
| nhi-nz-pat-4 | error | Patient | email 0..1 |
Patient.telecom.where(system = 'email').count() < 2
|
| nhi-nz-pat-5 | error | Patient | character restrictions for contact context |
Patient.telecom.extension[context].valueString.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| nhi-nz-pat-6 | error | Patient | Contact context must be less than 1024 characters |
Patient.telecom.extension[context].256.all(length()<256)
|
| nz-pat-1 | error | Patient | only a single official NHI |
Patient.identifier.where(system='https://standards.digital.health.nz/ns/nhi-id' and use='official').count() < 2
|
This structure is derived from NhiPatient
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
0..0 | |||
![]() ![]() |
0..0 | |||
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..0 | |||
![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..6 | Nz_ethnicity | NZ Ethnicity | |
![]() ![]() ![]() |
1..1 | Nz_citizenship | NZ Citizenship | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
0..1 | BirthPlace | Extension | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..0 | |||
![]() ![]() |
C | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() |
0..1 | string | Parts that come before the name | |
![]() ![]() |
0..0 | |||
![]() ![]() |
1..1 | code | male | female | other | unknown | |
![]() ![]() |
1..1 | date | The date of birth for the individual | |
![]() ![]() ![]() |
1..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
||||
![]() ![]() ![]() |
1..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
1..1 | code | home | work | temp | old | billing - purpose of this address | |
![]() ![]() ![]() |
1..2 | string | Street name, number, direction & P.O. Box etc. | |
![]() ![]() |
0..0 | |||
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: nz-pat-1, nhi-nz-pat-1, nhi-nz-pat-2, nhi-nz-pat-3, nhi-nz-pat-4, nhi-nz-pat-5, nhi-nz-pat-6, EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..6 | (Complex) | NZ Ethnicity URL: http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity" | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Hip_ethnicity_lvl_4 (2.0) (required) | |
![]() ![]() ![]() |
1..1 | (Complex) | NZ Citizenship URL: http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "status" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship status (preferred) | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship" | |
![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/birth-place | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "country" | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: ISO 3166-1:2013 (2-alpha country code) (required) | |
![]() ![]() ![]() ![]() ![]() |
0..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "place-of-birth" | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Country of Birth Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/birth-place" | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 0..* | Identifier | An identifier for this patient Slice: Unordered, Closed by value:system |
![]() ![]() |
ΣC | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Name Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | boolean | Preferred URL: http://hl7.org/fhir/StructureDefinition/iso21090-preferred | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/name-use-extra Binding: NHI Name Use Extra (required) | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | temp | nickname | maiden Binding: NameUse (required): The use of a human name. |
![]() ![]() ![]() |
Σ | 0..1 | string | Family name (often called 'Surname') |
![]() ![]() ![]() |
Σ | 0..2 | string | Given name and other given name(s) This repeating element order: Given Names appear in the correct order for presenting the name |
![]() ![]() ![]() |
Σ | 0..1 | string | Parts that come before the name Binding: Name Prefix Codes (required) This repeating element order: Prefixes appear in the correct order for presenting the name |
![]() ![]() |
Σ | 1..1 | code | male | female | other | unknown Binding: AdministrativeGender (required): The gender of a person used for administrative purposes. |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/gender-original-text | |
![]() ![]() ![]() |
0..1 | string | Primitive value for code | |
![]() ![]() |
Σ | 1..1 | date | The date of birth for the individual |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Birth Information Source (required) | |
![]() ![]() ![]() |
0..1 | date | Primitive value for date | |
![]() ![]() |
?!Σ | 0..1 | dateTime | Indicates if the individual is deceased or not |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Death Information Source (required) | |
![]() ![]() ![]() |
0..1 | dateTime | Primitive value for dateTime | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | A geocode using the NZ specific datum (reference point) URL: http://hl7.org.nz/fhir/StructureDefinition/nz-geocode | |
![]() ![]() ![]() ![]() |
0..1 | string | The suburb part of the address URL: http://hl7.org.nz/fhir/StructureDefinition/suburb | |
![]() ![]() ![]() ![]() |
0..1 | string | The name of the building URL: http://hl7.org.nz/fhir/StructureDefinition/building-name | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The domicile code associated with this address URL: http://hl7.org.nz/fhir/StructureDefinition/domicile-code Binding: Domicile Code (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The reason an address was not validated URL: http://hl7.org.nz/fhir/StructureDefinition/not-validated-address-reason Binding: Address Not Validated Reason (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nz-address-id | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nhi-address-derived | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | home | work | temp | old | billing - purpose of this address Binding: NHI Address Use Codes (required) Example General: home |
![]() ![]() ![]() |
Σ | 1..1 | code | postal | physical Binding: NHI Address Type Codes (required) Example General: both |
![]() ![]() ![]() |
Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132 |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
Σ | 0..1 | string | Name of city, town etc. Example General: Erewhon |
![]() ![]() ![]() |
Σ | 0..1 | string | Postal code for area Example General: 9132 |
![]() ![]() ![]() |
Σ | 0..1 | string | Country (e.g. can be ISO 3166 2 or 3 letter code) Binding: ISO 3166-1:2013 (2-alpha country code) (required) |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| nhi-nz-pat-1 | error | Patient | only allows certain name name use values |
Patient.name.where( (use.empty()) or (use='nickname') or (use = 'maiden') or (use = 'temp') )
|
| nhi-nz-pat-2 | error | Patient | home phone 0..1 |
Patient.telecom.where(use='home' and system = 'phone').count() < 2
|
| nhi-nz-pat-3 | error | Patient | mobile phone 0..1 |
Patient.telecom.where(use='mobile' and system = 'phone').count() < 2
|
| nhi-nz-pat-4 | error | Patient | email 0..1 |
Patient.telecom.where(system = 'email').count() < 2
|
| nhi-nz-pat-5 | error | Patient | character restrictions for contact context |
Patient.telecom.extension[context].valueString.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| nhi-nz-pat-6 | error | Patient | Contact context must be less than 1024 characters |
Patient.telecom.extension[context].256.all(length()<256)
|
| nz-pat-1 | error | Patient | only a single official NHI |
Patient.identifier.where(system='https://standards.digital.health.nz/ns/nhi-id' and use='official').count() < 2
|
This structure is derived from NhiPatient
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: nz-pat-1, nhi-nz-pat-1, nhi-nz-pat-2, nhi-nz-pat-3, nhi-nz-pat-4, nhi-nz-pat-5, nhi-nz-pat-6, EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..6 | (Complex) | NZ Ethnicity URL: http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity | |
![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity" | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Hip_ethnicity_lvl_4 (2.0) (required) | |
![]() ![]() ![]() |
1..1 | (Complex) | NZ Citizenship URL: http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "status" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship status (preferred) | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship" | |
![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/birth-place | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "country" | |
![]() ![]() ![]() ![]() ![]() |
0..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "place-of-birth" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Country of Birth Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/birth-place" | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 0..* | Identifier | An identifier for this patient Slice: Unordered, Closed by value:system |
![]() ![]() |
ΣC | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Name Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | boolean | Preferred URL: http://hl7.org/fhir/StructureDefinition/iso21090-preferred | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/name-use-extra Binding: NHI Name Use Extra (required) | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | temp | nickname | maiden Binding: NameUse (required): The use of a human name. |
![]() ![]() ![]() |
Σ | 0..2 | string | Given name and other given name(s) This repeating element order: Given Names appear in the correct order for presenting the name |
![]() ![]() ![]() |
Σ | 0..1 | string | Parts that come before the name Binding: Name Prefix Codes (required) This repeating element order: Prefixes appear in the correct order for presenting the name |
![]() ![]() |
Σ | 1..1 | code | male | female | other | unknown Binding: AdministrativeGender (required): The gender of a person used for administrative purposes. |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/gender-original-text | |
![]() ![]() |
Σ | 1..1 | date | The date of birth for the individual |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Birth Information Source (required) | |
![]() ![]() |
?!Σ | 0..1 | dateTime | Indicates if the individual is deceased or not |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Death Information Source (required) | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | A geocode using the NZ specific datum (reference point) URL: http://hl7.org.nz/fhir/StructureDefinition/nz-geocode | |
![]() ![]() ![]() ![]() |
0..1 | string | The suburb part of the address URL: http://hl7.org.nz/fhir/StructureDefinition/suburb | |
![]() ![]() ![]() ![]() |
0..1 | string | The name of the building URL: http://hl7.org.nz/fhir/StructureDefinition/building-name | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The domicile code associated with this address URL: http://hl7.org.nz/fhir/StructureDefinition/domicile-code Binding: Domicile Code (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The reason an address was not validated URL: http://hl7.org.nz/fhir/StructureDefinition/not-validated-address-reason Binding: Address Not Validated Reason (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nz-address-id | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nhi-address-derived | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | home | work | temp | old | billing - purpose of this address Binding: NHI Address Use Codes (required) Example General: home |
![]() ![]() ![]() |
Σ | 1..1 | code | postal | physical Binding: NHI Address Type Codes (required) Example General: both |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| nhi-nz-pat-1 | error | Patient | only allows certain name name use values |
Patient.name.where( (use.empty()) or (use='nickname') or (use = 'maiden') or (use = 'temp') )
|
| nhi-nz-pat-2 | error | Patient | home phone 0..1 |
Patient.telecom.where(use='home' and system = 'phone').count() < 2
|
| nhi-nz-pat-3 | error | Patient | mobile phone 0..1 |
Patient.telecom.where(use='mobile' and system = 'phone').count() < 2
|
| nhi-nz-pat-4 | error | Patient | email 0..1 |
Patient.telecom.where(system = 'email').count() < 2
|
| nhi-nz-pat-5 | error | Patient | character restrictions for contact context |
Patient.telecom.extension[context].valueString.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| nhi-nz-pat-6 | error | Patient | Contact context must be less than 1024 characters |
Patient.telecom.extension[context].256.all(length()<256)
|
| nz-pat-1 | error | Patient | only a single official NHI |
Patient.identifier.where(system='https://standards.digital.health.nz/ns/nhi-id' and use='official').count() < 2
|
Differential View
This structure is derived from NhiPatient
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
0..0 | |||
![]() ![]() |
0..0 | |||
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..0 | |||
![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..6 | Nz_ethnicity | NZ Ethnicity | |
![]() ![]() ![]() |
1..1 | Nz_citizenship | NZ Citizenship | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
0..1 | BirthPlace | Extension | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..0 | |||
![]() ![]() |
C | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() |
0..1 | string | Parts that come before the name | |
![]() ![]() |
0..0 | |||
![]() ![]() |
1..1 | code | male | female | other | unknown | |
![]() ![]() |
1..1 | date | The date of birth for the individual | |
![]() ![]() ![]() |
1..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
||||
![]() ![]() ![]() |
1..* | Extension | Extension | |
![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() |
1..1 | Information_source | Information Source | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
1..1 | code | home | work | temp | old | billing - purpose of this address | |
![]() ![]() ![]() |
1..2 | string | Street name, number, direction & P.O. Box etc. | |
![]() ![]() |
0..0 | |||
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | NhiPatient | Information about an individual or animal receiving health care services Constraints: nz-pat-1, nhi-nz-pat-1, nhi-nz-pat-2, nhi-nz-pat-3, nhi-nz-pat-4, nhi-nz-pat-5, nhi-nz-pat-6, EM02106, EM02201, EM02101, EM07225, EM07212, EM07212-1, EM07215 |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..6 | (Complex) | NZ Ethnicity URL: http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity" | |
![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Hip_ethnicity_lvl_4 (2.0) (required) | |
![]() ![]() ![]() |
1..1 | (Complex) | NZ Citizenship URL: http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "status" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship status (preferred) | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: NZ Citizenship Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nz-citizenship" | |
![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/birth-place | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "country" | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: ISO 3166-1:2013 (2-alpha country code) (required) | |
![]() ![]() ![]() ![]() ![]() |
0..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "place-of-birth" | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
1..1 | Extension | Extension | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "source" | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Country of Birth Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/birth-place" | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 0..* | Identifier | An identifier for this patient Slice: Unordered, Closed by value:system |
![]() ![]() |
ΣC | 1..1 | HumanName | A name associated with the patient Constraints: EM07225 |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Name Information Source (required) | |
![]() ![]() ![]() ![]() |
1..1 | boolean | Preferred URL: http://hl7.org/fhir/StructureDefinition/iso21090-preferred | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/name-use-extra Binding: NHI Name Use Extra (required) | |
![]() ![]() ![]() |
?!Σ | 0..1 | code | temp | nickname | maiden Binding: NameUse (required): The use of a human name. |
![]() ![]() ![]() |
Σ | 0..1 | string | Family name (often called 'Surname') |
![]() ![]() ![]() |
Σ | 0..2 | string | Given name and other given name(s) This repeating element order: Given Names appear in the correct order for presenting the name |
![]() ![]() ![]() |
Σ | 0..1 | string | Parts that come before the name Binding: Name Prefix Codes (required) This repeating element order: Prefixes appear in the correct order for presenting the name |
![]() ![]() |
Σ | 1..1 | code | male | female | other | unknown Binding: AdministrativeGender (required): The gender of a person used for administrative purposes. |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/gender-original-text | |
![]() ![]() ![]() |
0..1 | string | Primitive value for code | |
![]() ![]() |
Σ | 1..1 | date | The date of birth for the individual |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Birth Information Source (required) | |
![]() ![]() ![]() |
0..1 | date | Primitive value for date | |
![]() ![]() |
?!Σ | 0..1 | dateTime | Indicates if the individual is deceased or not |
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |
![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | (Complex) | Information Source URL: http://hl7.org.nz/fhir/StructureDefinition/information-source | |
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/information-source" | |
![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | CodeableConcept | Value of extension Binding: Date of Death Information Source (required) | |
![]() ![]() ![]() |
0..1 | dateTime | Primitive value for dateTime | |
![]() ![]() |
1..1 | NhiAddress | An address expressed using postal conventions (as opposed to GPS or other location definition formats) | |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | A geocode using the NZ specific datum (reference point) URL: http://hl7.org.nz/fhir/StructureDefinition/nz-geocode | |
![]() ![]() ![]() ![]() |
0..1 | string | The suburb part of the address URL: http://hl7.org.nz/fhir/StructureDefinition/suburb | |
![]() ![]() ![]() ![]() |
0..1 | string | The name of the building URL: http://hl7.org.nz/fhir/StructureDefinition/building-name | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The domicile code associated with this address URL: http://hl7.org.nz/fhir/StructureDefinition/domicile-code Binding: Domicile Code (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | The reason an address was not validated URL: http://hl7.org.nz/fhir/StructureDefinition/not-validated-address-reason Binding: Address Not Validated Reason (preferred) | |
![]() ![]() ![]() ![]() |
0..1 | string | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nz-address-id | |
![]() ![]() ![]() ![]() |
0..1 | (Complex) | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/nhi-address-derived | |
![]() ![]() ![]() |
?!Σ | 1..1 | code | home | work | temp | old | billing - purpose of this address Binding: NHI Address Use Codes (required) Example General: home |
![]() ![]() ![]() |
Σ | 1..1 | code | postal | physical Binding: NHI Address Type Codes (required) Example General: both |
![]() ![]() ![]() |
Σ | 0..1 | string | Text representation of the address Example General: 137 Nowhere Street, Erewhon 9132 |
![]() ![]() ![]() |
Σ | 1..2 | string | Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label Example General: 137 Nowhere Street |
![]() ![]() ![]() |
Σ | 0..1 | string | Name of city, town etc. Example General: Erewhon |
![]() ![]() ![]() |
Σ | 0..1 | string | Postal code for area Example General: 9132 |
![]() ![]() ![]() |
Σ | 0..1 | string | Country (e.g. can be ISO 3166 2 or 3 letter code) Binding: ISO 3166-1:2013 (2-alpha country code) (required) |
Documentation for this format | ||||
| Id | Grade | Path(s) | Description | Expression |
| EM02101 | error | Patient | A Patient name must contain either a given or family name |
Patient.name.all(given.exists() and family.exists())
|
| EM02106 | error | Patient | A Patient must have an active Preferred Name |
Patient.name.extension.where((url = 'http://hl7.org/fhir/StructureDefinition/iso21090-preferred') and (valueBoolean=true)).count()=1
|
| EM02201 | error | Patient | A Patient must have a primary residential address |
Patient.address.where( (use = 'home') and (type = 'physical')).count()=1
|
| EM07212 | error | Patient | birthdate must be after 1 January 1900, and not a future date |
(birthDate > @1900-01-01) and (birthDate < now())
|
| EM07212-1 | error | Patient | Date of Death cannot be a future date |
deceasedDateTime < now()
|
| EM07215 | error | Patient | Date of Death must be greater than, or equal to Date of Birth |
deceasedDateTime >= birthDate
|
| EM07225 | error | Patient, Patient.name | If name-use-extra is supplied name-use must be temp, and source NPRF |
name.where(use='temp').exists() implies (extension.where((url='http://hl7.org.nz/fhir/StructureDefinition/information-source') and (valueCodeableConcept.coding.code ='NPRF')).exists())
|
| dom-2 | error | Patient | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Patient | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | Patient | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Patient | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| nhi-nz-pat-1 | error | Patient | only allows certain name name use values |
Patient.name.where( (use.empty()) or (use='nickname') or (use = 'maiden') or (use = 'temp') )
|
| nhi-nz-pat-2 | error | Patient | home phone 0..1 |
Patient.telecom.where(use='home' and system = 'phone').count() < 2
|
| nhi-nz-pat-3 | error | Patient | mobile phone 0..1 |
Patient.telecom.where(use='mobile' and system = 'phone').count() < 2
|
| nhi-nz-pat-4 | error | Patient | email 0..1 |
Patient.telecom.where(system = 'email').count() < 2
|
| nhi-nz-pat-5 | error | Patient | character restrictions for contact context |
Patient.telecom.extension[context].valueString.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| nhi-nz-pat-6 | error | Patient | Contact context must be less than 1024 characters |
Patient.telecom.extension[context].256.all(length()<256)
|
| nz-pat-1 | error | Patient | only a single official NHI |
Patient.identifier.where(system='https://standards.digital.health.nz/ns/nhi-id' and use='official').count() < 2
|
This structure is derived from NhiPatient
Other representations of profile: CSV, Excel, Schematron