DIPS Core Implementation Guide
0.1.0 - ci-build Norway

DIPS Core Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: DIPSHospitalStayEncounter

Official URL: http://dips.no/fhir/R4/StructureDefinition/DIPSHospitalStayEncounter Version: 0.1.0
Draft as of 2026-09-03 Computable Name: DIPSHospitalStayEncounter

Usages:

  • This Profile is not used by any profiles in this Specification

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.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter An interaction during which services are provided to the patient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 1..1 Identifier Identifier(s) by which this encounter is known
.... system Σ 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value Σ 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Example General: 123456
... status ?!Σ 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
.... code Σ 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.3

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().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 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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter An interaction during which services are provided to the patient
... implicitRules 0..0 A set of rules under which this content was created
... language 0..0 Language of the resource content
... text 0..0 Text summary of the resource, for human interpretation
... extension 0..0 Extension
... identifier 1..1 Identifier Identifier(s) by which this encounter is known
.... id 0..0 Unique id for inter-element referencing
.... use 0..0 usual | official | temp | secondary | old (If known)
.... type 0..0 Description of identifier
.... system 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
.... period 0..0 Time period when id is/was valid for use
.... assigner 0..0 Organization that issued id (may be just text)
... status 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
... statusHistory 0..0 List of past encounter statuses
... class 1..1 Coding Classification of patient encounter
Binding: DIPSEncounterV3 (required)
.... id 0..0 Unique id for inter-element referencing
.... version 0..0 Version of the system - if relevant
.... code 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)
.... userSelected 0..0 If this coding was chosen directly by the user
... classHistory 0..0 List of past encounter classes
... type 0..0 Specific type of encounter
... serviceType 0..0 Specific type of service
... priority 0..0 Indicates the urgency of the encounter
... subject 0..0 The patient or group present at the encounter
... episodeOfCare 0..0 Episode(s) of care that this encounter should be recorded against
... basedOn 0..0 The ServiceRequest that initiated this encounter
... participant 0..0 List of participants involved in the encounter
... appointment 0..0 The appointment that scheduled this encounter
... period 0..0 The start and end time of the encounter
... length 0..0 Quantity of time the encounter lasted (less time absent)
... reasonCode 0..0 Coded reason the encounter takes place
... reasonReference 0..0 Reason the encounter takes place (reference)
... diagnosis 0..0 The list of diagnosis relevant to this encounter
... account 0..0 The set of accounts that may be used for billing for this Encounter
... hospitalization 0..0 Details about the admission to a healthcare service
... location 0..0 List of locations where the patient has been
... serviceProvider 0..0 The organization (facility) responsible for this encounter
... partOf 0..0 Another Encounter this encounter is part of

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter 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
... contained 0..* Resource Contained, inline Resources
... identifier Σ 1..1 Identifier Identifier(s) by which this encounter is known
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value Σ 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Example General: 123456
... status ?!Σ 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
... class Σ 1..1 Coding Classification of patient encounter
Binding: DIPSEncounterV3 (required)
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 0..1 uri Identity of the terminology system
.... code Σ 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)
.... display Σ 0..1 string Representation defined by the system

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.3
Encounter.participant.​type Base extensible Participant type 📍4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base preferred Admit source 📍4.0.1 FHIR Std.
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦3.0.0 THO v7.3
Encounter.hospitalization.​dietPreference Base example Diet 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📍4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📍4.0.1 FHIR Std.
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📍4.0.1 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().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 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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Encounter

Summary

