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 Episode of Care

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

A profile for basic Episode of Care.(ee RAVIEPISOOD)

Usages:

- Use this Profile: Tervishoiukontakt. TEST
- Refer to this Profile: EoC or Encounter reference
- Examples for this Profile: EpisodeOfCare/episodeofcare1

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
--- | --- | --- | --- | ---
EpisodeOfCare |  | 0..* | EEBaseEpisodeOfCare(1.2.1) | 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
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | S | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status | ?!S Σ | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?) Binding: EpisodeOfCareStatus (required): The status of the episode of care.
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel Binding: EpisodeOfCareStatus (required): The status of the episode of care.
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type | S Σ | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?) Binding: EpisodeOfCareType (example): The type of the episode of care.
reason | Σ | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
use | Σ | 0..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab. Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!) Binding: EncounterReasonCodes (example)
diagnosis | Σ | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
condition | Σ | 0..* | CodeableReference(Condition) | VIIDE diagnoosi-teenusele! Binding: ConditionProblemDiagnosisCodes (example)
use | Σ | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND! Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
patient | S Σ | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
managingOrganization | S Σ | 0..1 | Reference(EEBase Organization(1.2.1)) | Organization that assumes responsibility for care coordination
period | S Σ | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
EpisodeOfCare.status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.statusHistory.​status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.type | Base | example | Episode Of Care Type | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​value | Base | example | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
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().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 | 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 EEBaseEpisodeOfCare

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
EpisodeOfCare |  |  | EEBaseEpisodeOfCare(1.2.1) |
meta |  |  |  |
versionId |  | 1..1 | id | versiooni identifikaator. Automaatne versiooninumber, mis muutub iga andmekirje muudatusega (nt staatus, kuupäev, jne).
security |  | 0..* | Coding | Konfidentsiaalsus slice? patsiendile/arstile/eestkostjale
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
Slices for identifier |  | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier |  | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier |  | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status |  | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?)
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type |  | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?)
reason |  | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
use |  | 0..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab.
value |  | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!)
diagnosis |  | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
condition |  | 0..* | CodeableReference(Condition) | VIIDE diagnoosi-teenusele!
use |  | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND!
patient |  | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
period |  | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
account |  | 0..0 |  | The set of accounts that may be used for billing for this EpisodeOfCare
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
EpisodeOfCare |  | 0..* | EEBaseEpisodeOfCare(1.2.1) | 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
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 | Σ | 1..1 | id | versiooni identifikaator. Automaatne versiooninumber, mis muutub iga andmekirje muudatusega (nt staatus, kuupäev, jne).
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 | Konfidentsiaalsus slice? patsiendile/arstile/eestkostjale 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:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | S | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status | ?!S Σ | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?) Binding: EpisodeOfCareStatus (required): The status of the episode of care.
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
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
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel Binding: EpisodeOfCareStatus (required): The status of the episode of care.
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type | S Σ | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?) Binding: EpisodeOfCareType (example): The type of the episode of care.
reason | Σ | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
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..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab. Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!) Binding: EncounterReasonCodes (example)
diagnosis | Σ | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
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) | VIIDE diagnoosi-teenusele! Binding: ConditionProblemDiagnosisCodes (example)
use | Σ | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND! Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
patient | S Σ | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
managingOrganization | S Σ | 0..1 | Reference(EEBase Organization(1.2.1)) | Organization that assumes responsibility for care coordination
period | S Σ | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
referralRequest |  | 0..* | Reference(ServiceRequest) | Originating Referral Request(s)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
EpisodeOfCare.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | FHIR Std.
EpisodeOfCare.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
EpisodeOfCare.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
EpisodeOfCare.status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.statusHistory.​status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.type | Base | example | Episode Of Care Type | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​value | Base | example | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
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().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 | 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 EEBaseEpisodeOfCare

Summary

Mandatory: 2 elements(1 nested mandatory element)
Prohibited: 1 element

Structures

This structure refers to these other structures:

- EE MPI Patient Verified (https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient-verified)

Extensions

This structure refers to these extensions:

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

Slices

