Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionale Angaben im Numerator der Wirkstärke #41

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"resourceType": "Medication",
"id": "DAVNumeratorExample",
"meta": {
"profile": [
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"
]
},
"ingredient": [
{
"strength": {
"numerator": {
"value": 10,
"unit": "Stück",
"_system": {
"extension": [
{
"valueCode": "unknown",
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
}
]
},
"_code": {
"extension": [
{
"valueCode": "unknown",
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
}
]
}
}
},
"itemReference": {
"display": "Gematico Medikation"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@
"mustSupport": true
},
{
"id": "Medication.ingredient.strength.numerator.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.numerator.extension",
"id": "Medication.ingredient.strength.numerator.system.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.numerator.system.extension",
"sliceName": "dataAbsentReason",
"min": 0,
"max": "1",
Expand All @@ -393,13 +393,13 @@
"mustSupport": true
},
{
"id": "Medication.ingredient.strength.numerator.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.numerator.extension.value[x]",
"id": "Medication.ingredient.strength.numerator.system.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.numerator.system.extension.value[x]",
"patternCode": "unknown"
},
{
"id": "Medication.ingredient.strength.denominator.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.denominator.extension",
"id": "Medication.ingredient.strength.numerator.code.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.numerator.code.extension",
"sliceName": "dataAbsentReason",
"min": 0,
"max": "1",
Expand All @@ -414,8 +414,50 @@
"mustSupport": true
},
{
"id": "Medication.ingredient.strength.denominator.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.denominator.extension.value[x]",
"id": "Medication.ingredient.strength.numerator.code.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.numerator.code.extension.value[x]",
"patternCode": "unknown"
},
{
"id": "Medication.ingredient.strength.denominator.system.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.denominator.system.extension",
"sliceName": "dataAbsentReason",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/data-absent-reason"
]
}
],
"mustSupport": true
},
{
"id": "Medication.ingredient.strength.denominator.system.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.denominator.system.extension.value[x]",
"patternCode": "unknown"
},
{
"id": "Medication.ingredient.strength.denominator.code.extension:dataAbsentReason",
"path": "Medication.ingredient.strength.denominator.code.extension",
"sliceName": "dataAbsentReason",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://hl7.org/fhir/StructureDefinition/data-absent-reason"
]
}
],
"mustSupport": true
},
{
"id": "Medication.ingredient.strength.denominator.code.extension:dataAbsentReason.value[x]",
"path": "Medication.ingredient.strength.denominator.code.extension.value[x]",
"patternCode": "unknown"
}
]
Expand Down
27 changes: 22 additions & 5 deletions Resources/input/fsh/profiles/GEM_ERP_PR_Medication.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ Description: "Handles medical information about the redeemed prescription"
* ingredient.strength.extension[MengeFreitext].valueString MS
* ingredient.strength.extension[MengeFreitext].valueString ^sliceName = "valueString"

* ingredient.strength.numerator.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.numerator.extension[dataAbsentReason].value[x] = #unknown
* ingredient.strength.denominator.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.denominator.extension[dataAbsentReason].value[x] = #unknown
* ingredient.strength.numerator.system.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.numerator.system.extension[dataAbsentReason].value[x] = #unknown
* ingredient.strength.numerator.code.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.numerator.code.extension[dataAbsentReason].value[x] = #unknown

* ingredient.strength.denominator.system.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.denominator.system.extension[dataAbsentReason].value[x] = #unknown
* ingredient.strength.denominator.code.extension contains $data-absent-reason named dataAbsentReason 0..1 MS
* ingredient.strength.denominator.code.extension[dataAbsentReason].value[x] = #unknown

// Add amount.numerator Extensions
* amount.numerator.extension ^slicing.discriminator.type = #value
Expand Down Expand Up @@ -105,4 +110,16 @@ Usage: #example
* amount.numerator.unit = "St"
* amount.numerator.extension[Gesamtmenge].url = "https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize"
* amount.numerator.extension[Gesamtmenge].valueString = "20 St."
* amount.denominator.value = 1
* amount.denominator.value = 1


Instance: DAVNumeratorExample
InstanceOf: GEM_ERP_PR_Medication
Title: "DAV Example"
Usage: #example
* ingredient.itemReference.display = "Gematico Medikation"
* ingredient.strength.numerator.value = 10
* ingredient.strength.numerator.unit = "Stück"
* ingredient.strength.numerator
* ingredient.strength.numerator.system.extension[dataAbsentReason].valueCode = #unknown
* ingredient.strength.numerator.code.extension[dataAbsentReason].valueCode = #unknown
Loading