New Zealand NES IG
1.5.0 - Release
New Zealand NES IG - Local Development build (v1.5.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hl7.org.nz/fhir/StructureDefinition/NesEnrolment | Version: 1.5.0 | |||
| Active as of 2026-06-11 | Computable Name: NesEnrolment | |||
Adds additional, NES specific extensions for enrolments
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason" | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) |
![]() ![]() |
Σ | 0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) |
![]() ![]() |
Σ | 1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.statusHistory.status | Base | required | EpisodeOfCareStatus | 📍4.0.1 | FHIR Std. |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from EpisodeOfCare
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
||||
![]() ![]() ![]() |
0..0 | Version specific identifier | ||
![]() ![]() ![]() |
0..0 | Identifies where the resource comes from | ||
![]() ![]() ![]() |
0..0 | Security Labels applied to this resource | ||
![]() ![]() ![]() |
0..0 | Tags applied to this resource | ||
![]() ![]() |
0..0 | Language of the resource content | ||
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) | |
![]() ![]() |
0..0 | Past list of status codes (the current status may be included to cover the start date of the status) | ||
![]() ![]() |
0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) | |
![]() ![]() |
0..0 | The list of diagnosis relevant to this episode of care | ||
![]() ![]() |
1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care | |
![]() ![]() |
0..0 | Originating Referral Request(s) | ||
![]() ![]() |
0..0 | Other practitioners facilitating this episode of care | ||
![]() ![]() |
0..0 | The set of accounts that may be used for billing for this EpisodeOfCare | ||
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed |
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason" | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
0..* | Identifier | Business Identifier(s) relevant for this EpisodeOfCare | |
![]() ![]() |
?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) |
![]() ![]() |
Σ | 0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) |
![]() ![]() |
Σ | 1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care |
![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that assumes care |
![]() ![]() |
Σ | 0..1 | Period | Interval during responsibility is assumed |
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole) | Care manager/care coordinator for the patient | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.statusHistory.status | Base | required | EpisodeOfCareStatus | 📍4.0.1 | FHIR Std. |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.diagnosis.role | Base | preferred | DiagnosisRole | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from EpisodeOfCare
Summary
Prohibited: 10 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason" | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) |
![]() ![]() |
Σ | 0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) |
![]() ![]() |
Σ | 1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.statusHistory.status | Base | required | EpisodeOfCareStatus | 📍4.0.1 | FHIR Std. |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from EpisodeOfCare
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
||||
![]() ![]() ![]() |
0..0 | Version specific identifier | ||
![]() ![]() ![]() |
0..0 | Identifies where the resource comes from | ||
![]() ![]() ![]() |
0..0 | Security Labels applied to this resource | ||
![]() ![]() ![]() |
0..0 | Tags applied to this resource | ||
![]() ![]() |
0..0 | Language of the resource content | ||
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) | |
![]() ![]() |
0..0 | Past list of status codes (the current status may be included to cover the start date of the status) | ||
![]() ![]() |
0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) | |
![]() ![]() |
0..0 | The list of diagnosis relevant to this episode of care | ||
![]() ![]() |
1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care | |
![]() ![]() |
0..0 | Originating Referral Request(s) | ||
![]() ![]() |
0..0 | Other practitioners facilitating this episode of care | ||
![]() ![]() |
0..0 | The set of accounts that may be used for billing for this EpisodeOfCare | ||
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | EpisodeOfCare | An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility Constraints: URL-LENGTH, URL-ALLOWED-CHARS, SYSTEM-LENGTH, SYSTEM-ALLOWED-CHARS, CODEABLE-CONCEPT-TEXT-LENGTH, CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS |
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact |
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed |
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |
![]() ![]() |
0..* | Resource | Contained, inline Resources Slice: Unordered, Closed by type:$this | |
![]() ![]() ![]() |
0..1 | NesPractitionerRole | Contained resource for the last qualified Encounter relating to this Enrolment | |
![]() ![]() ![]() |
0..1 | Encounter | Contained, inline Resources | |
![]() ![]() ![]() |
0..1 | NesPatient | Information about an individual or animal receiving health care services | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | date | The date on which the Enrolment will expire URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date | |
![]() ![]() ![]() |
0..1 | date | Extension URL: http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date | |
![]() ![]() ![]() |
0..1 | Reference(HPI Organization) | Organisation that creates the enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org | |
![]() ![]() ![]() |
0..1 | (Complex) | describe the reason the enrolment has ended URL: http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason" | |
![]() ![]() ![]() ![]() |
0..1 | CodeableConcept | Value of extension Binding: NES Enrolment Termination Reason (required) | |
![]() ![]() ![]() |
0..1 | Reference(Encounter) | the last qualified Encounter relating to this Enrolment URL: http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
0..* | Identifier | Business Identifier(s) relevant for this EpisodeOfCare | |
![]() ![]() |
?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: NES Enrolment Status (required) |
![]() ![]() |
Σ | 0..* | CodeableConcept | Type/class - e.g. specialist referral, disease management Binding: NES Enrolment Type (required) |
![]() ![]() |
Σ | 1..1 | Reference(NES Patient) | The patient who is the focus of this episode of care |
![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that assumes care |
![]() ![]() |
Σ | 0..1 | Period | Interval during responsibility is assumed |
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole) | Care manager/care coordinator for the patient | |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| EpisodeOfCare.extension:terminationReason.value[x] | Base | required | NES Enrolment Termination Reason | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.status | Base | required | NES Enrolment Status | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.statusHistory.status | Base | required | EpisodeOfCareStatus | 📍4.0.1 | FHIR Std. |
| EpisodeOfCare.type | Base | required | NES Enrolment Type | 📦1.0 | HIP FHIR Common Terminology Guide v1.12 |
| EpisodeOfCare.diagnosis.role | Base | preferred | DiagnosisRole | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| CODEABLE-CONCEPT-TEXT-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for valueCodeableConcept.text |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(matches('^([-a-zA-Z0-9\' \t\r\n.\/,])*$'))
|
| CODEABLE-CONCEPT-TEXT-LENGTH | error | EpisodeOfCare | valueCodeableConcept.text must be less than 1024 characters |
EpisodeOfCare.descendants().valueCodeableConcept.text.all(length()<1024)
|
| SYSTEM-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for system url |
EpisodeOfCare.descendants().system.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| SYSTEM-LENGTH | error | EpisodeOfCare | System URLs must be less than 1024 characters |
EpisodeOfCare.descendants().system.all(length()<1024)
|
| URL-ALLOWED-CHARS | error | EpisodeOfCare | character restrictions for URLs |
EpisodeOfCare.descendants().url.all(matches('^[-a-zA-Z0-9@:%._~#=?&\/]*$'))
|
| URL-LENGTH | error | EpisodeOfCare | URLs must be less than 1024 characters |
EpisodeOfCare.descendants().url.all(length()<1024)
|
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from EpisodeOfCare
Summary
Prohibited: 10 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Slices
This structure defines the following Slices:
Other representations of profile: CSV, Excel, Schematron