LTT Implementation Guide
1.0.1 - ci-build

This page is part of the KLltt (v1.0.1: 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

Resource Profile: KLGatewayLTTEncounter

Official URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter Version: 1.0.1
Active as of 2025-10-29 Computable Name: KLGatewayLTTEncounter

Encounter between a child or youth and the LTT

Scope and usage

This model is used whenever an encounter is completed between a citizen and LTT.

The Encounter.type attribute is used to classify the type of activities that occur at the encounter. The encounters have been classified accordingly:

  • Henvendelse
  • Forsamtale
  • Screening
  • Behandling
  • Afsluttende samtale
  • Afslutning

Only encounters actually carried out should be documented. Consequently, the encounter.status should be 'finished'. However, if errors have been reported use the 'entered-in-error' status as described by the FHIR documentation.

Encounter.class is mandatory in FHIR. In this implementation guide, always use 'AMB' Ambulatory.

The time of the encounter is documented in Encounter.period.start, and it is mandatory.

Encounter.extension[basedOnCarePlan] must be populated with a reference to the care plan.

Encounter.subject relates to the subject that the encounter is about. In LTT this is always the child or youth. Eventhough it can be the parents, legal guardians, etc. of the child or youth that are receiving the training or guiding. To document this, Encounter.participant can be used to tell whether it is the child/youth, who is present (maybe in companionship with the parents) or if it is just the parents, who participate in the encounter. Encounter.extension[deliveryType] is used to state, how encounters are delivered. Valid values are 'individual' and 'group based'. There's a difference in how the information is registered in the user interface and how it is reported to KL Gateway. The table below shows how the registrations from the user interface is represented in FHIR:

User interface terms FHIR representation
8742dc92-2878-4074-b128-b0384c4989c9
"Gruppebaseret behandling med barn/ung"
Encounter.extension[deliveryType] = 2865f123-15a7-4a36-a514-32ea37c400ca "Gruppebaseret indsats"
Encounter.participant.type.coding = ca228a58-bd0e-4b0e-81ce-3866adc26535 "Barn/ung deltager"
dadb1540-9542-46d1-a784-0559d94e0b9a
"Gruppebaseret behandling uden barn/ung"
Encounter.extension[deliveryType] = 2865f123-15a7-4a36-a514-32ea37c400ca "Gruppebaseret indsats"
Encounter.participant.type.coding = d3578249-10df-4051-851d-3986b1570bee "Omsorgsperson uden barn/ung"
ca52f015-193e-4d31-9471-7385717dfa44
"Individuel behandling med barn/ung"
Encounter.extension[deliveryType] = 8d12d74c-17da-47a7-a4fe-e69dbaec0a8c "Individuel indsats"
Encounter.participant.type.coding = ca228a58-bd0e-4b0e-81ce-3866adc26535 "Barn/ung deltager"
c86b5c04-7e13-488b-87fd-fb1e30309bb8
"Individuel behandling uden barn/ung"
Encounter.extension[deliveryType] = 8d12d74c-17da-47a7-a4fe-e69dbaec0a8c "Individuel indsats"
Encounter.participant.type.coding = d3578249-10df-4051-851d-3986b1570bee "Omsorgsperson uden barn/ung"

Conversions between Danish information model and FHIR profile

Nedenstående tabel definerer kort den enkelte attribut på dansk og specificerer hvilke af FHIR-profilens atributter, der skal bruges til specifikation af indholdet.

Dansk attribut Definition FHIR
kontaktstatus Kode, der indikerer om kontakten er igangværende, eller om dokumentationen repræsentere en fremtidig intention eller er historisk Encounter.status
kontaktklasse Klasse, der udtrykker en generel kategori for kontakten, som rækker ud over den kommunale kontekst Encounter.class
kontakttype Kode, der udtrykker typen af aktivitet der gennemføres ved kontakten Encounter.type
kontaktsubjekt Den borger kontakten vedrører Encounter.subject
kontaktdeltagere Deltagere under kontakten Encounter.participant
kontaktstart Kontaktens start Encounter.period.start
kontaktLeveringstype Type, der beskriver hvordan kontaktes leveres Encounter.extension:deliveryType
kontaktBaseretPå Den care plan, der er grunden til at denne kontakt udføres Encounter.extension:basedOnCarePlan

Usages:

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 C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... 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:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... url 1..1 uri "http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type"
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... class Σ 1..1 Coding [DK] kontaktklasse
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... version 0..1 string Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... display 0..1 string Representation defined by the system
.... userSelected 0..1 boolean If this coding was chosen directly by the user
.... system Σ 1..1 uri Identity of the terminology system
.... code Σ 1..1 code Symbol in syntax defined by the system
... type Σ 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... coding Σ 1..1 Coding Code defined by a terminology system
... subject Σ 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... participant Σ 0..1 BackboneElement [DK] kontaktdeltagere
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type Σ 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
... period 1..1 Period The start and end time of the encounter
.... start ΣC 1..1 dateTime [DK] kontaktstart

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 extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG

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()
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())

