This page is part of the FUT Infrastructure (v6.0.2: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
| Official URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare | Version: 6.0.2 | |||
| Active as of 2025-10-30 | Computable Name: ehealth-episodeofcare | |||
An EpisodeOfCare is an association between a patient and an organization / healthcare provider(s) during which time encounters may occur.
In scope of the eHealth infrastructure, creation of an EpisodeOfCare resource is triggered by
 a number of actions taking place out-of-band, that is, outside the scope of the eHealth
 infrastructure. Firstly, a patient is diagnosed with one or more conditions; then assessed
 as fulfilling criteria for enrollment in a telemedical care program leading to a referral
 being made to an organization providing such program. At this point a Practitioner within
 the providing organization creates an EpisodeOfCare referring to the Patient and the
 corresponding Conditions, all in the eHealth infrastructure. Created with status planned,
 the Practitioner updates the status to active once:
team.The EpisodeOfCare functions as a representation of a program while the activities comprising it are defined in one or more CarePlan resources.
An EpisodeOfCare is required to have exactly one reference to the Organization responsible 
for the treatment through the element ehealth-episodeofcare-caremanagerOrganization.
The element managingOrganization references the Organization which is data controller for
the EpisodeOfCare and all other resources directly or indirectly referencing it.
The CareTeam(s) currently responsible for the EpisodeOfCare are referenced in element team.
Changes in CareTeam references are automatically maintained in the element ehealth-teamHistory.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints    Filter:   | 
|---|---|---|---|---|
|   EpisodeOfCare | 0..* | EpisodeOfCare | An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility | |
|    implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | 
|    Slices for extension | 1..* | Extension | Extension Slice: Unordered, Open by value:url | |
|     extension:caremanagerOrganization | 1..1 | Reference(ehealth-organization) {r} | Reference to caremanagers organization URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization | |
|     extension:teamHistory | 0..* | (Complex) | History of assigned careTeam URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory | |
|     extension:episodeofcareStatusschedule | 0..* | (Complex) | Status Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-statusschedule | |
|     extension:teamschedule | 0..* | (Complex) | Team Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamschedule | |
|     extension:participant | 0..* | (Complex) | Who or what is participating URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant | |
|      Slices for extension | Content/Rules for all slices | |||
|       extension:function | 0..1 | Extension | Extension | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "function" | |
|        value[x] | 0..1 | Coding | Value of extension Binding: Participant Function (required) | |
|       extension:actor | 0..1 | Extension | The participant | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "actor" | |
|       extension:actorref | 0..1 | Extension | The participant ref (string) | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "actorref" | |
|      url | 1..1 | uri | "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant" | |
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|    status | ?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | 
|    diagnosis | Σ | 1..* | BackboneElement | The list of diagnosis relevant to this episode of care | 
|     modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | 
|     condition | Σ | 1..1 | Reference(ehealth-condition) {r} | Conditions/problems/diagnoses this episode of care is for | 
|    patient | Σ | 1..1 | Reference(ehealth-patient) {r} | The patient who is the focus of this episode of care | 
|    managingOrganization | Σ | 1..1 | Reference(ehealth-organization) {r} | Organization that assumes care | 
|    period | Σ | 1..1 | Period | Interval during responsibility is assumed | 
|    team | 0..* | Reference(ehealth-careteam) {r} | Other practitioners facilitating this episode of care | |
|  Documentation for this format | ||||
| Path | Conformance | ValueSet | URI | 
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | |
| EpisodeOfCare.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | 
| Id | Grade | Path(s) | Details | Requirements | 
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | 
This structure is derived from EpisodeOfCare
| Path | Conformance | ValueSet | URI | 
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | 
| Name | Flags | Card. | Type | Description & Constraints    Filter:   | ||||
|---|---|---|---|---|---|---|---|---|
|   EpisodeOfCare | 0..* | EpisodeOfCare | An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility | |||||
|    id | Σ | 0..1 | id | Logical id of this artifact | ||||
|    meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
|    implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
|    language | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language. 
 | |||||
|    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 | 1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
|     extension:caremanagerOrganization | 1..1 | Reference(ehealth-organization) {r} | Reference to caremanagers organization URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization | |||||
|     extension:teamHistory | 0..* | (Complex) | History of assigned careTeam URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory | |||||
|     extension:episodeofcareStatusschedule | 0..* | (Complex) | Status Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-statusschedule | |||||
|     extension:teamschedule | 0..* | (Complex) | Team Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamschedule | |||||
|     extension:participant | 0..* | (Complex) | Who or what is participating URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant | |||||
|      id | 0..1 | string | Unique id for inter-element referencing | |||||
|      Slices for extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
|       extension:function | 0..1 | Extension | Extension | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "function" | |||||
|        value[x] | 0..1 | Coding | Value of extension Binding: Participant Function (required) | |||||
|       extension:actor | 0..1 | Extension | The participant | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "actor" | |||||
|        value[x] | 0..1 | Reference(CareTeam | Practitioner) {r} | Value of extension | |||||
|       extension:actorref | 0..1 | Extension | The participant ref (string) | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "actorref" | |||||
|        value[x] | 0..1 | string | Value of extension | |||||
|      url | 1..1 | uri | "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant" | |||||
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
|    identifier | 0..* | Identifier | Business Identifier(s) relevant for this EpisodeOfCare | |||||
|    status | ?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | ||||
|    statusHistory | 0..* | BackboneElement | Past list of status codes (the current status may be included to cover the start date of the status) | |||||
|     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 | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | |||||
|     period | 1..1 | Period | Duration the EpisodeOfCare was in the specified status | |||||
|    type | Σ | 0..* | CodeableConcept | Type/class  - e.g. specialist referral, disease management Binding: EpisodeOfCareType (example): The type of the episode of care. | ||||
|    diagnosis | Σ | 1..* | BackboneElement | The list of diagnosis relevant to this episode of care | ||||
|     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 | Σ | 1..1 | Reference(ehealth-condition) {r} | Conditions/problems/diagnoses this episode of care is for | ||||
|     role | Σ | 0..1 | CodeableConcept | Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …) Binding: DiagnosisRole (preferred): The type of diagnosis this condition represents. | ||||
|     rank | Σ | 0..1 | positiveInt | Ranking of the diagnosis (for each role type) | ||||
|    patient | Σ | 1..1 | Reference(ehealth-patient) {r} | The patient who is the focus of this episode of care | ||||
|    managingOrganization | Σ | 1..1 | Reference(ehealth-organization) {r} | Organization that assumes care | ||||
|    period | Σ | 1..1 | Period | Interval during responsibility is assumed | ||||
|    referralRequest | 0..* | Reference(ServiceRequest) | Originating Referral Request(s) | |||||
|    team | 0..* | Reference(ehealth-careteam) {r} | Other practitioners facilitating this episode of care | |||||
|  Documentation for this format | ||||||||
| Path | Conformance | ValueSet | URI | |||
| EpisodeOfCare.language | preferred | CommonLanguages http://hl7.org/fhir/ValueSet/languagesFrom the FHIR Standard 
 | ||||
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | ||||
| EpisodeOfCare.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | ||||
| EpisodeOfCare.statusHistory.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | ||||
| EpisodeOfCare.type | example | EpisodeOfCareType http://hl7.org/fhir/ValueSet/episodeofcare-typeFrom the FHIR Standard | ||||
| EpisodeOfCare.diagnosis.role | preferred | DiagnosisRole http://hl7.org/fhir/ValueSet/diagnosis-roleFrom the FHIR Standard | 
| Id | Grade | Path(s) | Details | Requirements | 
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | 
This structure is derived from EpisodeOfCare
Summary
Mandatory: 5 elements
 Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints    Filter:   | 