This structure defines the following Slices:

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

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
EpisodeOfCare |  | 0..* | EEBaseEpisodeOfCare(1.2.1) | 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
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | S | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status | ?!S Σ | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?) Binding: EpisodeOfCareStatus (required): The status of the episode of care.
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel Binding: EpisodeOfCareStatus (required): The status of the episode of care.
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type | S Σ | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?) Binding: EpisodeOfCareType (example): The type of the episode of care.
reason | Σ | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
use | Σ | 0..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab. Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!) Binding: EncounterReasonCodes (example)
diagnosis | Σ | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
condition | Σ | 0..* | CodeableReference(Condition) | VIIDE diagnoosi-teenusele! Binding: ConditionProblemDiagnosisCodes (example)
use | Σ | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND! Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
patient | S Σ | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
managingOrganization | S Σ | 0..1 | Reference(EEBase Organization(1.2.1)) | Organization that assumes responsibility for care coordination
period | S Σ | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
EpisodeOfCare.status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.statusHistory.​status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.type | Base | example | Episode Of Care Type | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​value | Base | example | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
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().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 | 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 EEBaseEpisodeOfCare

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
EpisodeOfCare |  |  | EEBaseEpisodeOfCare(1.2.1) |
meta |  |  |  |
versionId |  | 1..1 | id | versiooni identifikaator. Automaatne versiooninumber, mis muutub iga andmekirje muudatusega (nt staatus, kuupäev, jne).
security |  | 0..* | Coding | Konfidentsiaalsus slice? patsiendile/arstile/eestkostjale
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
Slices for identifier |  | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier |  | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier |  | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status |  | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?)
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type |  | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?)
reason |  | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
use |  | 0..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab.
value |  | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!)
diagnosis |  | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
condition |  | 0..* | CodeableReference(Condition) | VIIDE diagnoosi-teenusele!
use |  | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND!
patient |  | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
period |  | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
account |  | 0..0 |  | The set of accounts that may be used for billing for this EpisodeOfCare
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
EpisodeOfCare |  | 0..* | EEBaseEpisodeOfCare(1.2.1) | 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
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 | Σ | 1..1 | id | versiooni identifikaator. Automaatne versiooninumber, mis muutub iga andmekirje muudatusega (nt staatus, kuupäev, jne).
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 | Konfidentsiaalsus slice? patsiendile/arstile/eestkostjale 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:relations |  | 0..* | Reference(EE TIS Encounter | EE TIS Episode of Care) | Used when there is a need to reference encounter or episode of care URL: http://hl7.org/fhir/StructureDefinition/workflow-supportingInfo profiled by https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-eoc-or-encounter-reference
extension:eocName |  | 0..1 | string | Used when there is a need to add textual summary, name or note related to patient's care. URL: https://fhir.ee/encounter-episode/StructureDefinition/ee-tis-summary
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored
Slices for identifier | S | 2..* | Identifier | Identifier. (ee Unikaalne identifikaator, mis määratleb konkreetse raviepisoodi. Luuakse automaatselt ja jääb püsima kogu elutsükli jooksul.) Slice: Unordered, Open by value:system
identifier:ttoLocalIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
identifier:crossTtoIdentifier | S | 1..1 | Identifier | Business Identifier(s) relevant for this EpisodeOfCare
status | ?!S Σ | 1..1 | code | (ee Näitab episoodi hetkeolekut ehk millises olekutsüklis see parajasti on. Kohustuslik väli.HL7 LOENDi tõlge?) Binding: EpisodeOfCareStatus (required): The status of the episode of care.
statusHistory |  | 0..* | BackboneElement | (ee Loetleb varasemad olekud koos ajavahemikega, mil need kehtisid. Tekib süsteemis automaatselt muudatuste põhjal.)
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
status |  | 1..1 | code | Varasem Episoodi olek.Sama loend nagu episoodi staatusel Binding: EpisodeOfCareStatus (required): The status of the episode of care.
period |  | 1..1 | Period | Varasema Episoodi oleku periood (alguse ja lõpu kuupäev ning kellaajad.)
type | S Σ | 0..* | CodeableConcept | (ee Kirjeldab, millise ravi- või hooldustüübiga on tegemist. Võib olla mitu paralleelselt. LOEND?) Binding: EpisodeOfCareType (example): The type of the episode of care.
reason | Σ | 0..* | BackboneElement | (ee Selgitab, miks raviepisood loodi.)
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..1 | CodeableConcept | Määratleb põhjuse kasutusotstarbe, st millist rolli konkreetne põhjus episoodis täidab. Binding: EncounterReasonUse (example)
value | Σ | 0..* | CodeableReference(Condition | Procedure | EEBase Observation(1.2.1) | EEBase HealthcareService(1.2.1)) | Tuletatakse Episoodiga seotud Tervishoiukontaktide diagnoosi peal (RHK 10 loendi järgi). (VIIDE diagnoositeenusele!) Binding: EncounterReasonCodes (example)
diagnosis | Σ | 0..* | BackboneElement | (ee Loetleb diagnoosid või seisundid, mis on episoodiga seotud. Iga diagnoosi juures saab määrata rolli ja tähtsuse.)
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) | VIIDE diagnoosi-teenusele! Binding: ConditionProblemDiagnosisCodes (example)
use | Σ | 0..1 | CodeableConcept | Määrab diagnoosi rolli kogu Episoodi kontekstis (nt juhtiv vs kaasuv seisund). Võimaldab eristada põhiteekonda toetavaid või komplitseerivaid diagnoose.Kasutatakse eelkõige raviteekonna haldamisel ja kliinilisel analüüsil. LOEND! Binding: EncounterDiagnosisUse (preferred): The type of diagnosis this condition represents.
patient | S Σ | 1..1 | Reference(EE MPI Patient Verified) | The patient who is the focus of this episode of care
managingOrganization | S Σ | 0..1 | Reference(EEBase Organization(1.2.1)) | Organization that assumes responsibility for care coordination
period | S Σ | 0..1 | Period | (ee Määratleb episoodi alguse ja lõpu kuupäeva ning kellaaja. Vajalik kestvuse ja aruandluse jaoks.)
referralRequest |  | 0..* | Reference(ServiceRequest) | Originating Referral Request(s)
careManager |  | 0..1 | Reference(EEBase Practitioner(1.2.1) | EEBase PractitionerRole(1.2.1)) | TTO (nt arst), kes vastutab patsiendi ravi koordineerimise eest episoodi vältel. TTO IS-i ja TTO sisese tööprotsessi kokkuleppe küsimus. Viide TTO-le vastavalt SPD andmestikule. Ei ole manuaalselt täidetav vaid TTO IS-is poolt automaatselt defineeritav ja määratav.
careTeam |  | 0..* | Reference(CareTeam) | (ee Episoodiga seotud tervishoiutöötajad või meeskonnad.)
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
EpisodeOfCare.meta.security | Base | extensible | All Security Labels | 📍5.0.0 | FHIR Std.
EpisodeOfCare.meta.tag | Base | example | Common Tags | 📍5.0.0 | FHIR Std.
EpisodeOfCare.language | Base | required | All Languages | 📍5.0.0 | FHIR Std.
EpisodeOfCare.status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.statusHistory.​status | Base | required | Episode Of Care Status | 📍5.0.0 | FHIR Std.
EpisodeOfCare.type | Base | example | Episode Of Care Type | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​use | Base | example | Encounter Reason Use | 📍5.0.0 | FHIR Std.
EpisodeOfCare.reason.​value | Base | example | Encounter Reason Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​condition | Base | example | Condition/Problem/Diagnosis Codes | 📍5.0.0 | FHIR Std.
EpisodeOfCare.diagnosis.​use | Base | preferred | Encounter Diagnosis Use | 📍5.0.0 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
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().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 | 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 EEBaseEpisodeOfCare

Summary

Mandatory: 2 elements(1 nested mandatory element)
Prohibited: 1 element

Structures

This structure refers to these other structures:

- EE MPI Patient Verified (https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient-verified)

Extensions

This structure refers to these extensions:

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

Slices

This structure defines the following Slices:

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

Other representations of profile: CSV, Excel, Schematron