Health New Zealand Te Whatu Ora Shared Care FHIR API
0.4.7 - release New Zealand flag

Health New Zealand Te Whatu Ora Shared Care FHIR API - Local Development build (v0.4.7) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: Online GP Encounter

Official URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/OnlineGPEncounter Version: 1.0.6
Active as of 2026-10-13 Computable Name: OnlineGPEncounter

A FHIR resource profile for operational reporting of Online GP encounters.

A FHIR resource profile for operational reporting of Online GP encounters.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.meta This element is included in summaries. 1..1 Meta Metadata about the resource
Encounter.meta.source This element is included in summaries. C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.Slices for tag This element is included in summaries. 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId This element is included in summaries. 1..1 Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Encounter.meta.Slices for tag.tag:correlationId.system This element is included in summaries. 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element is included in summaries. 1..* Identifier External (provider) and Health NZ business identifiers
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.status This element is a modifier element. This element is included in summaries. 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): Current state of the encounter.
Encounter.class This element is included in summaries. 1..1 Coding Classification of patient encounter
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
Encounter.class.id 0..1 string Unique id for inter-element referencing
Encounter.class.extension 0..* Extension Additional content defined by implementations
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.version 0..1 string Version of the system - if relevant
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.class.userSelected 0..1 boolean If this coding was chosen directly by the user
Encounter.type This element is included in summaries. 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType This element is included in summaries. 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.subject This element is included in summaries. 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.type This element is included in summaries. 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Patient
Encounter.subject.identifier This element is included in summaries. 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.subject.identifier.system This element is included in summaries. 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value This element is included in summaries. C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Example General: 123456
Encounter.participant This element is included in summaries. 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element is included in summaries. 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.individual This element is included in summaries. 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.participant.individual.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.appointment This element is included in summaries. 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location 1..1 Reference(Location) Location the encounter takes place
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.serviceProvider.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.meta.tag:correlationId Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.participant.​individual.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG
Encounter.serviceProvider.​identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')

