TEHIK FHIR IG Encounter and Episode of Care
0.1.0 - draft EE

TEHIK FHIR IG Encounter and Episode of Care, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/ig-ee-encounter-episode/ and changes regularly. See the Directory of published versions

## Resource Profile: EE TIS Encounter

Official URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-encounter | Version: 0.1.0
Draft as of 2026-05-15 | Computable Name: EETISEncounter

A profile for basic encounter. (ee TERVISHOIUKONTAKT v KONTAKT)

Usages:

- Refer to this Profile: EoC or Encounter reference
- Examples for this Profile: Encounter/encounter1

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.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  |  |  | Content/Rules for all slices
extension:modeOfArrival |  | 0..1 | Coding | The method that the patient arrived at the facility. URL: http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival profiled by https://fhir.ee/base/StructureDefinition/ee-mode-of-arrival Binding: Mode Of Arrival (extensible)
extension:associatedEncounter |  | 0..1 | Reference(Encounter) | Associated Encounter URL: http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | Σ | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
status | ?!S Σ | 1..1 | code | (ee HL7 loend, vaja tõlget.) Binding: EncounterStatus (required): Current state of the encounter.
class | S Σ | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?) Binding: Encounter class (extensible)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?) Binding: ActPriority (extensible)
Slices for type | Σ | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterType | Σ | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|) Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterRecurrence | Σ | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|) Binding: EncounterType (example): A specific code indicating type of service provided
serviceType | Σ | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend????? Binding: ServiceType (example): Broad categorization of the service that is to be provided.
subject | Σ | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
episodeOfCare | Σ | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant | Σ C | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!)) Constraints: enc-1, enc-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | Σ C | 0..* | CodeableConcept | Role of participant in encounter Binding: ParticipantType (extensible): Role of participant in encounter.
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor | Σ C | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne) Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
reason | Σ | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
diagnosis | Σ | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 1..1 | Reference(EEBase Location(1.2.1)) | Location the encounter takes place
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Encounter.status | Base | required | Encounter Status | 📍5.0.0 | FHIR Std.
Encounter.class | Base | extensible | Encounter class | 📦2.0.1 | THO v7.1
Encounter.priority | Base | extensible | ActPriority | 📦3.0.0 | THO v7.1
Encounter.type | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterType | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterRecurrence | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.serviceType | Base | example | Service Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​type | Base | extensible | Participant Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​actor.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Encounter | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Encounter | 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())`
enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified | `actor.exists() or type.exists()`
enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant | `actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from EEBaseEncounter

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
meta |  |  |  |
versionId |  | 0..1 | id | (ee Versiooni identifikaator)
security |  | 0..* | Coding | Confidentiality for patient, practitioner and trustee. (ee Konfidentsiaalsus siia? HL7 codesystem. Seda saaks ka sliceda...? Konf.patsiendile/konf arstile/konf usaldusisikule, 3 slice.)
Slices for extension |  |  |  | Content/Rules for all slices
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
Slices for identifier |  | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier |  | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier |  | 0..1 | Identifier | Identifier(s) by which this encounter is known
status |  | 1..1 | code | (ee HL7 loend, vaja tõlget.)
class |  | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?)
Slices for type |  | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system
type:encounterType |  | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|)
type:encounterRecurrence |  | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|)
serviceType |  | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend?????
subject |  | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
episodeOfCare |  | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant |  | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!))
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
type |  | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne)
virtualService |  | 0..0 |  | Connection details of a virtual service (e.g. conference call)
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
length |  | 0..0 |  | Actual quantity of time the encounter lasted (less time absent)
reason |  | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
diagnosis |  | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
account |  | 0..0 |  | The set of accounts that may be used for billing for this Encounter
dietPreference |  | 0..0 |  | Diet preferences reported by the patient
specialArrangement |  | 0..0 |  | Wheelchair, translator, stretcher, etc
specialCourtesy |  | 0..0 |  | Special courtesies (VIP, board member)
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | (ee Versiooni identifikaator)
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Confidentiality for patient, practitioner and trustee. (ee Konfidentsiaalsus siia? HL7 codesystem. Seda saaks ka sliceda...? Konf.patsiendile/konf arstile/konf usaldusisikule, 3 slice.) Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | 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".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
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
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:modeOfArrival |  | 0..1 | Coding | The method that the patient arrived at the facility. URL: http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival profiled by https://fhir.ee/base/StructureDefinition/ee-mode-of-arrival Binding: Mode Of Arrival (extensible)
extension:associatedEncounter |  | 0..1 | Reference(Encounter) | Associated Encounter URL: http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | Σ | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
status | ?!S Σ | 1..1 | code | (ee HL7 loend, vaja tõlget.) Binding: EncounterStatus (required): Current state of the encounter.
class | S Σ | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?) Binding: Encounter class (extensible)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?) Binding: ActPriority (extensible)
Slices for type | Σ | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterType | Σ | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|) Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterRecurrence | Σ | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|) Binding: EncounterType (example): A specific code indicating type of service provided
serviceType | Σ | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend????? Binding: ServiceType (example): Broad categorization of the service that is to be provided.
subject | Σ | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
subjectStatus |  | 0..1 | CodeableConcept | The current status of the subject in relation to the Encounter Binding: EncounterSubjectStatus (example): Current status of the subject within the encounter.
episodeOfCare | Σ | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
careTeam |  | 0..* | Reference(CareTeam) | The group(s) that are allocated to participate in this encounter
partOf |  | 0..1 | Reference(EEBase Encounter(1.2.1)) | Reference to previous encounter
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant | Σ C | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!)) Constraints: enc-1, enc-2
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | Σ C | 0..* | CodeableConcept | Role of participant in encounter Binding: ParticipantType (extensible): Role of participant in encounter.
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor | Σ C | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 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
type | Σ | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne) Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ C | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ C | 0..1 | string | Text alternative for the resource
appointment | Σ | 0..* | Reference(Appointment) | The appointment that scheduled this encounter
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
reason | Σ | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
use | Σ | 0..* | CodeableConcept | What the reason value should be used for/as Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | DiagnosticReport | EEBase Observation(1.2.1) | ImmunizationRecommendation | Procedure) | Reason the encounter takes place (core or reference) Binding: EncounterReasonCodes (preferred): Reason why the encounter takes place.
diagnosis | Σ | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
condition | Σ | 0..* | CodeableReference(Condition) | The diagnosis relevant to the encounter Binding: ConditionProblemDiagnosisCodes (example)
use |  | 0..* | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
preAdmissionIdentifier |  | 0..1 | Identifier | Pre-admission identifier
origin |  | 0..1 | Reference(EEBase Location(1.2.1) | EEBase Organization(1.2.1)) | The location/organization from which the patient came before admission
admitSource |  | 0..1 | CodeableConcept | From where patient was admitted (physician referral, transfer) Binding: AdmitSource (preferred): From where the patient was admitted.
reAdmission |  | 0..1 | CodeableConcept | Indicates that the patient is being re-admitted Binding: hl7VS-re-admissionIndicator (example): The reason for re-admission of this admission encounter.
destination |  | 0..1 | Reference(EEBase Location(1.2.1) | EEBase Organization(1.2.1)) | Location/organization to which the patient is discharged
dischargeDisposition |  | 0..1 | CodeableConcept | Category or kind of location after discharge Binding: DischargeDisposition (example): Discharge Disposition.
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 1..1 | Reference(EEBase Location(1.2.1)) | Location the encounter takes place
status |  | 0..1 | code | planned | active | reserved | completed Binding: EncounterLocationStatus (required): The status of the location.
form |  | 0..1 | CodeableConcept | The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) Binding: LocationForm (example): Physical form of the location.
period |  | 0..1 | Period | Time period during which the patient was present at the location
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Encounter.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | FHIR Std.
Encounter.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
Encounter.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Encounter.status | Base | required | Encounter Status | 📍5.0.0 | FHIR Std.
Encounter.class | Base | extensible | Encounter class | 📦2.0.1 | THO v7.1
Encounter.priority | Base | extensible | ActPriority | 📦3.0.0 | THO v7.1
Encounter.type | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterType | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterRecurrence | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.serviceType | Base | example | Service Type | 📍5.0.0 | FHIR Std.
Encounter.subjectStatus | Base | example | Encounter Subject Status | 📍5.0.0 | FHIR Std.
Encounter.participant.​type | Base | extensible | Participant Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​actor.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std.
Encounter.reason.use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
Encounter.reason.value | Base | preferred | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
Encounter.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
Encounter.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.
Encounter.admission.​admitSource | Base | preferred | Admit Source | 📍5.0.0 | FHIR Std.
Encounter.admission.​reAdmission | Base | example | hl7VS-re-admissionIndicator | 📦3.0.0 | THO v7.1
Encounter.admission.​dischargeDisposition | Base | example | Discharge Disposition | 📍5.0.0 | FHIR Std.
Encounter.location.status | Base | required | Encounter Location Status | 📍5.0.0 | FHIR Std.
Encounter.location.form | Base | example | Location Form | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Encounter | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Encounter | 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())`
enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified | `actor.exists() or type.exists()`
enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant | `actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from EEBaseEncounter