|---|---|---|---|---|
|   EpisodeOfCare | 0..* | EpisodeOfCare | An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility | |
|    implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | 
|    Slices for extension | 1..* | Extension | Extension Slice: Unordered, Open by value:url | |
|     extension:caremanagerOrganization | 1..1 | Reference(ehealth-organization) {r} | Reference to caremanagers organization URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization | |
|     extension:teamHistory | 0..* | (Complex) | History of assigned careTeam URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory | |
|     extension:episodeofcareStatusschedule | 0..* | (Complex) | Status Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-statusschedule | |
|     extension:teamschedule | 0..* | (Complex) | Team Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamschedule | |
|     extension:participant | 0..* | (Complex) | Who or what is participating URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant | |
|      Slices for extension | Content/Rules for all slices | |||
|       extension:function | 0..1 | Extension | Extension | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "function" | |
|        value[x] | 0..1 | Coding | Value of extension Binding: Participant Function (required) | |
|       extension:actor | 0..1 | Extension | The participant | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "actor" | |
|       extension:actorref | 0..1 | Extension | The participant ref (string) | |
|        extension | 0..0 | |||
|        url | 1..1 | uri | "actorref" | |
|      url | 1..1 | uri | "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant" | |
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | 
|    status | ?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | 
|    diagnosis | Σ | 1..* | BackboneElement | The list of diagnosis relevant to this episode of care | 
|     modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | 
|     condition | Σ | 1..1 | Reference(ehealth-condition) {r} | Conditions/problems/diagnoses this episode of care is for | 
|    patient | Σ | 1..1 | Reference(ehealth-patient) {r} | The patient who is the focus of this episode of care | 
|    managingOrganization | Σ | 1..1 | Reference(ehealth-organization) {r} | Organization that assumes care | 
|    period | Σ | 1..1 | Period | Interval during responsibility is assumed | 
|    team | 0..* | Reference(ehealth-careteam) {r} | Other practitioners facilitating this episode of care | |
|  Documentation for this format | ||||
| Path | Conformance | ValueSet | URI | 
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | |
| EpisodeOfCare.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | 
| Id | Grade | Path(s) | Details | Requirements | 
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | 
Differential View
This structure is derived from EpisodeOfCare
| Path | Conformance | ValueSet | URI | 
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | 
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints    Filter:   | ||||
|---|---|---|---|---|---|---|---|---|
|   EpisodeOfCare | 0..* | EpisodeOfCare | An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility | |||||
|    id | Σ | 0..1 | id | Logical id of this artifact | ||||
|    meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
|    implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
|    language | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language. 
 | |||||