This structure is derived from Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.meta 1..1 Meta Metadata about the resource
Encounter.meta.source C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.Slices for tag 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId 1..1 Coding Tags applied to this resource
Encounter.meta.Slices for tag.tag:correlationId.system 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.code 1..1 code Symbol in syntax defined by the system
Encounter.contained 0..0 Contained, inline Resources
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.identifier.period
Encounter.identifier.period.start C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.identifier.period.end C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.statusHistory 0..0 List of past encounter statuses
Encounter.class 1..1 Coding Classification of patient encounter
Required Pattern: At least the following
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.classHistory 0..0 List of past encounter classes
Encounter.type 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.priority 0..0 Indicates the urgency of the encounter
Encounter.subject 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.type 1..1 uri Type the reference refers to (e.g. "Patient")
Required Pattern: Patient
Encounter.subject.identifier 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.system 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Encounter.subject.display 0..0 Text alternative for the resource
Encounter.participant 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.type 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.individual 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.identifier C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.use 0..1 code The local identifier use SHOULD be set to official.
Encounter.participant.individual.identifier.system C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example Example HPI Org ID: GZZ999-Z
Encounter.appointment 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.start C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.reasonCode 0..0 Coded reason the encounter takes place
Encounter.reasonReference 0..0 Reason the encounter takes place (reference)
Encounter.diagnosis 0..0 The list of diagnosis relevant to this encounter
Encounter.account 0..0 The set of accounts that may be used for billing for this Encounter
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.identifier C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.use 0..1 code The local identifier use SHOULD be set to official.
Encounter.serviceProvider.identifier.system C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example Example HPI Org ID: GZZ999-Z
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.identifier.period.start, Encounter.identifier.period.end, Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.id This element is included in summaries. 0..1 id Logical id of this artifact
Encounter.meta This element is included in summaries. 1..1 Meta Metadata about the resource
Encounter.meta.id 0..1 string Unique id for inter-element referencing
Encounter.meta.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Encounter.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
Encounter.meta.source This element is included in summaries. C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Encounter.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
Encounter.meta.Slices for tag This element is included in summaries. 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId This element is included in summaries. 1..1 Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Encounter.meta.Slices for tag.tag:correlationId.id 0..1 string Unique id for inter-element referencing
Encounter.meta.Slices for tag.tag:correlationId.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.meta.Slices for tag.tag:correlationId.system This element is included in summaries. 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.version This element is included in summaries. 0..1 string Version of the system - if relevant
Encounter.meta.Slices for tag.tag:correlationId.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Encounter.meta.Slices for tag.tag:correlationId.display This element is included in summaries. 0..1 string Representation defined by the system
Encounter.meta.Slices for tag.tag:correlationId.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Encounter.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
Encounter.text 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
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element is included in summaries. 1..* Identifier External (provider) and Health NZ business identifiers
Encounter.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.identifier.system This element is included in summaries. 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element is included in summaries. 0..1 string The value that is unique
Example General: 123456
Encounter.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.identifier.period.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.period.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.identifier.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.status This element is a modifier element. This element is included in summaries. 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): Current state of the encounter.
Encounter.class This element is included in summaries. 1..1 Coding Classification of patient encounter
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
Encounter.class.id 0..1 string Unique id for inter-element referencing
Encounter.class.extension 0..* Extension Additional content defined by implementations
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.version 0..1 string Version of the system - if relevant
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.class.userSelected 0..1 boolean If this coding was chosen directly by the user
Encounter.type This element is included in summaries. 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType This element is included in summaries. 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.subject This element is included in summaries. 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.id 0..1 string Unique id for inter-element referencing
Encounter.subject.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.subject.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.subject.type This element is included in summaries. 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Patient
Encounter.subject.identifier This element is included in summaries. 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.subject.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.subject.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.subject.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.subject.identifier.system This element is included in summaries. 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value This element is included in summaries. C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Example General: 123456
Encounter.subject.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.subject.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.episodeOfCare This element is included in summaries. 0..* Reference(EpisodeOfCare) Episode(s) of care that this encounter should be recorded against
Encounter.basedOn 0..* Reference(ServiceRequest) The ServiceRequest that initiated this encounter
Encounter.participant This element is included in summaries. 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.id 0..1 string Unique id for inter-element referencing
Encounter.participant.extension 0..* Extension Additional content defined by implementations
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element is included in summaries. 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.period 0..1 Period Period of time during the encounter that the participant participated
Encounter.participant.individual This element is included in summaries. 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.id 0..1 string Unique id for inter-element referencing
Encounter.participant.individual.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.participant.individual.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.participant.individual.type This element is included in summaries. 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Encounter.participant.individual.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.participant.individual.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.participant.individual.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.participant.individual.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.participant.individual.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.participant.individual.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.participant.individual.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.participant.individual.display This element is included in summaries. 0..1 string Text alternative for the resource
Encounter.appointment This element is included in summaries. 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.id 0..1 string Unique id for inter-element referencing
Encounter.period.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.length 0..1 Duration Quantity of time the encounter lasted (less time absent)
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.id 0..1 string Unique id for inter-element referencing
Encounter.hospitalization.extension 0..* Extension Additional content defined by implementations
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.preAdmissionIdentifier 0..1 Identifier Pre-admission identifier
Encounter.hospitalization.origin 0..1 Reference(Location | Organization) The location/organization from which the patient came before admission
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.reAdmission 0..1 CodeableConcept The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission
Binding: hl7VS-re-admissionIndicator (example): The reason for re-admission of this hospitalization encounter.
Encounter.hospitalization.dietPreference 0..* CodeableConcept Diet preferences reported by the patient
Binding: Diet (example): Medical, cultural or ethical food preferences to help with catering requirements.
Encounter.hospitalization.specialCourtesy 0..* CodeableConcept Special courtesies (VIP, board member)
Binding: SpecialCourtesy (preferred): Special courtesies.
Encounter.hospitalization.specialArrangement 0..* CodeableConcept Wheelchair, translator, stretcher, etc.
Binding: SpecialArrangements (preferred): Special arrangements.
Encounter.hospitalization.destination 0..1 Reference(Location | Organization) Location/organization to which the patient is discharged
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.location.id 0..1 string Unique id for inter-element referencing
Encounter.location.extension 0..* Extension Additional content defined by implementations
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location 1..1 Reference(Location) Location the encounter takes place
Encounter.location.status 0..1 code planned | active | reserved | completed
Binding: EncounterLocationStatus (required): The status of the location.
Encounter.location.physicalType 0..1 CodeableConcept The physical type of the location (usually the level in the location hierachy - bed room ward etc.)
Binding: LocationType (example): Physical form of the location.
Encounter.location.period 0..1 Period Time period during which the patient was present at the location
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.id 0..1 string Unique id for inter-element referencing
Encounter.serviceProvider.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.serviceProvider.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.serviceProvider.type This element is included in summaries. 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Encounter.serviceProvider.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.serviceProvider.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.serviceProvider.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.serviceProvider.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.serviceProvider.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.serviceProvider.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.serviceProvider.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.serviceProvider.display This element is included in summaries. 0..1 string Text alternative for the resource
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Encounter.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.meta.tag:correlationId Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.participant.​individual.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.participant.​individual.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.participant.​individual.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦2.0.0 THO v6.5
Encounter.hospitalization.​dietPreference Base example Diet 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📍4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​identifier.type Base extensible IdentifierType 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.identifier.period.start, Encounter.identifier.period.end, Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.meta This element is included in summaries. 1..1 Meta Metadata about the resource
Encounter.meta.source This element is included in summaries. C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.Slices for tag This element is included in summaries. 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId This element is included in summaries. 1..1 Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Encounter.meta.Slices for tag.tag:correlationId.system This element is included in summaries. 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element is included in summaries. 1..* Identifier External (provider) and Health NZ business identifiers
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.status This element is a modifier element. This element is included in summaries. 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): Current state of the encounter.
Encounter.class This element is included in summaries. 1..1 Coding Classification of patient encounter
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
Encounter.class.id 0..1 string Unique id for inter-element referencing
Encounter.class.extension 0..* Extension Additional content defined by implementations
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.version 0..1 string Version of the system - if relevant
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.class.userSelected 0..1 boolean If this coding was chosen directly by the user
Encounter.type This element is included in summaries. 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType This element is included in summaries. 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.subject This element is included in summaries. 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.type This element is included in summaries. 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Patient
Encounter.subject.identifier This element is included in summaries. 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.subject.identifier.system This element is included in summaries. 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value This element is included in summaries. C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Example General: 123456
Encounter.participant This element is included in summaries. 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element is included in summaries. 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.individual This element is included in summaries. 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.participant.individual.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.appointment This element is included in summaries. 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location 1..1 Reference(Location) Location the encounter takes place
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.serviceProvider.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.meta.tag:correlationId Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.participant.​individual.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG
Encounter.serviceProvider.​identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')