This structure is derived from Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... value[x]
...... coding 0..* Coding Code defined by a terminology system
Binding: Lettilgængeligt Tilbud - Leveringstype (required)
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... identifier 0..0 Identifier(s) by which this encounter is known
... status 1..1 code [DK] kontaktstatus
... class 1..1 Coding [DK] kontaktklasse
Required Pattern: At least the following
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... system 1..1 uri Identity of the terminology system
.... version 0..0 Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
.... userSelected 0..0 If this coding was chosen directly by the user
... classHistory 0..0 List of past encounter classes
... type 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... coding 1..1 Coding Code defined by a terminology system
..... version 0..0 Version of the system - if relevant
..... userSelected 0..0 If this coding was chosen directly by the user
.... text 0..0 Plain text representation of the concept
... serviceType 0..0 Specific type of service
... priority 0..0 Indicates the urgency of the encounter
... subject 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... 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..1 BackboneElement [DK] kontaktdeltagere
.... type 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
.... period 0..0 Period of time during the encounter that the participant participated
.... individual 0..0 Persons involved in the encounter other than the patient
... appointment 0..0 The appointment that scheduled this encounter
... period 1..1 Period The start and end time of the encounter
.... start 1..1 dateTime [DK] kontaktstart
.... end 0..0 End time with inclusive boundary, if not ongoing
... 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.extension:deliveryType.​value[x].coding Base required Lettilgængeligt Tilbud - Leveringstype 📦1.0.1 This IG
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG

Constraints

Id Grade Path(s) Description Expression
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... 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
... 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:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... url 1..1 uri "http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type"
..... value[x] 0..1 CodeableConcept Value of extension
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 0..* Coding Code defined by a terminology system
Binding: Lettilgængeligt Tilbud - Leveringstype (required)
...... text Σ 0..1 string Plain text representation of the concept
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code [DK] kontaktstatus
Binding: EncounterStatus (required): Current state of the encounter.
... class Σ 1..1 Coding [DK] kontaktklasse
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... version 0..1 string Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... display 0..1 string Representation defined by the system
.... userSelected 0..1 boolean If this coding was chosen directly by the user
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 1..1 uri Identity of the terminology system
.... code Σ 1..1 code Symbol in syntax defined by the system
.... display Σ 0..1 string Representation defined by the system
... type Σ 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... 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
..... display Σ 0..1 string Representation defined by the system
... subject Σ 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... participant Σ 0..1 BackboneElement [DK] kontaktdeltagere
.... 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
.... type Σ 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
... period 1..1 Period The start and end time of the encounter
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... start ΣC 1..1 dateTime [DK] kontaktstart

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Encounter.extension:deliveryType.​value[x].coding Base required Lettilgængeligt Tilbud - Leveringstype 📦1.0.1 This IG
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG
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 📦2.0.0 THO v6.5
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()
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())

This structure is derived from Encounter

Summary

Mandatory: 8 elements(1 nested mandatory element)
Prohibited: 25 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... 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:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... url 1..1 uri "http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type"
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... class Σ 1..1 Coding [DK] kontaktklasse
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... version 0..1 string Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... display 0..1 string Representation defined by the system
.... userSelected 0..1 boolean If this coding was chosen directly by the user
.... system Σ 1..1 uri Identity of the terminology system
.... code Σ 1..1 code Symbol in syntax defined by the system
... type Σ 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... coding Σ 1..1 Coding Code defined by a terminology system
... subject Σ 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... participant Σ 0..1 BackboneElement [DK] kontaktdeltagere
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... type Σ 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
... period 1..1 Period The start and end time of the encounter
.... start ΣC 1..1 dateTime [DK] kontaktstart

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 extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG

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()
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())

Differential View

