Skip to content

Commit e2ac362

Browse files
authored
Merge pull request #164 from hl7dk/150-profiling-of-encounter
150 profiling of encounter
2 parents 24c2c92 + fe6447f commit e2ac362

File tree

8 files changed

+104
-6
lines changed

8 files changed

+104
-6
lines changed

input/fsh/DkCoreEncounter.fsh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Profile: DkCoreEncounter
2+
Parent: Encounter
3+
Id: dk-core-encounter
4+
Title: "Danish Core Encounter Profile"
5+
Description: "HL7 Denmark core profile for an encounter"
6+
* extension contains
7+
PlannedStartDate named plannedStartDate 0..1 and
8+
PlannedEndDate named plannedEndDate 0..1 and
9+
CareProvider named careProvider 0..1
10+
* extension[plannedStartDate] ^short = "The planned start date/time (or admission date) of the encounter"
11+
* extension[plannedEndDate] ^short = "The planned end date/time (or discharge date) of the encounter"
12+
* extension[careProvider] ^short = "The organization (facility) responsible for the care of the patient during this encounter"
13+
* priority from DkCoreEncounterPriority (extensible)
14+
* subject only Reference(DkCorePatient)
15+
* diagnosis ^slicing.discriminator.type = #type
16+
* diagnosis ^slicing.discriminator.path = condition
17+
* diagnosis ^slicing.rules = #open
18+
* diagnosis ^slicing.description = "Slicing based on condition type"
19+
* diagnosis contains dk-core-conditions 0..*
20+
* diagnosis[dk-core-conditions].condition only Reference(DkCoreCondition)
21+
* diagnosis[dk-core-conditions].rank 1..1
22+
* serviceProvider only Reference(DkCoreOrganization)

input/fsh/aliases.fsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ Alias: $observation-bp = http://hl7.org/fhir/StructureDefinition/bp
2727
Alias: $LOINC-vitalsigns = http://hl7.org/fhir/ValueSet/observation-vitalsignresult
2828
Alias: $v3-Confidentiality = http://terminology.hl7.org/CodeSystem/v3-Confidentiality
2929
Alias: $v3-RoleCode = http://terminology.hl7.org/CodeSystem/v3-RoleCode
30-
31-
30+
Alias: $v3-ActPriority = http://terminology.hl7.org/CodeSystem/v3-ActPriority

input/fsh/codeSystems.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,4 +1304,4 @@ Description: "DK NPU Subsetted code system used in DK Core. The full version of
13041304
* ^property[+].code = #status
13051305
* ^property[=].valueCode = #active
13061306
* ^property[+].code = #comment
1307-
* ^property[=].valueString = "Unit defined"
1307+
* ^property[=].valueString = "Unit defined"

input/fsh/extensions.fsh

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,31 @@ Description: "Identifier holding the official identifier for a danish municipali
4242
* . ^short = "Danish Core Municipality codes"
4343
* ^definition = "Identifier holding the official identifier for a danish municipality"
4444
* value[x] only CodeableConcept
45-
* coding from MunicipalityCodes (required)
45+
* coding from MunicipalityCodes (required)
46+
47+
Extension: PlannedStartDate
48+
Id: dk-core-planned-start-date
49+
Title: "PlannedStartDate"
50+
* . ^short = "PlannedStartDate"
51+
* ^definition = "The planned start date/time (or admission date) of the encounter"
52+
* value[x] only dateTime
53+
* ^context.type = http://hl7.org/fhir/extension-context-type#element
54+
* ^context.expression = "Encounter"
55+
56+
Extension: PlannedEndDate
57+
Id: dk-core-planned-end-date
58+
Title: "PlannedEndDate"
59+
* . ^short = "PlannedEndDate"
60+
* ^definition = "The planned end date/time (or discharge date) of the encounter"
61+
* value[x] only dateTime
62+
* ^context.type = http://hl7.org/fhir/extension-context-type#element
63+
* ^context.expression = "Encounter"
64+
65+
Extension: CareProvider
66+
Id: dk-core-care-provider
67+
Title: "CareProvider"
68+
* . ^short = "CareProvider"
69+
* ^definition = "The organization (facility) reponsible for the care of the patient during this encounter"
70+
* value[x] only Reference(DkCoreOrganization)
71+
* ^context.type = http://hl7.org/fhir/extension-context-type#element
72+
* ^context.expression = "Encounter"

input/fsh/valueSets.fsh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,14 @@ Description: "Value set used for indicating the organization type for organizati
841841
* $sct#255203001
842842
* $sct#264372000
843843

844+
ValueSet: DkCoreEncounterPriority
845+
Id: dk-core-encounter-priority
846+
Title: "DK priority codes for encounters"
847+
Description: "Value set used for indicating priority of an encounter"
848+
* ^experimental = false
849+
* ^status = #active
850+
* $v3-ActPriority#A
851+
* $v3-ActPriority#EL
844852

