{
"description": "Readiness: [In review](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-episodeofcare).\\n\\nProfile base: FHIR R4 EpisodeOfCare (http://hl7.org/fhir/StructureDefinition/EpisodeOfCare).\\n\\nA dental care-responsibility episode for one patient and one managing organisation. Reuse it for related follow-up. An inter-organisation clinical journey is linked through originating ServiceRequests and each organisation retains its own EpisodeOfCare identity and responsibility.",
"_filename": "digidot-EpisodeOfCare-no.StructureDefinition.json",
"package_name": "novari.digidot",
"date": "2026-09-29T13:19:09Z",
"derivation": "constraint",
"publisher": "Novari AS - DigiDOT",
"fhirVersion": "4.0.1",
"purpose": "EpisodeOfCare represents an explicitly defined organisational responsibility for a patient over time. It is optional in the core DigiDOT planning/contact profiles and is not required merely to connect a request, appointment and contact. When a workflow represents that responsibility, related activity references the appropriate shared episode consistently. Reuse its identity across visits, calendar years, clinician changes and EHR suppliers. Do not fabricate responsibility dates or create one episode per booking.",
"name": "DigidotEpisodeofcareNo",
"abstract": false,
"type": "EpisodeOfCare",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "DigiDOT EpisodeOfCare (NO)",
"package_version": "0.3.0",
"status": "draft",
"id": "13a8d9ec-942b-4129-8dc3-220a2d839f9e",
"kind": "resource",
"url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"version": "0.6.5",
"differential": {
"element": [ {
"id": "EpisodeOfCare",
"path": "EpisodeOfCare",
"constraint": [ {
"key": "eoc-start-for-responsibility",
"human": "Active, onhold and finished episodes require a responsibility start.",
"severity": "error",
"expression": "(status != 'active' and status != 'onhold' and status != 'finished') or period.start.exists()"
}, {
"key": "eoc-finished-end",
"human": "A finished care episode requires a responsibility end.",
"severity": "error",
"expression": "status != 'finished' or period.end.exists()"
} ]
}, {
"id": "EpisodeOfCare.implicitRules",
"max": "0",
"path": "EpisodeOfCare.implicitRules"
}, {
"id": "EpisodeOfCare.contained",
"max": "0",
"path": "EpisodeOfCare.contained"
}, {
"id": "EpisodeOfCare.extension",
"max": "0",
"path": "EpisodeOfCare.extension"
}, {
"id": "EpisodeOfCare.modifierExtension",
"max": "0",
"path": "EpisodeOfCare.modifierExtension"
}, {
"id": "EpisodeOfCare.identifier",
"max": "*",
"min": 0,
"path": "EpisodeOfCare.identifier",
"short": "Stable source business identifiers when available",
"comment": "MustSupport requires producers to support conveying available source identifiers and receivers to support preserving them; it does not require inventing an identifier when none is available. Any additional identifier-assignment and matching requirements belong in the exchange contract. An integration-assigned identifier requires governed assignment and a persistent mapping across retries; never generate a fresh identifier on each submission. Different records retain their own identities, even when they share the same patient or care episode. Resource references and FHIR server id rules are unchanged.",
"definition": "Stable business identifiers for this record. If the source EHR or external system has a stable business identifier, it SHALL be included and preserved with its assigning system and value. The element is optional when no such identifier is available. Each supplied identifier SHALL contain system and value. Do not copy the local FHIR resource id merely to populate this element.",
"mustSupport": true
}, {
"id": "EpisodeOfCare.identifier.system",
"max": "1",
"min": 1,
"path": "EpisodeOfCare.identifier.system"
}, {
"id": "EpisodeOfCare.identifier.value",
"max": "1",
"min": 1,
"path": "EpisodeOfCare.identifier.value"
}, {
"id": "EpisodeOfCare.status",
"path": "EpisodeOfCare.status",
"short": "Lifecycle of the organisation care responsibility"
}, {
"id": "EpisodeOfCare.statusHistory",
"path": "EpisodeOfCare.statusHistory",
"short": "Source-recorded changes to care responsibility",
"definition": "Optional source lifecycle intervals. Preserve when available; server resource history does not automatically reconstruct them."
}, {
"id": "EpisodeOfCare.statusHistory.extension",
"max": "0",
"path": "EpisodeOfCare.statusHistory.extension"
}, {
"id": "EpisodeOfCare.statusHistory.modifierExtension",
"max": "0",
"path": "EpisodeOfCare.statusHistory.modifierExtension"
}, {
"id": "EpisodeOfCare.type",
"max": "*",
"min": 0,
"path": "EpisodeOfCare.type",
"short": "Classification of the care responsibility",
"binding": {
"strength": "preferred",
"valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-episode-of-care-type"
},
"definition": "Classification of the responsibility represented by this episode. Use the draft common categories where they fit and preserve more specific source meaning through a governed mapping. Type does not replace diagnosis, patient health-group classification or access-control decisions.",
"mustSupport": true
}, {
"id": "EpisodeOfCare.diagnosis",
"path": "EpisodeOfCare.diagnosis",
"definition": "Optional Conditions explaining the course of care. Not an exhaustive list of findings from all contacts; those retain their own Encounter links."
}, {
"id": "EpisodeOfCare.diagnosis.extension",
"max": "0",
"path": "EpisodeOfCare.diagnosis.extension"
}, {
"id": "EpisodeOfCare.diagnosis.modifierExtension",
"max": "0",
"path": "EpisodeOfCare.diagnosis.modifierExtension"
}, {
"id": "EpisodeOfCare.diagnosis.condition",
"path": "EpisodeOfCare.diagnosis.condition",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no" ]
} ],
"comment": "Use a literal reference to a separately stored resource conforming to the permitted target profile. Identifier-only and contained references are not permitted. The receiving service must check target existence and profile conformance.",
"constraint": [ {
"key": "episodeofcare-diagnosis-condition-literal",
"human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
"source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"severity": "error",
"expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())"
} ]
}, {
"id": "EpisodeOfCare.diagnosis.condition.reference",
"min": 1,
"path": "EpisodeOfCare.diagnosis.condition.reference"
}, {
"id": "EpisodeOfCare.diagnosis.condition.identifier",
"max": "0",
"path": "EpisodeOfCare.diagnosis.condition.identifier"
}, {
"id": "EpisodeOfCare.diagnosis.role",
"max": "0",
"path": "EpisodeOfCare.diagnosis.role"
}, {
"id": "EpisodeOfCare.diagnosis.rank",
"max": "0",
"path": "EpisodeOfCare.diagnosis.rank"
}, {
"id": "EpisodeOfCare.patient",
"min": 1,
"path": "EpisodeOfCare.patient",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient" ]
} ],
"comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
"constraint": [ {
"key": "episodeofcare-patient-literal",
"human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
"source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"severity": "error",
"expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())"
} ]
}, {
"id": "EpisodeOfCare.patient.reference",
"max": "1",
"min": 1,
"path": "EpisodeOfCare.patient.reference"
}, {
"id": "EpisodeOfCare.patient.identifier",
"max": "0",
"min": 0,
"path": "EpisodeOfCare.patient.identifier"
}, {
"id": "EpisodeOfCare.managingOrganization",
"min": 1,
"path": "EpisodeOfCare.managingOrganization",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Organization" ]
} ],
"comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
"constraint": [ {
"key": "episodeofcare-managingorganization-literal",
"human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
"source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"severity": "error",
"expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())"
} ],
"definition": "Organisation whose responsibility this EpisodeOfCare records. Distinct organisations with their own care responsibility use distinct EpisodeOfCare resources linked through the referral request. A clinician, specialty or room change within the same responsibility does not by itself start a new episode.",
"mustSupport": true
}, {
"id": "EpisodeOfCare.managingOrganization.reference",
"max": "1",
"min": 1,
"path": "EpisodeOfCare.managingOrganization.reference"
}, {
"id": "EpisodeOfCare.managingOrganization.identifier",
"max": "0",
"min": 0,
"path": "EpisodeOfCare.managingOrganization.identifier"
}, {
"id": "EpisodeOfCare.period",
"path": "EpisodeOfCare.period",
"definition": "Period of care responsibility, not the first and last booked times. Active, onhold and finished episodes require a start; finished episodes require an end. Do not invent dates for source records with unknown timing.",
"mustSupport": true
}, {
"id": "EpisodeOfCare.referralRequest",
"path": "EpisodeOfCare.referralRequest",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no" ]
} ],
"comment": "Use a literal reference to a separately stored resource conforming to the permitted target profile. Identifier-only and contained references are not permitted. The receiving service must check target existence and profile conformance.",
"constraint": [ {
"key": "episodeofcare-referralrequest-literal",
"human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
"source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"severity": "error",
"expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())"
} ],
"definition": "The incoming ServiceRequests that initiated this organisation care responsibility. An outgoing referral belongs on the receiving episode, not as the originating referral of the sending episode. Follow ServiceRequest.supportingInfo for the selected source care episode(s), and ServiceRequest.encounter for the contact at which the request arose. Do not invent an originating contact for referrals received without one.",
"mustSupport": true
}, {
"id": "EpisodeOfCare.referralRequest.reference",
"min": 1,
"path": "EpisodeOfCare.referralRequest.reference"
}, {
"id": "EpisodeOfCare.referralRequest.identifier",
"max": "0",
"path": "EpisodeOfCare.referralRequest.identifier"
}, {
"id": "EpisodeOfCare.careManager",
"max": "1",
"path": "EpisodeOfCare.careManager",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner", "http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole" ]
} ],
"comment": "Use a literal Reference.reference to a separately stored resource conforming to the permitted national target profile. Identifier-only and contained references are not permitted. Official identifiers belong on the target resource. Reuse a confirmed resource in central storage; if no matching resource exists, register it before persisting the clinical reference. The receiving service must check target existence and profile conformance; the profile alone does not perform identity matching or prove that a resource exists in central storage.",
"constraint": [ {
"key": "episodeofcare-caremanager-literal",
"human": "A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted.",
"source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no",
"severity": "error",
"expression": "($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())"
} ],
"definition": "The practitioner that is the care manager/care coordinator for this patient."
}, {
"id": "EpisodeOfCare.careManager.reference",
"max": "1",
"min": 1,
"path": "EpisodeOfCare.careManager.reference"
}, {
"id": "EpisodeOfCare.careManager.identifier",
"max": "0",
"min": 0,
"path": "EpisodeOfCare.careManager.identifier"
}, {
"id": "EpisodeOfCare.team",
"max": "0",
"path": "EpisodeOfCare.team"
}, {
"id": "EpisodeOfCare.account",
"max": "0",
"path": "EpisodeOfCare.account"
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
}