Skip to content

Commit

Permalink
neue Extensions Replaces incl. Beispiele
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Lang committed Mar 11, 2024
1 parent 7f0db01 commit d10f81a
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ISiKMedikationsVerordnung"
]
},
"extension": [
{
"url": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationRequestReplaces",
"valueReference": {
"reference": "MedicationRequest/77777"
}
}
],
"dosageInstruction": [
{
"doseAndRate": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ISiKMedikationsInformation"
]
},
"extension": [
{
"url": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationStatementReplaces",
"valueReference": {
"reference": "MedicationStatement/55555"
}
}
],
"dosage": [
{
"doseAndRate": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"resourceType": "StructureDefinition",
"id": "ExtensionISiKMedicationRequestReplaces",
"url": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationRequestReplaces",
"version": "3.0.1",
"name": "ExtensionISiKMedicationRequestReplaces",
"title": "ISiKMedicationRequestReplaces",
"status": "active",
"experimental": false,
"date": "2024-01-12",
"publisher": "gematik GmbH",
"description": "Welche Medikationsverordnung wird ersetzt?",
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
}
],
"kind": "complex-type",
"abstract": false,
"context": [
{
"type": "element",
"expression": "MedicationRequest"
}
],
"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": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationRequestReplaces"
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"min": 1,
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/MedicationRequest"
]
}
]
},
{
"id": "Extension.value[x].reference",
"path": "Extension.value[x].reference",
"min": 1
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"resourceType": "StructureDefinition",
"id": "ExtensionISiKMedicationStatementReplaces",
"url": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationStatementReplaces",
"version": "3.0.1",
"name": "ExtensionISiKMedicationStatementReplaces",
"title": "ISiKMedicationStatementReplaces",
"status": "active",
"experimental": false,
"date": "2024-01-12",
"publisher": "gematik GmbH",
"description": "Welche Medikationsinformation wird ersetzt?",
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
}
],
"kind": "complex-type",
"abstract": false,
"context": [
{
"type": "element",
"expression": "MedicationStatement"
}
],
"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": "https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationStatementReplaces"
},
{
"id": "Extension.value[x]",
"path": "Extension.value[x]",
"min": 1,
"type": [
{
"code": "Reference",
"targetProfile": [
"http://hl7.org/fhir/StructureDefinition/MedicationStatement"
]
}
]
},
{
"id": "Extension.value[x].reference",
"path": "Extension.value[x].reference",
"min": 1
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,34 @@
"path": "MedicationStatement.extension.value[x]",
"mustSupport": true
},
{
"id": "MedicationStatement.extension:medicationStatementReplaces",
"path": "MedicationStatement.extension",
"sliceName": "medicationStatementReplaces",
"short": "Welche Medikationsinformation wird ersetzt?",
"comment": "Welche Medikationsinformation wird ersetzt?",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationStatementReplaces"
]
}
],
"mustSupport": true
},
{
"id": "MedicationStatement.extension:medicationStatementReplaces.value[x]",
"path": "MedicationStatement.extension.value[x]",
"mustSupport": true
},
{
"id": "MedicationStatement.extension:medicationStatementReplaces.value[x].reference",
"path": "MedicationStatement.extension.value[x].reference",
"mustSupport": true
},
{
"id": "MedicationStatement.partOf",
"path": "MedicationStatement.partOf",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,34 @@
"path": "MedicationRequest.extension.value[x]",
"mustSupport": true
},
{
"id": "MedicationRequest.extension:medicationRequestReplaces",
"path": "MedicationRequest.extension",
"sliceName": "medicationRequestReplaces",
"short": "Welche Medikationsverordnung wird ersetzt?",
"comment": "FWelche Medikationsverordnung wird ersetzt?",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"https://gematik.de/fhir/isik/v4/Medikation/StructureDefinition/ExtensionISiKMedicationRequestReplaces"
]
}
],
"mustSupport": true
},
{
"id": "MedicationRequest.extension:medicationRequestReplaces.value[x]",
"path": "MedicationRequest.extension.value[x]",
"mustSupport": true
},
{
"id": "MedicationRequest.extension:medicationRequestReplaces.value[x].reference",
"path": "MedicationRequest.extension.value[x].reference",
"mustSupport": true
},
{
"id": "MedicationRequest.status",
"path": "MedicationRequest.status",
Expand Down
12 changes: 12 additions & 0 deletions Resources/input/fsh/ExtensionISiKMedicationRequestReplaces.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Extension: ExtensionISiKMedicationRequestReplaces
Id: ExtensionISiKMedicationRequestReplaces
Title: "ISiKMedicationRequestReplaces"
Description: "Welche Medikationsverordnung wird ersetzt?"
* insert Meta
* ^experimental = false
* ^context[+].type = #element
* ^context[=].expression = "MedicationRequest"
* value[x] 1..
* value[x] only Reference(MedicationRequest)
* valueReference
* reference 1..
12 changes: 12 additions & 0 deletions Resources/input/fsh/ExtensionISiKMedicationStatementReplaces.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Extension: ExtensionISiKMedicationStatementReplaces
Id: ExtensionISiKMedicationStatementReplaces
Title: "ISiKMedicationStatementReplaces"
Description: "Welche Medikationsinformation wird ersetzt?"
* insert Meta
* ^experimental = false
* ^context[+].type = #element
* ^context[=].expression = "MedicationStatement"
* value[x] 1..
* value[x] only Reference(MedicationStatement)
* valueReference
* reference 1..
9 changes: 8 additions & 1 deletion Resources/input/fsh/ISiKMedikationsInformation.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Description: "Dieses Profil ermöglicht die Abbildung von Informationen zur Medi
ExtensionISiKAcceptedRisk named acceptedRisk 0..1 MS and
ExtensionISiKMedikationsart named medikationsart 0..1 MS and
ExtensionISiKSelbstmedikation named selbstmedikation 0..1 MS and
ExtensionISiKBehandlungsziel named behandlungsziel 0..1 MS
ExtensionISiKBehandlungsziel named behandlungsziel 0..1 MS and
ExtensionISiKMedicationStatementReplaces named medicationStatementReplaces 0..1 MS
* extension[acceptedRisk]
* ^short = "akzeptiertes (in Kauf genommenes) Risiko"
* ^comment = "Hier kann ein im Rahmen der Medikation festgestelltes, aber in Kauf genommenes Risiko dokumentiert werden, speziell auch die Begründung und ggf. erforderliche Begleitmaßnahmen."
Expand All @@ -30,6 +31,11 @@ Description: "Dieses Profil ermöglicht die Abbildung von Informationen zur Medi
* ^short = "Behandlungsziel (textuell)"
* ^comment = "Freitext-Beschreibung des Behandlungsziels."
* valueString MS
* extension[medicationStatementReplaces]
* ^short = "Welche Medikationsinformation wird ersetzt?"
* ^comment = "Welche Medikationsinformation wird ersetzt?"
* valueReference MS
* reference MS
* partOf MS
* ^short = "Referenz auf andere Objekte, deren Bestandteil diese MedikationsInformation ist"
* status MS
Expand Down Expand Up @@ -305,6 +311,7 @@ Usage: #example
Instance: ExampleISiKMedikationsInformation2
InstanceOf: ISiKMedikationsInformation
Usage: #example
* extension[medicationStatementReplaces].valueReference.reference = "MedicationStatement/55555"
* status = #active
* medicationReference.reference = "Medication/ExampleISiKMedikament2"
* subject.reference = "Patient/PatientinMusterfrau"
Expand Down
9 changes: 8 additions & 1 deletion Resources/input/fsh/ISiKMedikationsVerordnung.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Description: "Dieses Profil ermöglicht die Abbildung von Medikationsverordnunge
* extension contains
ExtensionISiKAcceptedRisk named acceptedRisk 0..1 MS and
ExtensionISiKMedikationsart named medikationsart 0..1 MS and
ExtensionISiKBehandlungsziel named behandlungsziel 0..1 MS
ExtensionISiKBehandlungsziel named behandlungsziel 0..1 MS and
ExtensionISiKMedicationRequestReplaces named medicationRequestReplaces 0..1 MS
* extension[acceptedRisk]
* ^short = "akzeptiertes (in Kauf genommenes) Risiko"
* ^comment = "Hier kann ein im Rahmen der Medikation festgestelltes, aber in Kauf genommenes Risiko dokumentiert werden, speziell auch die Begründung und ggf. erforderliche Begleitmaßnahmen."
Expand All @@ -25,6 +26,11 @@ Description: "Dieses Profil ermöglicht die Abbildung von Medikationsverordnunge
* ^short = "Behandlungsziel (textuell)"
* ^comment = "Freitext-Beschreibung des Behandlungsziels."
* valueString MS
* extension[medicationRequestReplaces]
* ^short = "Welche Medikationsverordnung wird ersetzt?"
* ^comment = "FWelche Medikationsverordnung wird ersetzt?"
* valueReference MS
* reference MS
* status MS
* ^short = "Status der Verordnungsinformation"
* intent MS
Expand Down Expand Up @@ -297,6 +303,7 @@ Usage: #example
Instance: ExampleISiKMedikationsVerordnung2
InstanceOf: ISiKMedikationsVerordnung
Usage: #example
* extension[medicationRequestReplaces].valueReference.reference = "MedicationRequest/77777"
* status = #active
* intent = #order
* medicationReference = Reference(ExampleISiKMedikament8)
Expand Down

0 comments on commit d10f81a

Please sign in to comment.