Skip to content

Commit

Permalink
Merge pull request #42 from gematik/feature/epa-eml
Browse files Browse the repository at this point in the history
Add example for MedicationDispense without Medication
  • Loading branch information
florianschoffke authored May 31, 2024
2 parents 5a5bdfe + 51a2406 commit bfd55d0
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 44 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"resourceType": "Medication",
"id": "Medication-Without-Strength-Code",
"meta": {
"profile": [
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"
]
},
"ingredient": [
{
"strength": {
"numerator": {
"value": 85,
"unit": "mg",
"_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"
}
]
}
},
"denominator": {
"value": 250,
"unit": "Milliliter",
"_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"
}
]
}
}
},
"itemCodeableConcept": {
"coding": [
{
"code": "L01DB01",
"system": "http://fhir.de/CodeSystem/bfarm/atc",
"display": "Doxorubicin"
}
]
},
"isActive": true
}
],
"code": {
"text": "Infusion bestehend aus 85mg Doxorubicin aufgeloest zur Verabreichung in 250ml 5-%iger (50 mg/ml) Glucose-Infusionsloesung"
},
"status": "active",
"form": {
"coding": [
{
"code": "11210000",
"system": "http://standardterms.edqm.eu",
"display": "Solution for infusion"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"resourceType": "MedicationDispense",
"id": "Example-MedicationDispense-Without-Medication",
"meta": {
"profile": [
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.4"
]
},
"identifier": [
{
"system": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId",
"value": "160.000.033.491.280.78"
}
],
"status": "completed",
"subject": {
"identifier": {
"system": "http://fhir.de/sid/gkv/kvid-10",
"value": "X123456789"
}
},
"performer": [
{
"actor": {
"identifier": {
"system": "https://gematik.de/fhir/sid/telematik-id",
"value": "3-SMC-B-Testkarte-883110000095957"
}
}
}
],
"medicationReference": {
"extension": [
{
"valueCode": "unsupported",
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
}
]
},
"whenHandedOver": "2024-04-03",
"whenPrepared": "2024-04-03"
}
20 changes: 14 additions & 6 deletions Resources/input/fsh/profiles/GEM_ERP_PR_Medication.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,21 @@ Usage: #example
* amount.denominator.value = 1


Instance: DAVNumeratorExample
Instance: Medication-Without-Strength-Code
InstanceOf: GEM_ERP_PR_Medication
Title: "DAV Example"
Title: "Medication Without code or system for Strength"
Usage: #example
* ingredient.itemReference.display = "Gematico Medikation"
* ingredient.strength.numerator.value = 10
* ingredient.strength.numerator.unit = "Stück"
* ingredient.strength.numerator
* code.text = "Infusion bestehend aus 85mg Doxorubicin aufgeloest zur Verabreichung in 250ml 5-%iger (50 mg/ml) Glucose-Infusionsloesung"
* status = #active
* form = http://standardterms.edqm.eu#11210000 "Solution for infusion"
* ingredient.itemCodeableConcept = http://fhir.de/CodeSystem/bfarm/atc#L01DB01 "Doxorubicin"
* ingredient.isActive = true
* ingredient.strength.numerator.value = 85
* ingredient.strength.numerator.unit = "mg"
* ingredient.strength.numerator.system.extension[dataAbsentReason].valueCode = #unknown
* ingredient.strength.numerator.code.extension[dataAbsentReason].valueCode = #unknown

* ingredient.strength.denominator.value = 250
* ingredient.strength.denominator.unit = "Milliliter"
* ingredient.strength.denominator.system.extension[dataAbsentReason].valueCode = #unknown
* ingredient.strength.denominator.code.extension[dataAbsentReason].valueCode = #unknown
17 changes: 17 additions & 0 deletions Resources/input/fsh/profiles/GEM_ERP_PR_MedicationDispense.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,21 @@ Description: "Example of a Medication Dispense."
* contained[+] = SumatripanMedication
* medicationReference.reference = "#001413e4-a5e9-48da-9b07-c17bab476407"

Instance: Example-MedicationDispense-Without-Medication
InstanceOf: GEM_ERP_PR_MedicationDispense
Usage: #example
Title: "Example-Medication Dispense without Medication"
Description: "Example of a Medication Dispense which does not contain a medication. This is a valid case when the pharmacy is not substituting the medication that was prescribed."
* identifier[prescriptionID].system = "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"
* identifier[prescriptionID].value = "160.000.033.491.280.78"
* subject.identifier.system = "http://fhir.de/sid/gkv/kvid-10"
* subject.identifier.value = "X123456789"
* performer.actor.identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* performer.actor.identifier.value = "3-SMC-B-Testkarte-883110000095957"
* whenHandedOver = "2024-04-03"
* whenPrepared = "2024-04-03"
* medicationReference.extension[dataAbsentReason].valueCode = #unsupported

Instance: Example-DiGA-MedicationDispense
InstanceOf: GEM_ERP_PR_MedicationDispense
Usage: #example
Expand All @@ -62,6 +77,8 @@ Description: "Example of a Medication Dispense."
* whenPrepared = "2024-04-03"
* medicationReference.display = "Beispiel App für Diabetestherapie"



/*
Instance: INVALID-DATE-Example-MedicationDispense-1
Expand Down

0 comments on commit bfd55d0

Please sign in to comment.