Mandatory: 1 element
Fixed: 1 element
Prohibited: 32 elements

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter An interaction during which services are provided to the patient
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 1..1 Identifier Identifier(s) by which this encounter is known
.... system Σ 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value Σ 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Example General: 123456
... status ?!Σ 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
.... code Σ 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.3

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().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 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())
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 Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter An interaction during which services are provided to the patient
... implicitRules 0..0 A set of rules under which this content was created
... language 0..0 Language of the resource content
... text 0..0 Text summary of the resource, for human interpretation
... extension 0..0 Extension
... identifier 1..1 Identifier Identifier(s) by which this encounter is known
.... id 0..0 Unique id for inter-element referencing
.... use 0..0 usual | official | temp | secondary | old (If known)
.... type 0..0 Description of identifier
.... system 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
.... period 0..0 Time period when id is/was valid for use
.... assigner 0..0 Organization that issued id (may be just text)
... status 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
... statusHistory 0..0 List of past encounter statuses
... class 1..1 Coding Classification of patient encounter
Binding: DIPSEncounterV3 (required)
.... id 0..0 Unique id for inter-element referencing
.... version 0..0 Version of the system - if relevant
.... code 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)
.... userSelected 0..0 If this coding was chosen directly by the user
... classHistory 0..0 List of past encounter classes
... type 0..0 Specific type of encounter
... serviceType 0..0 Specific type of service
... priority 0..0 Indicates the urgency of the encounter
... subject 0..0 The patient or group present at the encounter
... episodeOfCare 0..0 Episode(s) of care that this encounter should be recorded against
... basedOn 0..0 The ServiceRequest that initiated this encounter
... participant 0..0 List of participants involved in the encounter
... appointment 0..0 The appointment that scheduled this encounter
... period 0..0 The start and end time of the encounter
... length 0..0 Quantity of time the encounter lasted (less time absent)
... reasonCode 0..0 Coded reason the encounter takes place
... reasonReference 0..0 Reason the encounter takes place (reference)
... diagnosis 0..0 The list of diagnosis relevant to this encounter
... account 0..0 The set of accounts that may be used for billing for this Encounter
... hospitalization 0..0 Details about the admission to a healthcare service
... location 0..0 List of locations where the patient has been
... serviceProvider 0..0 The organization (facility) responsible for this encounter
... partOf 0..0 Another Encounter this encounter is part of

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter 0..* Encounter 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
... contained 0..* Resource Contained, inline Resources
... identifier Σ 1..1 Identifier Identifier(s) by which this encounter is known
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 0..1 uri DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Fixed Value: http://dips.no/fhir/namingsystem/dips-hospitalstayid
.... value Σ 0..1 string DIPS: hard coded value 'http://dips.no/fhir/namingsystem/dips/hospitalstayid' for Hospital Stay ID
Example General: 123456
... status ?!Σ 1..1 code planned | arrived | triaged | in-progress | onleave | finished | cancelled +
Binding: EncounterStatus (required)
... class Σ 1..1 Coding Classification of patient encounter
Binding: DIPSEncounterV3 (required)
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 0..1 uri Identity of the terminology system
.... code Σ 0..1 code Symbol in syntax defined by the system
Binding: DIPSEncounterV3 (required)
.... display Σ 0..1 string Representation defined by the system

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.status Base required EncounterStatus 📦4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.class.code Base required DIPSEncounterV3 📦0.1.0 This IG
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v7.3
Encounter.participant.​type Base extensible Participant type 📍4.0.1 FHIR Std.
Encounter.diagnosis.​use Base preferred DiagnosisRole 📍4.0.1 FHIR Std.
Encounter.hospitalization.​admitSource Base preferred Admit source 📍4.0.1 FHIR Std.
Encounter.hospitalization.​reAdmission Base example hl7VS-re-admissionIndicator 📦3.0.0 THO v7.3
Encounter.hospitalization.​dietPreference Base example Diet 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialCourtesy Base preferred Special courtesy 📍4.0.1 FHIR Std.
Encounter.hospitalization.​specialArrangement Base preferred Special arrangements 📍4.0.1 FHIR Std.
Encounter.hospitalization.​dischargeDisposition Base example Discharge disposition 📍4.0.1 FHIR Std.
Encounter.location.status Base required EncounterLocationStatus 📍4.0.1 FHIR Std.
Encounter.location.physicalType Base example Location type 📍4.0.1 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().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 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())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Encounter

Summary

Mandatory: 1 element
Fixed: 1 element
Prohibited: 32 elements

 

Other representations of profile: CSV, Excel, Schematron