Summary

Mandatory: 3 elements
Prohibited: 6 elements

Structures

This structure refers to these other structures:

- EE MPI Patient Verified (https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient-verified)
- EEBase Patient (https://fhir.ee/base/StructureDefinition/ee-patient)
- EEBase Practitioner (https://fhir.ee/base/StructureDefinition/ee-practitioner)
- EEBase RelatedPerson (https://fhir.ee/base/StructureDefinition/ee-related-person)
- EEBase PractitionerRole (https://fhir.ee/base/StructureDefinition/ee-practitioner-role)

Extensions

This structure refers to these extensions:

- https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
- https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Encounter.identifier
- The element 1 is sliced based on the value of Encounter.type

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  |  |  | Content/Rules for all slices
extension:modeOfArrival |  | 0..1 | Coding | The method that the patient arrived at the facility. URL: http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival profiled by https://fhir.ee/base/StructureDefinition/ee-mode-of-arrival Binding: Mode Of Arrival (extensible)
extension:associatedEncounter |  | 0..1 | Reference(Encounter) | Associated Encounter URL: http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | Σ | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
status | ?!S Σ | 1..1 | code | (ee HL7 loend, vaja tõlget.) Binding: EncounterStatus (required): Current state of the encounter.
class | S Σ | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?) Binding: Encounter class (extensible)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?) Binding: ActPriority (extensible)
Slices for type | Σ | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterType | Σ | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|) Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterRecurrence | Σ | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|) Binding: EncounterType (example): A specific code indicating type of service provided
serviceType | Σ | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend????? Binding: ServiceType (example): Broad categorization of the service that is to be provided.
subject | Σ | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
episodeOfCare | Σ | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant | Σ C | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!)) Constraints: enc-1, enc-2
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | Σ C | 0..* | CodeableConcept | Role of participant in encounter Binding: ParticipantType (extensible): Role of participant in encounter.
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor | Σ C | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
type | Σ | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne) Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
reason | Σ | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
diagnosis | Σ | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 1..1 | Reference(EEBase Location(1.2.1)) | Location the encounter takes place
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Encounter.status | Base | required | Encounter Status | 📍5.0.0 | FHIR Std.
Encounter.class | Base | extensible | Encounter class | 📦2.0.1 | THO v7.1
Encounter.priority | Base | extensible | ActPriority | 📦3.0.0 | THO v7.1
Encounter.type | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterType | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterRecurrence | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.serviceType | Base | example | Service Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​type | Base | extensible | Participant Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​actor.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Encounter | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Encounter | 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())`
enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified | `actor.exists() or type.exists()`
enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant | `actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()`
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 EEBaseEncounter

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
meta |  |  |  |
versionId |  | 0..1 | id | (ee Versiooni identifikaator)
security |  | 0..* | Coding | Confidentiality for patient, practitioner and trustee. (ee Konfidentsiaalsus siia? HL7 codesystem. Seda saaks ka sliceda...? Konf.patsiendile/konf arstile/konf usaldusisikule, 3 slice.)
Slices for extension |  |  |  | Content/Rules for all slices
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
Slices for identifier |  | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier |  | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier |  | 0..1 | Identifier | Identifier(s) by which this encounter is known
status |  | 1..1 | code | (ee HL7 loend, vaja tõlget.)
class |  | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?)
Slices for type |  | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system
type:encounterType |  | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|)
type:encounterRecurrence |  | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|)
serviceType |  | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend?????
subject |  | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
episodeOfCare |  | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant |  | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!))
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
type |  | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne)
virtualService |  | 0..0 |  | Connection details of a virtual service (e.g. conference call)
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
length |  | 0..0 |  | Actual quantity of time the encounter lasted (less time absent)
reason |  | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
diagnosis |  | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
account |  | 0..0 |  | The set of accounts that may be used for billing for this Encounter
dietPreference |  | 0..0 |  | Diet preferences reported by the patient
specialArrangement |  | 0..0 |  | Wheelchair, translator, stretcher, etc
specialCourtesy |  | 0..0 |  | Special courtesies (VIP, board member)
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Encounter |  | 0..* | EEBaseEncounter(1.2.1) | An interaction during which services are provided to the patient
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | Σ | 0..1 | id | (ee Versiooni identifikaator)
lastUpdated | Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Confidentiality for patient, practitioner and trustee. (ee Konfidentsiaalsus siia? HL7 codesystem. Seda saaks ka sliceda...? Konf.patsiendile/konf arstile/konf usaldusisikule, 3 slice.) Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | 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".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: AllLanguages (required): IETF language tag for a human language
Additional Bindings | Purpose
CommonLanguages | Starter
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
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:modeOfArrival |  | 0..1 | Coding | The method that the patient arrived at the facility. URL: http://hl7.org/fhir/StructureDefinition/encounter-modeOfArrival profiled by https://fhir.ee/base/StructureDefinition/ee-mode-of-arrival Binding: Mode Of Arrival (extensible)
extension:associatedEncounter |  | 0..1 | Reference(Encounter) | Associated Encounter URL: http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter
extension:summary |  | 0..1 | string | Textual summary of encounter when needed. (ee Vabatekstiline kokkuvõte kontaktist.) URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Related encounter when needed. (ee KAS partOf LAHENDAKS SELLE VAJADUSE ÄRA?!?!?! ) URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | Σ | 0..* | Identifier | Identifier for local systems and across systems. (ee Identifikaator TTO siseseks kasutamiseks ja IS üleselt. NB! Vaja erinevaid systemeid.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
identifier:crossTtoIdentifier | Σ | 0..1 | Identifier | Identifier(s) by which this encounter is known
status | ?!S Σ | 1..1 | code | (ee HL7 loend, vaja tõlget.) Binding: EncounterStatus (required): Current state of the encounter.
class | S Σ | 1..1 | CodeableConcept | (ee KLASS. Describes the form of encounter (|ambulatoorne|,|statsionaarne|; HL7 loendile mäping+tõlge? Fix kood per profiil?) Binding: Encounter class (extensible)
priority |  | 0..1 | CodeableConcept | (ee ERAKORRALISUS. |erakorraline|, |vältimatu|, |plaaniline| - kas saab HL7 loendit kasutada?) Binding: ActPriority (extensible)
Slices for type | Σ | 0..* | CodeableConcept | Types of encounter. (ee Tervishoiukontakti TÜÜP |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|, ja LIIK (|esmane|, |korduv|). ( VAJA LOENDIT kas korduva lahendada re-admissioniga? Kui see pole täidetud on alati esmane???) Slice: Unordered, Open by value:system Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterType | Σ | 0..1 | CodeableConcept | tervishoiukontakti tüüp (näiteks |visiit|,|videokonsultatsioon|, |email|, |telefonikonsultatsioon|) Binding: EncounterType (example): A specific code indicating type of service provided
type:encounterRecurrence | Σ | 0..1 | CodeableConcept | kontakti liik (|esmane|, |korduv|) Binding: EncounterType (example): A specific code indicating type of service provided
serviceType | Σ | 0..* | CodeableReference(EEBase HealthcareService(1.2.1)) | AMB.teenuste loend????? Binding: ServiceType (example): Broad categorization of the service that is to be provided.
subject | Σ | 0..1 | Reference(EE MPI Patient Verified | EEBase Patient(1.2.1)) | Patient reference from MPI. (ee VIIDE patsiendile, PÜT!)
subjectStatus |  | 0..1 | CodeableConcept | The current status of the subject in relation to the Encounter Binding: EncounterSubjectStatus (example): Current status of the subject within the encounter.
episodeOfCare | Σ | 1..1 | Reference(EEBase EpisodeOfCare(1.2.1)) | EoC that is related to this encounter (ee Raviepisood, millega see kontakt seotud on)
basedOn |  | 0..* | Reference(CarePlan | DeviceRequest | MedicationRequest | ServiceRequest) | Refferral or other document that is related to this encounter. (ee SAATEKIRI või muu dokument, mis on seotud tervishoiukontaktiga. NB! ServiceRequest pole profileeritud.)
careTeam |  | 0..* | Reference(CareTeam) | The group(s) that are allocated to participate in this encounter
partOf |  | 0..1 | Reference(EEBase Encounter(1.2.1)) | Reference to previous encounter
serviceProvider |  | 1..1 | Reference(EEBase Organization(1.2.1)) | Use SPD when it is published! (ee TTO, kelle juures Tervishoiukontakt toimus.)
participant | Σ C | 0..* | BackboneElement | Use references to SPD when it is published! (ee Tervishoiukontakti osalejad PEAKSID tulema SPD-st, siis kui see avaldatud on. SLICE muu abipersonal!)) Constraints: enc-1, enc-2
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | Σ C | 0..* | CodeableConcept | Role of participant in encounter Binding: ParticipantType (extensible): Role of participant in encounter.
period |  | 0..1 | Period | (ee Osaluse periood. Kui kaua osaleja ja patsient kontaktis olid.)
actor | Σ C | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase RelatedPerson(1.2.1) | EEBase PractitionerRole(1.2.1)) | The individual, device, or service participating in the encounter
id |  | 0..1 | id | Unique id for inter-element referencing
extension |  | 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
type | Σ | 0..1 | uri | (ee Osaluse tüüp. NB! vaja uut loendit? |sotsiaaltöötaja|,|tõlk|,|kogemusnõustaja| jne) Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ C | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ C | 0..1 | string | Text alternative for the resource
appointment | Σ | 0..* | Reference(Appointment) | The appointment that scheduled this encounter
actualPeriod |  | 0..1 | Period | When encounter started and ended? (ee TEGELIK PERIOOD. Millal kontakt algas ja lõppes)
plannedStartDate |  | 0..1 | dateTime | When the encounter is supposed to start. (ee Kontakti planeeritud algusaeg)
plannedEndDate |  | 0..1 | dateTime | When the encounter is supposed to end. (ee Kontakti planeeeritud lõpuaeg)
reason | Σ | 0..* | BackboneElement | Reason(s) for encounter (ee Põhjused, miks tervishoiukontakt toimus)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
use | Σ | 0..* | CodeableConcept | What the reason value should be used for/as Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | DiagnosticReport | EEBase Observation(1.2.1) | ImmunizationRecommendation | Procedure) | Reason the encounter takes place (core or reference) Binding: EncounterReasonCodes (preferred): Reason why the encounter takes place.
diagnosis | Σ | 0..* | BackboneElement | All diagnosis that are related to this encounter (ee Kõik diagnoosid, mis on seotud tervishoiukontaktiga.)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
condition | Σ | 0..* | CodeableReference(Condition) | The diagnosis relevant to the encounter Binding: ConditionProblemDiagnosisCodes (example)
use |  | 0..* | CodeableConcept | Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …) Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
admission |  | 0..1 | BackboneElement | Haiglaravi lõppemise tulemus - seisund, kuhu (koju/teise ttosse), asukoht, vabatekst (!?); (kas re-admissioniga võiks lahendada esmane/korduv?)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
preAdmissionIdentifier |  | 0..1 | Identifier | Pre-admission identifier
origin |  | 0..1 | Reference(EEBase Location(1.2.1) | EEBase Organization(1.2.1)) | The location/organization from which the patient came before admission
admitSource |  | 0..1 | CodeableConcept | From where patient was admitted (physician referral, transfer) Binding: AdmitSource (preferred): From where the patient was admitted.
reAdmission |  | 0..1 | CodeableConcept | Indicates that the patient is being re-admitted Binding: hl7VS-re-admissionIndicator (example): The reason for re-admission of this admission encounter.
destination |  | 0..1 | Reference(EEBase Location(1.2.1) | EEBase Organization(1.2.1)) | Location/organization to which the patient is discharged
dischargeDisposition |  | 0..1 | CodeableConcept | Category or kind of location after discharge Binding: DischargeDisposition (example): Discharge Disposition.
location |  | 0..* | BackboneElement | Physical location of encounter (ee Füüsiline asukoht kus kontakt toimus (Muuta SPD-referentsiks kui valmis!)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
location |  | 1..1 | Reference(EEBase Location(1.2.1)) | Location the encounter takes place
status |  | 0..1 | code | planned | active | reserved | completed Binding: EncounterLocationStatus (required): The status of the location.
form |  | 0..1 | CodeableConcept | The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.) Binding: LocationForm (example): Physical form of the location.
period |  | 0..1 | Period | Time period during which the patient was present at the location
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Encounter.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | FHIR Std.
Encounter.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
Encounter.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
Encounter.status | Base | required | Encounter Status | 📍5.0.0 | FHIR Std.
Encounter.class | Base | extensible | Encounter class | 📦2.0.1 | THO v7.1
Encounter.priority | Base | extensible | ActPriority | 📦3.0.0 | THO v7.1
Encounter.type | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterType | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.type:encounterRecurrence | Base | example | Encounter Type | 📍5.0.0 | FHIR Std.
Encounter.serviceType | Base | example | Service Type | 📍5.0.0 | FHIR Std.
Encounter.subjectStatus | Base | example | Encounter Subject Status | 📍5.0.0 | FHIR Std.
Encounter.participant.​type | Base | extensible | Participant Type | 📍5.0.0 | FHIR Std.
Encounter.participant.​actor.type | Base | extensible | Resource Types | 📍5.0.0 | FHIR Std.
Encounter.reason.use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
Encounter.reason.value | Base | preferred | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
Encounter.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
Encounter.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.
Encounter.admission.​admitSource | Base | preferred | Admit Source | 📍5.0.0 | FHIR Std.
Encounter.admission.​reAdmission | Base | example | hl7VS-re-admissionIndicator | 📦3.0.0 | THO v7.1
Encounter.admission.​dischargeDisposition | Base | example | Discharge Disposition | 📍5.0.0 | FHIR Std.
Encounter.location.status | Base | required | Encounter Location Status | 📍5.0.0 | FHIR Std.
Encounter.location.form | Base | example | Location Form | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Encounter | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Encounter | 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Encounter | 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 | Encounter | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Encounter | 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())`
enc-1 | error | Encounter.participant | A type must be provided when no explicit actor is specified | `actor.exists() or type.exists()`
enc-2 | error | Encounter.participant | A type cannot be provided for a patient or group participant | `actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from EEBaseEncounter

Summary

Mandatory: 3 elements
Prohibited: 6 elements

Structures

This structure refers to these other structures:

- EE MPI Patient Verified (https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient-verified)
- EEBase Patient (https://fhir.ee/base/StructureDefinition/ee-patient)
- EEBase Practitioner (https://fhir.ee/base/StructureDefinition/ee-practitioner)
- EEBase RelatedPerson (https://fhir.ee/base/StructureDefinition/ee-related-person)
- EEBase PractitionerRole (https://fhir.ee/base/StructureDefinition/ee-practitioner-role)

Extensions

This structure refers to these extensions:

- https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
- https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Encounter.identifier
- The element 1 is sliced based on the value of Encounter.type

Other representations of profile: CSV, Excel, Schematron