845853
ValueSet: SorPracticeSettingCode
846854
Id: dk-core-practice-setting-code
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
### Scope and usage
2+
This profile is intended to encapsulate information about encounters in the Danish health sectors.
3+
4+
### Responsibilities for treatment and care
5+
In Denmark there is a distinguishment between which organization has the reponsibility for providing treatment to the patient, and which organization
6+
has the responsibility for providing care to the patient.
7+
8+
* Treatment responsibility ([DA] behandlingsansvarlig): this lies with the service provider organization
9+
* Care responsibility ([DA] plejeansvarlig): this lies with the organization where the patient has a stay (is hospitalized)
10+
11+
The treatment responsibility is represented by Encounter.serviceProvider and the current care responsibility is represented by the
12+
extension [CareProvider](./StructureDefinition-dk-core-care-provider.html).
13+
14+
## Specifying primary and secondary diagnosis
15+
Hospital encounters in Denmark have diagnosis associated that specifies the primary diagnosis beeing treated ([DA] aktionsdiagnose) and secondary diagnosis ([DA] bidiagnose) that might be relevant to the treatment of the primary diagnosis. These can be given in the diagnosis element and it is recommended to use the rank element to distinguish between primary and secondary diagnoses, the primary being given rank 1 and the secondary a rank > 1.
16+
17+
### Handling future versions
18+
In FHIR R5 and newer, there have been made significant changes to Encounter profile.
19+
20+
In order to be compatible with the changes to the value set bound to Encounter.class in FHIR R5 and newer, we recommend to restrict to using only
21+
the values from the FHIR R5 value set [Encounter class](https://terminology.hl7.org/5.2.0/ValueSet-encounter-class.html), which is a subset of the
22+
FHIR R4 value set [ActEncounterCode](https://hl7.org/fhir/R4/v3/ActEncounterCode/vs.html):
23+
24+
{:class="grid"}
25+
| Code | Display | Typical use in Denmark |
26+
| ---- | ------- | -------------- |
27+
| IMP | inpatient encounter | Encounters where patients are admitted typically for more than 12 hours. |
28+
| AMB | ambulatory | Encounters where patients are not admitted. |
29+
| OBSENC | observation encounter | Not used. |
30+
| EMER | emergency | Encounters where patients are admitted to an emergency ward typically for up to 72 hours. |
31+
| VR | virtual | Virtual encounters with patients typically using televideo, telephone, or other means of telepresence. |
32+
| HH | home health | Encounters with patients in their own home. |
33+
34+
Note that Encounter.class has an extensible binding, so if a class coding not part of the bound value set is needed, it is allowed to use an
35+
alternate coding.
36+
37+
In order to support the addition of Encounter.plannedStartDate and Encounter.plannedEndDate in FHIR R5, the extensions
38+
[PlannedStartDate](./StructureDefinition-dk-core-planned-start-date.html) and [PlannedEndDate](./StructureDefinition-dk-core-planned-end-date.html)
39+
have been added to DkCore. However, note that in the R4 documentation it is stated that a planned start date could be given by placing
40+
period.start in the future, and setting the status to ‘planned’. As a consequence, this practice is also acceptable in the dk-core R4 version,
41+
but the use of plannedStart and plannedEnd extensions are encouraged to make transition to future FHIR versions easier.

input/pagecontent/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Issues opened in that GitHub repo are very welcome. They help the affiliate pick
4242
Pull requests are even better. If you are in a position to suggest how exactly your proposal should be implemented in the specification, do it! It helps the team maintaining the implementation guide a great deal.
4343

4444
### Language
45-
The main language of this implementation guide, and the profiles in it, is English. Content that does not have an official English term uses a Danish term instead. Sometimes terms are explained using both Danish and English. Danish terms and explanations are prefixed with 'Da'
45+
The main language of this implementation guide, and the profiles in it, is English. Content that does not have an official English term uses a Danish term instead. Sometimes terms are explained using both Danish and English. Danish terms and explanations are prefixed with [DA]
4646

4747
### Connection between dk-core and common Danish architectures and standards
4848
HL7 Denmark includes common Danish architectures and standards if relevant, when content is added to dk-core. This section provides information about principle decisions as well as more specific ones that require explanations.

sushi-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ version: 3.5.0
5353
#Flip status to 'active' for publication. Flip to 'draft' for CI
5454
status: draft
5555
#status: active
56+
5657
#Flip releaseLabel to 'release' for publication. Flip to 'ci-build' for CI
5758
releaseLabel: ci-build
58-
#releaseLabel: release
59+
#releaseLabel: release

0 commit comments

Comments
 (0)