Skip to content

Commit

Permalink
Merge pull request #83 from gematik/bugfix/xslt-fixes
Browse files Browse the repository at this point in the history
Improvements for Dispense Confirmation
  • Loading branch information
florianschoffke authored Nov 5, 2024
2 parents 605a7bd + d469d67 commit 7e0f73c
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 44 deletions.
4 changes: 2 additions & 2 deletions Resources/fsh-generated/fsh-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"fshType": "Instance",
"fshFile": "examples/Misc/Example_MedicationDispense.fsh",
"startLine": 1,
"endLine": 10
"endLine": 13
},
{
"outputFile": "MedicationRequest-Example-Initial-Medication-Request.json",
Expand Down Expand Up @@ -413,7 +413,7 @@
"fshType": "Profile",
"fshFile": "profiles/4.2_MedicationDispense.fsh",
"startLine": 1,
"endLine": 24
"endLine": 49
},
{
"outputFile": "StructureDefinition-erp-service-request-medication-request.json",
Expand Down
4 changes: 2 additions & 2 deletions Resources/fsh-generated/fsh-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CodeSystem-delivery-type-cs.json
CodeSystem-medication-request-reason-cs.json MedicationRequestReasonCS CodeSystem codesystems/MedicationRequestReasonCS.fsh 1 - 9
CodeSystem-service-request-type-cs.json ServiceRequestTypeCS CodeSystem codesystems/ServiceRequestCodeCS.fsh 1 - 8
ConceptMap-ServiceIdentifierToSubjectConceptMap.json ServiceIdentifierToSubjectConceptMap Instance conceptmaps/serviceidentifier-to-subject-conceptmap.fsh 1 - 50
MedicationDispense-UC1-Medication-Dispense.json UC1-Medication-Dispense Instance examples/Misc/Example_MedicationDispense.fsh 1 - 10
MedicationDispense-UC1-Medication-Dispense.json UC1-Medication-Dispense Instance examples/Misc/Example_MedicationDispense.fsh 1 - 13
MedicationRequest-Example-Initial-Medication-Request.json Example-Initial-Medication-Request Instance examples/Misc/Example_MedicationRequest.fsh 1 - 10
MedicationRequest-Example-Komplex-Medication-Request.json Example-Komplex-Medication-Request Instance examples/Misc/Example_MedicationRequest.fsh 12 - 21
MedicationRequest-Example-Response-Medication-Request.json Example-Response-Medication-Request Instance examples/Misc/Example_MedicationRequest.fsh 32 - 40
Expand All @@ -50,7 +50,7 @@ StructureDefinition-changed-medication-ex.json
StructureDefinition-eprescription-token-ex.json EPrescriptionTokenEX Extension extensions/EPrescriptionTokenEX.fsh 1 - 19
StructureDefinition-erp-service-request-dispense-request.json ERPServiceRequestDispenseRequest Profile profiles/3.2_Dispense_ServiceRequest.fsh 1 - 125
StructureDefinition-erp-service-request-eprescription-token.json ERPServiceRequestEPrescriptionToken Profile profiles/6.3_EPrescriptionTokenIdentifier.fsh 1 - 11
StructureDefinition-erp-service-request-medication-dispense.json ERPServiceRequestMedicationDispense Profile profiles/4.2_MedicationDispense.fsh 1 - 24
StructureDefinition-erp-service-request-medication-dispense.json ERPServiceRequestMedicationDispense Profile profiles/4.2_MedicationDispense.fsh 1 - 49
StructureDefinition-erp-service-request-medication-request.json ERPServiceRequestMedicationRequest Profile profiles/4.1_MedicationRequest.fsh 1 - 59
StructureDefinition-erp-service-request-message-container.json ERPServiceRequestMessageContainer Profile profiles/1_Bundle.fsh 1 - 13
StructureDefinition-erp-service-request-organization.json ERPServiceRequestOrganization Profile profiles/8_Organization.fsh 1 - 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,16 @@
"status": "completed",
"medicationReference": {
"reference": "Medication/Example-Initial-Medication"
}
},
"quantity": {
"value": 1,
"unit": "Packung"
},
"dosageInstruction": [
{
"text": "1-1-1-0"
}
]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,16 @@
"status": "completed",
"medicationReference": {
"reference": "Medication/Example-Initial-Medication"
}
},
"quantity": {
"value": 1,
"unit": "Packung"
},
"dosageInstruction": [
{
"text": "1-1-1-0"
}
]
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,14 @@
"status": "completed",
"medicationReference": {
"reference": "Medication/Example-Initial-Medication"
}
},
"quantity": {
"value": 1,
"unit": "Packung"
},
"dosageInstruction": [
{
"text": "1-1-1-0"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,62 @@
}
],
"mustSupport": true
},
{
"id": "MedicationDispense.quantity",
"path": "MedicationDispense.quantity",
"short": "Number of dispensed units",
"definition": "The number of units of the medication to be supplied per dispense. Usually value and unit are stated which are free text variants. If a structured code is used it must be from UnitsOfMeasure.",
"min": 1,
"mustSupport": true
},
{
"id": "MedicationDispense.quantity.value",
"path": "MedicationDispense.quantity.value",
"short": "Number dispensed",
"definition": "Number dispensed",
"min": 1,
"mustSupport": true
},
{
"id": "MedicationDispense.quantity.unit",
"path": "MedicationDispense.quantity.unit",
"short": "Requested units of the prescription",
"definition": "This is a free text field that can be used to specify the units of the prescription.",
"min": 1,
"mustSupport": true
},
{
"id": "MedicationDispense.quantity.system",
"path": "MedicationDispense.quantity.system",
"fixedUri": "http://unitsofmeasure.org"
},
{
"id": "MedicationDispense.quantity.code",
"path": "MedicationDispense.quantity.code",
"short": "Code from Unit of measure",
"definition": "If a structured code is used it must be from UnitsOfMeasure"
},
{
"id": "MedicationDispense.dosageInstruction",
"path": "MedicationDispense.dosageInstruction",
"mustSupport": true
},
{
"id": "MedicationDispense.dosageInstruction.text",
"path": "MedicationDispense.dosageInstruction.text",
"short": "Dosieranweisung",
"definition": "Dosieranweisung einer Verordnung",
"maxLength": 500,
"mustSupport": true
},
{
"id": "MedicationDispense.dosageInstruction.patientInstruction",
"path": "MedicationDispense.dosageInstruction.patientInstruction",
"short": "Gebrauchsanweisung einer Rezeptur",
"definition": "Gebrauchsanweisung einer Rezeptur",
"maxLength": 500,
"mustSupport": true
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Description: "Example of a Medication Dispense."
* subject = Reference(Example-Patient)
* status = #completed
* medicationReference = Reference(Example-Initial-Medication)
* quantity.value = 1
* quantity.unit = "Packung"
* dosageInstruction.text = "1-1-1-0"
25 changes: 25 additions & 0 deletions Resources/input/fsh/profiles/4.2_MedicationDispense.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,28 @@ Description: "Medical and pharmaceutical information for the dispense informatio

* medication[x] MS
* medication[x] only Reference(KBV_PR_ERP_Medication_PZN or KBV_PR_ERP_Medication_Compounding or KBV_PR_ERP_Medication_Ingredient or KBV_PR_ERP_Medication_FreeText)

* quantity 1..1 MS
* ^short = "Number of dispensed units"
* ^definition = "The number of units of the medication to be supplied per dispense. Usually value and unit are stated which are free text variants. If a structured code is used it must be from UnitsOfMeasure."
* value 1..1 MS
* ^short = "Number dispensed"
* ^definition = "Number dispensed"
* system 0..1
* system = $UNITSOFMEASURE (exactly)
* code 0..1
* ^short = "Code from Unit of measure"
* ^definition = "If a structured code is used it must be from UnitsOfMeasure"
* unit 1..1 MS
* ^short = "Requested units of the prescription"
* ^definition = "This is a free text field that can be used to specify the units of the prescription."

* dosageInstruction MS
* text MS
* ^short = "Dosieranweisung"
* ^definition = "Dosieranweisung einer Verordnung"
* ^maxLength = 500
* patientInstruction MS
* ^short = "Gebrauchsanweisung einer Rezeptur"
* ^definition = "Gebrauchsanweisung einer Rezeptur"
* ^maxLength = 500
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@
<value value="X234567890"/>
</identifier>
</subject>
<quantity>
<value value="1"/>
<unit value="Packung"/>
</quantity>
<dosageInstruction>
<text value="1-1-1-0"/>
</dosageInstruction>
<performer>
<actor>
<identifier>
Expand Down
Loading

0 comments on commit 7e0f73c

Please sign in to comment.