Skip to content

Commit

Permalink
Merge pull request #242 from gematik/alexzautke-patch-5
Browse files Browse the repository at this point in the history
Add AppointmentReplaces extension definition
  • Loading branch information
patrick-werner authored Nov 28, 2024
2 parents 6a81334 + c534228 commit fe5adb9
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"resourceType": "StructureDefinition",
"id": "AppointmentReplaces",
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.replaces",
"version": "4.0.1",
"name": "AppointmentReplaces",
"status": "active",
"experimental": false,
"date": "2024-11-27",
"publisher": "gematik GmbH",
"fhirVersion": "4.0.1",
"kind": "complex-type",
"abstract": false,
"context": [
{
"expression": "Appointment",
"type": "element"
}
],
"type": "Extension",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
"derivation": "constraint",
"differential": {
"element": [
{
"id": "Extension.extension",
"path": "Extension.extension",
"max": "0"
},
{
"id": "Extension.url",
"path": "Extension.url",
"fixedUri": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.replaces"
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/Appointment"
]
}
]
}
]
}
}
12 changes: 11 additions & 1 deletion Resources/input/fsh/ISiKTermin.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Id: ISiKTermin
* ^comment = "Einschränkung der übergreifenden MS-Definition: Falls ein bestätigungsrelevantes System das ISiK-Profil ISiKNachricht implementiert, MUSS das System auch dieses Element unterstützten. Andernfalls KANN das System dieses Element unterstützen.

Begründung zum Must Support: Nachrichten die für diesen Termin verfasst wurden können somit direkt abgerufen werden."
* extension contains http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.replaces named replaces 0..1 MS
* extension contains AppointmentReplaces named replaces 0..1 MS
* ^comment = "Begründung zum Must Support: Termineabsagen sollten verkettbar sein, da am originalen Termin noch weitere Informationen hängen können."
* status MS
* ^comment = "Begründung zu Must Support : Im ISiK Kontext ist der Status eines Termins von entscheidender Bedeutung, um den aktuellen Stand und die Verfügbarkeit des Termins zu kommunizieren."
Expand Down Expand Up @@ -122,6 +122,16 @@ Context: Appointment.priority
* valueCodeableConcept 1..1 MS
* valueCodeableConcept from ISiKTerminPriority (required)

// This extension can be safely removed as soon as a package for R5 backport extensions is published and referenced by this project
//WIP
Extension: AppointmentReplaces
Id: AppointmentReplaces
Context: Appointment
* insert Meta
* ^url = "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.replaces"
* value[x] only Reference(Appointment)
* valueReference 0..1

Invariant: ISiK-app-1
Description: "Der Endzeitpunkt eines Termins MUSS nach dem Startzeitpunkt liegen"
Severity: #error
Expand Down

0 comments on commit fe5adb9

Please sign in to comment.