Differential View

This structure is derived from Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.meta 1..1 Meta Metadata about the resource
Encounter.meta.source C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.Slices for tag 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId 1..1 Coding Tags applied to this resource
Encounter.meta.Slices for tag.tag:correlationId.system 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.code 1..1 code Symbol in syntax defined by the system
Encounter.contained 0..0 Contained, inline Resources
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.identifier 1..* Identifier External (provider) and Health NZ business identifiers
Encounter.identifier.period
Encounter.identifier.period.start C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.identifier.period.end C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.statusHistory 0..0 List of past encounter statuses
Encounter.class 1..1 Coding Classification of patient encounter
Required Pattern: At least the following
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.classHistory 0..0 List of past encounter classes
Encounter.type 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.priority 0..0 Indicates the urgency of the encounter
Encounter.subject 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.type 1..1 uri Type the reference refers to (e.g. "Patient")
Required Pattern: Patient
Encounter.subject.identifier 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.system 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Encounter.subject.display 0..0 Text alternative for the resource
Encounter.participant 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.type 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.individual 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.identifier C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.use 0..1 code The local identifier use SHOULD be set to official.
Encounter.participant.individual.identifier.system C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example Example HPI Org ID: GZZ999-Z
Encounter.appointment 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.start C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.reasonCode 0..0 Coded reason the encounter takes place
Encounter.reasonReference 0..0 Reason the encounter takes place (reference)
Encounter.diagnosis 0..0 The list of diagnosis relevant to this encounter
Encounter.account 0..0 The set of accounts that may be used for billing for this Encounter
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.identifier C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.use 0..1 code The local identifier use SHOULD be set to official.
Encounter.serviceProvider.identifier.system C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example Example HPI Org ID: GZZ999-Z
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.identifier.period.start, Encounter.identifier.period.end, Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Encounter 0..* Encounter An interaction during which services are provided to the patient
Encounter.id This element is included in summaries. 0..1 id Logical id of this artifact
Encounter.meta This element is included in summaries. 1..1 Meta Metadata about the resource
Encounter.meta.id 0..1 string Unique id for inter-element referencing
Encounter.meta.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.meta.versionId This element is included in summaries. 0..1 id Version specific identifier
Encounter.meta.lastUpdated This element is included in summaries. 0..1 instant When the resource version last changed
Encounter.meta.source This element is included in summaries. C 1..1 uri HPI Facility ID from where the record is sourced
Constraints: hpi-location-url-format
Encounter.meta.profile This element is included in summaries. 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
Encounter.meta.security This element is included in summaries. 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
Encounter.meta.Slices for tag This element is included in summaries. 1..* Coding Tags applied to this resource
Slice: Unordered, Open by value:system
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.meta.Slices for tag.tag:correlationId This element is included in summaries. 1..1 Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
Encounter.meta.Slices for tag.tag:correlationId.id 0..1 string Unique id for inter-element referencing
Encounter.meta.Slices for tag.tag:correlationId.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.meta.Slices for tag.tag:correlationId.system This element is included in summaries. 1..1 uri Hub correlation ID system
Required Pattern: https://hub.services.digital.health.nz/ns/correlation-id
Encounter.meta.Slices for tag.tag:correlationId.version This element is included in summaries. 0..1 string Version of the system - if relevant
Encounter.meta.Slices for tag.tag:correlationId.code This element is included in summaries. 1..1 code Symbol in syntax defined by the system
Encounter.meta.Slices for tag.tag:correlationId.display This element is included in summaries. 0..1 string Representation defined by the system
Encounter.meta.Slices for tag.tag:correlationId.userSelected This element is included in summaries. 0..1 boolean If this coding was chosen directly by the user
Encounter.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Encounter.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
Encounter.text 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
Encounter.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Encounter.Slices for extension.extension:cscHolder 0..1 boolean Shared Care CSC holder
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-csc-holder
Encounter.Slices for extension.extension:regCode 0..1 string Shared Care Registration Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-registration-code
Encounter.Slices for extension.extension:diagnosis 0..* CodeableConcept Shared Care Diagnosis Code
URL: https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/shared-care-diagnosis-code
Binding: Condition/Problem/DiagnosisCodes (example)
Encounter.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Encounter.identifier This element is included in summaries. 1..* Identifier External (provider) and Health NZ business identifiers
Encounter.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.identifier.system This element is included in summaries. 0..1 uri The namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
Encounter.identifier.value This element is included in summaries. 0..1 string The value that is unique
Example General: 123456
Encounter.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.identifier.period.id 0..1 string Unique id for inter-element referencing
Encounter.identifier.period.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.identifier.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.identifier.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.status This element is a modifier element. This element is included in summaries. 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required): Current state of the encounter.
Encounter.class This element is included in summaries. 1..1 Coding Classification of patient encounter
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
Encounter.class.id 0..1 string Unique id for inter-element referencing
Encounter.class.extension 0..* Extension Additional content defined by implementations
Encounter.class.system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
Encounter.class.version 0..1 string Version of the system - if relevant
Encounter.class.code 1..1 code Symbol in syntax defined by the system
Fixed Value: VR
Encounter.class.display 1..1 string Representation defined by the system
Fixed Value: virtual
Encounter.class.userSelected 0..1 boolean If this coding was chosen directly by the user
Encounter.type This element is included in summaries. 1..1 CodeableConcept Type of encounter (e.g., Video consultation)
Binding: Online GP Encounter Type Value Set (extensible)
Encounter.serviceType This element is included in summaries. 0..1 CodeableConcept Consultation type
Binding: Online GP Consultation Service Type (required)
Encounter.subject This element is included in summaries. 1..1 Reference(NZ Patient | Patient) The patient or group present at the encounter
Encounter.subject.id 0..1 string Unique id for inter-element referencing
Encounter.subject.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.subject.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.subject.type This element is included in summaries. 1..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Required Pattern: Patient
Encounter.subject.identifier This element is included in summaries. 1..1 Identifier Logical reference, when literal reference is not known
Encounter.subject.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.subject.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.subject.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code usual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.subject.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.subject.identifier.system This element is included in summaries. 1..1 uri The namespace for the identifier value
Fixed Value: https://standards.digital.health.nz/ns/nhi-id
Encounter.subject.identifier.value This element is included in summaries. C 1..1 string Must be an absolute URL reference to the patient on the NHI system. See constraints for details.
Constraints: nhi-value-format
Example General: 123456
Encounter.subject.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.subject.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.episodeOfCare This element is included in summaries. 0..* Reference(EpisodeOfCare) Episode(s) of care that this encounter should be recorded against
Encounter.basedOn 0..* Reference(ServiceRequest) The ServiceRequest that initiated this encounter
Encounter.participant This element is included in summaries. 1..* BackboneElement Practitioners involved in the encounter
Encounter.participant.id 0..1 string Unique id for inter-element referencing
Encounter.participant.extension 0..* Extension Additional content defined by implementations
Encounter.participant.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.participant.type This element is included in summaries. 0..* CodeableConcept Role of participant in encounter
Binding: Online GP Participant Type (required)
Encounter.participant.period 0..1 Period Period of time during the encounter that the participant participated
Encounter.participant.individual This element is included in summaries. 0..1 Reference(Practitioner resource for use in NZ) Persons involved in the encounter other than the patient
Encounter.participant.individual.id 0..1 string Unique id for inter-element referencing
Encounter.participant.individual.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.participant.individual.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.participant.individual.type This element is included in summaries. 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Encounter.participant.individual.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.participant.individual.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.participant.individual.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.participant.individual.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.participant.individual.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.participant.individual.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.participant.individual.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.participant.individual.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.participant.individual.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.participant.individual.display This element is included in summaries. 0..1 string Text alternative for the resource
Encounter.appointment This element is included in summaries. 0..* Reference(Online GP Appointment) The appointment that scheduled this encounter
Encounter.period 1..1 Period The start and end time of the encounter
Encounter.period.id 0..1 string Unique id for inter-element referencing
Encounter.period.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.period.start This element is included in summaries. C 0..1 dateTime Starting time with inclusive boundary
Constraints: full-datetime-with-timezone
Encounter.period.end This element is included in summaries. C 0..1 dateTime End time with inclusive boundary, if not ongoing
Constraints: full-datetime-with-timezone
Encounter.length 0..1 Duration Quantity of time the encounter lasted (less time absent)
Encounter.hospitalization 0..1 BackboneElement Admission & discharge details (if applicable)
Encounter.hospitalization.id 0..1 string Unique id for inter-element referencing
Encounter.hospitalization.extension 0..* Extension Additional content defined by implementations
Encounter.hospitalization.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.hospitalization.preAdmissionIdentifier 0..1 Identifier Pre-admission identifier
Encounter.hospitalization.origin 0..1 Reference(Location | Organization) The location/organization from which the patient came before admission
Encounter.hospitalization.admitSource 0..1 CodeableConcept Referral source
Binding: Online GP Referral Source (required)
Encounter.hospitalization.reAdmission 0..1 CodeableConcept The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission
Binding: hl7VS-re-admissionIndicator (example): The reason for re-admission of this hospitalization encounter.
Encounter.hospitalization.dietPreference 0..* CodeableConcept Diet preferences reported by the patient
Binding: Diet (example): Medical, cultural or ethical food preferences to help with catering requirements.
Encounter.hospitalization.specialCourtesy 0..* CodeableConcept Special courtesies (VIP, board member)
Binding: SpecialCourtesy (preferred): Special courtesies.
Encounter.hospitalization.specialArrangement 0..* CodeableConcept Wheelchair, translator, stretcher, etc.
Binding: SpecialArrangements (preferred): Special arrangements.
Encounter.hospitalization.destination 0..1 Reference(Location | Organization) Location/organization to which the patient is discharged
Encounter.hospitalization.dischargeDisposition 0..1 CodeableConcept Category or kind of location after discharge
Binding: Online GP Discharge Disposition (required)
Encounter.location 0..* BackboneElement (Sub)Locations where the patient has been during the encounter
Encounter.location.id 0..1 string Unique id for inter-element referencing
Encounter.location.extension 0..* Extension Additional content defined by implementations
Encounter.location.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
Encounter.location.location 1..1 Reference(Location) Location the encounter takes place
Encounter.location.status 0..1 code planned | active | reserved | completed
Binding: EncounterLocationStatus (required): The status of the location.
Encounter.location.physicalType 0..1 CodeableConcept The physical type of the location (usually the level in the location hierachy - bed room ward etc.)
Binding: LocationType (example): Physical form of the location.
Encounter.location.period 0..1 Period Time period during which the patient was present at the location
Encounter.serviceProvider 1..1 Reference(Organization) Organization providing the online GP service
Encounter.serviceProvider.id 0..1 string Unique id for inter-element referencing
Encounter.serviceProvider.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.serviceProvider.reference This element is included in summaries. C 0..1 string Literal reference, Relative, internal or absolute URL
Encounter.serviceProvider.type This element is included in summaries. 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Encounter.serviceProvider.identifier This element is included in summaries. C 1..1 Identifier A local identifier MUST be added to this section.
Constraints: hpiOrganizationIdPattern, hpiFacilityIdPattern, nzbnPattern, hpiCpnPattern
Encounter.serviceProvider.identifier.id 0..1 string Unique id for inter-element referencing
Encounter.serviceProvider.identifier.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Encounter.serviceProvider.identifier.use This element is a modifier element. This element is included in summaries. 0..1 code The local identifier use SHOULD be set to official.
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .
Encounter.serviceProvider.identifier.type This element is included in summaries. 0..1 CodeableConcept Description of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
Encounter.serviceProvider.identifier.system This element is included in summaries. C 1..1 uri The system identifier for the organization, facility or nzbn
Constraints: allowedLocalIdentifierSystems
Example General: http://www.acme.com/identifiers/patient
Example HPI Organisation ID: https://standards.digital.health.nz/ns/hpi-organisation-id
Encounter.serviceProvider.identifier.value This element is included in summaries. 1..1 string The actual local identifier value, e.g. GZZ999-Z
Example General: 123456
Example Example HPI Org ID: GZZ999-Z
Encounter.serviceProvider.identifier.period This element is included in summaries. 0..1 Period Time period when id is/was valid for use
Encounter.serviceProvider.identifier.assigner This element is included in summaries. 0..1 Reference(Organization) Organization that issued id (may be just text)
Encounter.serviceProvider.display This element is included in summaries. 0..1 string Text alternative for the resource
Encounter.partOf 0..1 Reference(Encounter) A preceding Encounter (e.g. discharged from ED then admitted as an inpatient)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Encounter.meta.tag Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.meta.tag:correlationId Base example Common Tags 📍4.0.1 FHIR Std.
Encounter.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Encounter.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base extensible Online GP Encounter Type Value Set 📦0.0.1 This IG
Encounter.serviceType Base required Online GP Consultation Service Type 📦0.4.7 This IG
Encounter.subject.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.subject.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.participant.​type Base required Online GP Participant Type 📦1.0.2 This IG
Encounter.participant.​individual.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.participant.​individual.identifier.​use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.participant.​individual.identifier.​type Base extensible IdentifierType 📍4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base required Online GP Referral Source 📦0.4.7 This IG
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦2.0.0 THO v6.5
Encounter.hospitalization.​dietPreference Base example Diet 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📍4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base required Online GP Discharge Disposition 📦1.0.0 This IG
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​identifier.use Base required IdentifierUse 📍4.0.1 FHIR Std.
Encounter.serviceProvider.​identifier.type Base extensible IdentifierType 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
allowedLocalIdentifierSystems error Encounter.participant.individual.identifier.system, Encounter.serviceProvider.identifier.system Identifier system must be HPI facility, HPI Organisation, HPI CPN or NZBN $this = 'https://standards.digital.health.nz/ns/hpi-organisation-id' or $this = 'https://standards.digital.health.nz/ns/hpi-nzbn' or $this = 'https://standards.digital.health.nz/ns/hpi-facility-id' or $this = 'https://standards.digital.health.nz/ns/hpi-person-id'
full-datetime-with-timezone error Encounter.identifier.period.start, Encounter.identifier.period.end, Encounter.period.start, Encounter.period.end DateTime must be ISO 8601 format with time and timezone (e.g., 2026-01-01T00:00:00+13:00 or 2026-01-01T00:00:00Z). Date-only values are not accepted. toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$')
hpi-location-url-format error Encounter.meta.source Reference must be an HPI facility URL with format https://standards.digital.health.nz/ns/hpi-facility-id/FZZ111-A matches('^https://standards.digital.health.nz/ns/hpi-facility-id/F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiCpnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI CPN must conform to format (NNXXXX where N is numeric and X is alphabetic). system = 'https://standards.digital.health.nz/ns/hpi-person-id' implies value.matches('^[0-9]{2}[A-Za-z]{4}$')
hpiFacilityIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Facility ID must conform to format (FXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-facility-id' implies value.matches('^F[A-Za-z0-9]{2}[0-9]{3}-[A-Za-z0-9]$')
hpiOrganizationIdPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier HPI Organisation ID must conform to format (GXXnnn-C). system = 'https://standards.digital.health.nz/ns/hpi-organisation-id' implies value.matches('^G[a-zA-Z0-9]{2}[0-9]{3}-[a-zA-Z0-9]$')
nhi-value-format error Encounter.subject.identifier.value Reference must be an NHI Patient URL with format ZZZ1111 or ZZZ11AA matches('^[A-Z]{3}([0-9]{4}|[0-9]{2}[A-Z]{2})$')
nzbnPattern error Encounter.participant.individual.identifier, Encounter.serviceProvider.identifier NZBN must conform to format (13 digits). system = 'https://standards.digital.health.nz/ns/hpi-nzbn' implies value.matches('^[0-9]{13}$')

 

Other representations of profile: CSV, Excel, Schematron