|    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 | 1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
|     extension:caremanagerOrganization | 1..1 | Reference(ehealth-organization) {r} | Reference to caremanagers organization URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization | |||||
|     extension:teamHistory | 0..* | (Complex) | History of assigned careTeam URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamHistory | |||||
|     extension:episodeofcareStatusschedule | 0..* | (Complex) | Status Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-statusschedule | |||||
|     extension:teamschedule | 0..* | (Complex) | Team Schedule URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-teamschedule | |||||
|     extension:participant | 0..* | (Complex) | Who or what is participating URL: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant | |||||
|      id | 0..1 | string | Unique id for inter-element referencing | |||||
|      Slices for extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
|       extension:function | 0..1 | Extension | Extension | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "function" | |||||
|        value[x] | 0..1 | Coding | Value of extension Binding: Participant Function (required) | |||||
|       extension:actor | 0..1 | Extension | The participant | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "actor" | |||||
|        value[x] | 0..1 | Reference(CareTeam | Practitioner) {r} | Value of extension | |||||
|       extension:actorref | 0..1 | Extension | The participant ref (string) | |||||
|        id | 0..1 | string | Unique id for inter-element referencing | |||||
|        extension | 0..0 | |||||||
|        url | 1..1 | uri | "actorref" | |||||
|        value[x] | 0..1 | string | Value of extension | |||||
|      url | 1..1 | uri | "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-participant" | |||||
|    modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
|    identifier | 0..* | Identifier | Business Identifier(s) relevant for this EpisodeOfCare | |||||
|    status | ?!Σ | 1..1 | code | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | ||||
|    statusHistory | 0..* | BackboneElement | Past list of status codes (the current status may be included to cover the start date of the status) | |||||
|     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 | planned | waitlist | active | onhold | finished | cancelled | entered-in-error Binding: EpisodeOfCareStatus (required): The status of the episode of care. | |||||
|     period | 1..1 | Period | Duration the EpisodeOfCare was in the specified status | |||||
|    type | Σ | 0..* | CodeableConcept | Type/class  - e.g. specialist referral, disease management Binding: EpisodeOfCareType (example): The type of the episode of care. | ||||
|    diagnosis | Σ | 1..* | BackboneElement | The list of diagnosis relevant to this episode of care | ||||
|     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 | Σ | 1..1 | Reference(ehealth-condition) {r} | Conditions/problems/diagnoses this episode of care is for | ||||
|     role | Σ | 0..1 | CodeableConcept | Role that this diagnosis has within the episode of care (e.g. admission, billing, discharge …) Binding: DiagnosisRole (preferred): The type of diagnosis this condition represents. | ||||
|     rank | Σ | 0..1 | positiveInt | Ranking of the diagnosis (for each role type) | ||||
|    patient | Σ | 1..1 | Reference(ehealth-patient) {r} | The patient who is the focus of this episode of care | ||||
|    managingOrganization | Σ | 1..1 | Reference(ehealth-organization) {r} | Organization that assumes care | ||||
|    period | Σ | 1..1 | Period | Interval during responsibility is assumed | ||||
|    referralRequest | 0..* | Reference(ServiceRequest) | Originating Referral Request(s) | |||||
|    team | 0..* | Reference(ehealth-careteam) {r} | Other practitioners facilitating this episode of care | |||||
|  Documentation for this format | ||||||||
| Path | Conformance | ValueSet | URI | |||
| EpisodeOfCare.language | preferred | CommonLanguages http://hl7.org/fhir/ValueSet/languagesFrom the FHIR Standard 
 | ||||
| EpisodeOfCare.extension:participant.extension:function.value[x] | required | ParticipantFunction(a valid code from Participant Function) http://ehealth.sundhed.dk/vs/participant-functionFrom this IG | ||||
| EpisodeOfCare.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | ||||
| EpisodeOfCare.statusHistory.status | required | EpisodeOfCareStatus(a valid code from Episode Of Care Status) http://hl7.org/fhir/ValueSet/episode-of-care-status|4.0.1From the FHIR Standard | ||||
| EpisodeOfCare.type | example | EpisodeOfCareType http://hl7.org/fhir/ValueSet/episodeofcare-typeFrom the FHIR Standard | ||||
| EpisodeOfCare.diagnosis.role | preferred | DiagnosisRole http://hl7.org/fhir/ValueSet/diagnosis-roleFrom the FHIR Standard | 
| Id | Grade | Path(s) | Details | Requirements | 
| dom-2 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
| dom-3 | error | EpisodeOfCare | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
| dom-4 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
| dom-5 | error | EpisodeOfCare | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
| dom-6 | best practice | EpisodeOfCare | A resource should have narrative for robust management : text.`div`.exists() | |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() | 
This structure is derived from EpisodeOfCare
Summary
Mandatory: 5 elements
 Prohibited: 2 elements
Structures
This structure refers to these other structures:
Extensions
This structure refers to these extensions:
Other representations of profile: CSV, Excel, Schematron