## Profile Comparison between http://fhir.hl7.nl/zorgviewer/StructureDefinition/Encounter vs http://fhir.hl7.nl/zorgviewer/StructureDefinition/Encounter

Left: | Encounter (http://fhir.hl7.nl/zorgviewer/StructureDefinition/Encounter)
Right: | Encounter (http://fhir.hl7.nl/zorgviewer/StructureDefinition/Encounter)

### Messages

Error | Encounter.subject | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-patient]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-patient]])
Error | Encounter.episodeOfCare | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare]])
Error | Encounter.participant.individual | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson], CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson], CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]])
Error | Encounter.diagnosis.condition | Type Mismatch: Reference([CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Procedure], CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Problem]]) vs Reference([CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Procedure], CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Problem]])
Error | Encounter.serviceProvider | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-organization]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-organization]])

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://nictiz.nl/fhir/StructureDefinition/zib-Encounter |
copyright |  |
description | Contact |
experimental |  |
fhirVersion | 3.0.2 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#NL |
kind | resource |
name | Encounter |
publisher | RIVO-NN HL7NL |
purpose |  |
status | draft |
title | Encounter |
type | Encounter |
url | http://fhir.hl7.nl/zorgviewer/StructureDefinition/Encounter |

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Encounter |  | 0..* |  | Encounter |  | 0..* | Zib Encounter | Encounter |
id | Σ | 0..1 | id | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (extensible): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (extensible): A human language.
Additional Bindings | Purpose
?? | Max Binding
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 |  | 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 |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..* | Identifier | Identifier(s) by which this encounter is known | Σ | 0..* | Identifier | Identifier(s) by which this encounter is known |
status | ?!Σ | 1..1 | code | planned | arrived | triaged | in-progress | onleave | finished | cancelled + Binding: ?? (required): Current state of the encounter | ?!Σ | 1..1 | code | planned | arrived | triaged | in-progress | onleave | finished | cancelled + Binding: ?? (required): Current state of the encounter |
statusHistory |  | 0..* | BackboneElement | List of past encounter statuses |  | 0..* | BackboneElement | List of past encounter statuses |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
status |  | 1..1 | code | planned | arrived | triaged | in-progress | onleave | finished | cancelled + Binding: ?? (required): Current state of the encounter |  | 1..1 | code | planned | arrived | triaged | in-progress | onleave | finished | cancelled + Binding: ?? (required): Current state of the encounter |
period |  | 1..1 | Period | The time that the episode was in the specified status |  | 1..1 | Period | The time that the episode was in the specified status |
class | Σ | 1..1 | Coding | ContactType Binding: ?? (extensible): ContactTypeCodelijst | Σ | 1..1 | Coding | ContactType Binding: ?? (extensible): ContactTypeCodelijst |
classHistory |  | 0..* | BackboneElement | List of past encounter classes |  | 0..* | BackboneElement | List of past encounter classes |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
class |  | 1..1 | Coding | inpatient | outpatient | ambulatory | emergency + Binding: ?? (extensible): Classification of the encounter |  | 1..1 | Coding | inpatient | outpatient | ambulatory | emergency + Binding: ?? (extensible): Classification of the encounter |
period |  | 1..1 | Period | The time that the episode was in the specified class |  | 1..1 | Period | The time that the episode was in the specified class |
type | Σ | 0..* | CodeableConcept | Specific type of encounter Binding: ?? (example): The type of encounter | Σ | 0..* | CodeableConcept | Specific type of encounter Binding: ?? (example): The type of encounter |
priority |  | 0..1 | CodeableConcept | Indicates the urgency of the encounter Binding: ?? (example): Indicates the urgency of the encounter. |  | 0..1 | CodeableConcept | Indicates the urgency of the encounter Binding: ?? (example): Indicates the urgency of the encounter. |
subject | Σ | 1..1 | Reference(http://fhir.nl/fhir/StructureDefinition/nl-core-patient) | The patient ro group present at the encounter | Σ | 1..1 | Reference(nl-core-patient) | The patient ro group present at the encounter | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-patient]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-patient]])
episodeOfCare | Σ | 0..* | Reference(http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare) | Episode(s) of care that this encounter should be recorded against | Σ | 0..* | Reference(nl-core-episodeofcare) | Episode(s) of care that this encounter should be recorded against | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare]])
incomingReferral |  | 0..* | Reference(ReferralRequest) | The ReferralRequest that initiated this encounter |  | 0..* | Reference(ReferralRequest) | The ReferralRequest that initiated this encounter |
participant | Σ | 0..* | BackboneElement | List of participants involved in the encounter | Σ | 0..* | BackboneElement | List of participants involved in the encounter |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | Σ | 0..* | CodeableConcept | Role of participant in encounter Binding: ?? (extensible): Role of participant in encounter | Σ | 0..* | CodeableConcept | Role of participant in encounter Binding: ?? (extensible): Role of participant in encounter |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
Slices for coding | Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this | Σ | 0..* | Coding | Code defined by a terminology system Slice: Unordered, Open by value:$this |
text | Σ | 0..1 | string | Plain text representation of the concept | Σ | 0..1 | string | Plain text representation of the concept |
period |  | 0..1 | Period | Period of time during the encounter that the participant participated |  | 0..1 | Period | Period of time during the encounter that the participant participated |
individual | Σ | 0..1 | Reference(http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson | http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner) | ContactWith | Σ | 0..1 | Reference(nl-core-relatedperson | nl-core-practitioner) | ContactWith | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson], CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson], CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner]])
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL |
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known |
display | Σ | 0..1 | string | Text alternative for the resource | Σ | 0..1 | string | Text alternative for the resource |
appointment | Σ | 0..1 | Reference(Appointment) | The appointment that scheduled this encounter | Σ | 0..1 | Reference(Appointment) | The appointment that scheduled this encounter |
period |  | 0..1 | Period | The start and end time of the encounter |  | 0..1 | Period | The start and end time of the encounter |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
start | Σ C | 1..1 | dateTime | StartDateTime | Σ C | 1..1 | dateTime | StartDateTime |
end | Σ C | 0..1 | dateTime | EndDateTime | Σ C | 0..1 | dateTime | EndDateTime |
length |  | 0..1 | Duration | Quantity of time the encounter lasted (less time absent) |  | 0..1 | Duration | Quantity of time the encounter lasted (less time absent) |
reason | Σ | 0..* | CodeableConcept | DeviatingResult Binding: ?? (preferred): Reason why the encounter takes place. | Σ | 0..* | CodeableConcept | DeviatingResult Binding: ?? (preferred): Reason why the encounter takes place. |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
coding | Σ | 0..* | Coding | Code defined by a terminology system | Σ | 0..* | Coding | Code defined by a terminology system |
text | Σ | 0..1 | string | DeviatingResult | Σ | 0..1 | string | DeviatingResult |
diagnosis | Σ | 0..* | BackboneElement | The list of diagnosis relevant to this encounter | Σ | 0..* | BackboneElement | The list of diagnosis relevant to this encounter |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
condition |  | 1..1 | Reference(http://nictiz.nl/fhir/StructureDefinition/zib-Procedure | http://nictiz.nl/fhir/StructureDefinition/zib-Problem) | ContactReason |  | 1..1 | Reference(HCIM Procedure | HCIM Problem) | ContactReason | Type Mismatch: Reference([CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Procedure], CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Problem]]) vs Reference([CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Procedure], CanonicalType[http://nictiz.nl/fhir/StructureDefinition/zib-Problem]])
role |  | 0..1 | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Binding: ?? (preferred): The type of diagnosis this condition represents |  | 0..1 | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Binding: ?? (preferred): The type of diagnosis this condition represents |
rank |  | 0..1 | positiveInt | Ranking of the diagnosis (for each role type) |  | 0..1 | positiveInt | Ranking of the diagnosis (for each role type) |
account |  | 0..* | Reference(Account) | The set of accounts that may be used for billing for this Encounter |  | 0..* | Reference(Account) | The set of accounts that may be used for billing for this Encounter |
hospitalization |  | 0..1 | BackboneElement | Details about the admission to a healthcare service |  | 0..1 | BackboneElement | Details about the admission to a healthcare service |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
preAdmissionIdentifier |  | 0..1 | Identifier | Pre-admission identifier |  | 0..1 | Identifier | Pre-admission identifier |
origin |  | 0..1 | Reference(Location) | The location from which the patient came before admission |  | 0..1 | Reference(Location) | The location from which the patient came before admission |
admitSource |  | 0..1 | CodeableConcept | Origin Binding: ?? (extensible): HerkomstCodelijst |  | 0..1 | CodeableConcept | Origin Binding: ?? (extensible): HerkomstCodelijst |
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: ?? (example): The reason for re-admission of this hospitalization encounter. |  | 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: ?? (example): The reason for re-admission of this hospitalization encounter. |
dietPreference |  | 0..* | CodeableConcept | Diet preferences reported by the patient Binding: ?? (example): Medical, cultural or ethical food preferences to help with catering requirements. |  | 0..* | CodeableConcept | Diet preferences reported by the patient Binding: ?? (example): Medical, cultural or ethical food preferences to help with catering requirements. |
specialCourtesy |  | 0..* | CodeableConcept | Special courtesies (VIP, board member) Binding: ?? (preferred): Special courtesies |  | 0..* | CodeableConcept | Special courtesies (VIP, board member) Binding: ?? (preferred): Special courtesies |
specialArrangement |  | 0..* | CodeableConcept | Wheelchair, translator, stretcher, etc. Binding: ?? (preferred): Special arrangements |  | 0..* | CodeableConcept | Wheelchair, translator, stretcher, etc. Binding: ?? (preferred): Special arrangements |
destination |  | 0..1 | Reference(Location) | Location to which the patient is discharged |  | 0..1 | Reference(Location) | Location to which the patient is discharged |
dischargeDisposition |  | 0..1 | CodeableConcept | Destination Binding: ?? (extensible): BestemmingCodelijst |  | 0..1 | CodeableConcept | Destination Binding: ?? (extensible): BestemmingCodelijst |
location |  | 0..* | BackboneElement | List of locations where the patient has been |  | 0..* | BackboneElement | List of locations where the patient has been |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
location |  | 1..1 | Reference(Location) | Location the encounter takes place |  | 1..1 | Reference(Location) | Location the encounter takes place |
status |  | 0..1 | code | planned | active | reserved | completed Binding: ?? (required): The status of the location. |  | 0..1 | code | planned | active | reserved | completed Binding: ?? (required): The status of the location. |
period |  | 0..1 | Period | Time period during which the patient was present at the location |  | 0..1 | Period | Time period during which the patient was present at the location |
serviceProvider |  | 0..1 | Reference(http://fhir.nl/fhir/StructureDefinition/nl-core-organization) | Location |  | 0..1 | Reference(nl-core-organization) | Location | Type Mismatch: Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-organization]]) vs Reference([CanonicalType[http://fhir.nl/fhir/StructureDefinition/nl-core-organization]])
partOf |  | 0..1 | Reference(Encounter) | Another Encounter this encounter is part of |  | 0..1 | Reference(Encounter) | Another Encounter this encounter is part of |
Documentation for this format