This structure is derived from Encounter

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... value[x]
...... coding 0..* Coding Code defined by a terminology system
Binding: Lettilgængeligt Tilbud - Leveringstype (required)
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... identifier 0..0 Identifier(s) by which this encounter is known
... status 1..1 code [DK] kontaktstatus
... class 1..1 Coding [DK] kontaktklasse
Required Pattern: At least the following
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... system 1..1 uri Identity of the terminology system
.... version 0..0 Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
.... userSelected 0..0 If this coding was chosen directly by the user
... classHistory 0..0 List of past encounter classes
... type 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... coding 1..1 Coding Code defined by a terminology system
..... version 0..0 Version of the system - if relevant
..... userSelected 0..0 If this coding was chosen directly by the user
.... text 0..0 Plain text representation of the concept
... serviceType 0..0 Specific type of service
... priority 0..0 Indicates the urgency of the encounter
... subject 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... 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..1 BackboneElement [DK] kontaktdeltagere
.... type 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
.... period 0..0 Period of time during the encounter that the participant participated
.... individual 0..0 Persons involved in the encounter other than the patient
... appointment 0..0 The appointment that scheduled this encounter
... period 1..1 Period The start and end time of the encounter
.... start 1..1 dateTime [DK] kontaktstart
.... end 0..0 End time with inclusive boundary, if not ongoing
... 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.extension:deliveryType.​value[x].coding Base required Lettilgængeligt Tilbud - Leveringstype 📦1.0.1 This IG
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG

Constraints

Id Grade Path(s) Description Expression
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Encounter C 0..* Encounter An interaction during which services are provided to the patient
Constraints: klgateway-ltt-encounter-participants-and-deliveryType
... 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
... 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:deliveryType 0..1 (Complex) [DK] kontaktLeveringstype
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0 Extension
Slice: Unordered, Open by value:url
..... url 1..1 uri "http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type"
..... value[x] 0..1 CodeableConcept Value of extension
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... coding Σ 0..* Coding Code defined by a terminology system
Binding: Lettilgængeligt Tilbud - Leveringstype (required)
...... text Σ 0..1 string Plain text representation of the concept
.... extension:basedOnCarePlan 1..1 Reference(KLGatewayLTTCarePlan) [DK] kontaktBaseretPå
URL: http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-based-on-care-plan
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... status ?!Σ 1..1 code [DK] kontaktstatus
Binding: EncounterStatus (required): Current state of the encounter.
... class Σ 1..1 Coding [DK] kontaktklasse
Binding: ActEncounterCode (extensible): Classification of the encounter.
Required Pattern: At least the following
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... system 1..1 uri Identity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
.... version 0..1 string Version of the system - if relevant
.... code 1..1 code Symbol in syntax defined by the system
Fixed Value: AMB
.... display 0..1 string Representation defined by the system
.... userSelected 0..1 boolean If this coding was chosen directly by the user
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... system Σ 1..1 uri Identity of the terminology system
.... code Σ 1..1 code Symbol in syntax defined by the system
.... display Σ 0..1 string Representation defined by the system
... type Σ 1..1 CodeableConcept [DK] kontakttype
Binding: Lettilgængeligt Tilbud - Kontakttyper (required)
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... 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
..... display Σ 0..1 string Representation defined by the system
... subject Σ 0..1 Reference(KLGatewayLTTCitizen) [DK] kontaktsubjekt
... participant Σ 0..1 BackboneElement [DK] kontaktdeltagere
.... 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
.... type Σ 1..1 CodeableConcept Role of participant in encounter
Binding: Lettilgængeligt Tilbud - Deltagere i kontakt (required)
... period 1..1 Period The start and end time of the encounter
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... start ΣC 1..1 dateTime [DK] kontaktstart

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Encounter.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Encounter.extension:deliveryType.​value[x].coding Base required Lettilgængeligt Tilbud - Leveringstype 📦1.0.1 This IG
Encounter.status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.statusHistory.​status Base required EncounterStatus 📍4.0.1 FHIR Std.
Encounter.class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.classHistory.​class Base extensible ActEncounterCode 📦3.0.0 THO v6.5
Encounter.type Base required Lettilgængeligt Tilbud - Kontakttyper 📦1.0.1 This IG
Encounter.participant.​type Base required Lettilgængeligt Tilbud - Deltagere i kontakt 📦1.0.1 This IG
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 📦2.0.0 THO v6.5
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()
klgateway-ltt-encounter-participants-and-deliveryType error Encounter If the encounter is of type 'Behandling', then the encounter must have participant and deliveryType. type.coding.code = 'b7f9217c-2315-4d6f-bba5-5117e202302c' implies (participant.type.coding.exists() and extension.where(url='http://fhir.kl.dk/ltt/StructureDefinition/klgateway-ltt-encounter-delivery-type').value.coding.exists())

This structure is derived from Encounter

Summary

Mandatory: 8 elements(1 nested mandatory element)
Prohibited: 25 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron