Skip to content

Commit ca09a4f

Browse files
Update Parameters Dispense Example
1 parent e50a0eb commit ca09a4f

File tree

6 files changed

+66
-26
lines changed

6 files changed

+66
-26
lines changed

Resources/fsh-generated/fsh-index.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,16 @@
124124
"fshName": "Medication-Without-Strength-Code",
125125
"fshType": "Instance",
126126
"fshFile": "examples/Example_Medication.fsh",
127-
"startLine": 33,
128-
"endLine": 50
127+
"startLine": 58,
128+
"endLine": 75
129129
},
130130
{
131131
"outputFile": "Medication-Medication-Without-Strength-Numerator.json",
132132
"fshName": "Medication-Without-Strength-Numerator",
133133
"fshType": "Instance",
134134
"fshFile": "examples/Example_Medication.fsh",
135-
"startLine": 52,
136-
"endLine": 70
135+
"startLine": 77,
136+
"endLine": 95
137137
},
138138
{
139139
"outputFile": "Medication-MedicationDexpanthenol-FD.json",
@@ -180,8 +180,8 @@
180180
"fshName": "SimpleMedication",
181181
"fshType": "Instance",
182182
"fshFile": "examples/Example_Medication.fsh",
183-
"startLine": 25,
184-
"endLine": 30
183+
"startLine": 50,
184+
"endLine": 55
185185
},
186186
{
187187
"outputFile": "Medication-SumatripanMedication.json",
@@ -196,8 +196,8 @@
196196
"fshName": "Example-MedicationDispense-2",
197197
"fshType": "Instance",
198198
"fshFile": "examples/Example_MedicationDispense.fsh",
199-
"startLine": 29,
200-
"endLine": 41
199+
"startLine": 44,
200+
"endLine": 56
201201
},
202202
{
203203
"outputFile": "MedicationDispense-Example-MedicationDispense-DiGA-DeepLink.json",
@@ -228,24 +228,24 @@
228228
"fshName": "Example-MedicationDispense-Kombipackung",
229229
"fshType": "Instance",
230230
"fshFile": "examples/Example_MedicationDispense.fsh",
231-
"startLine": 43,
232-
"endLine": 55
231+
"startLine": 58,
232+
"endLine": 70
233233
},
234234
{
235235
"outputFile": "MedicationDispense-Example-MedicationDispense-Rezeptur.json",
236236
"fshName": "Example-MedicationDispense-Rezeptur",
237237
"fshType": "Instance",
238238
"fshFile": "examples/Example_MedicationDispense.fsh",
239-
"startLine": 57,
240-
"endLine": 69
239+
"startLine": 72,
240+
"endLine": 84
241241
},
242242
{
243243
"outputFile": "MedicationDispense-Example-MedicationDispense-Without-Medication.json",
244244
"fshName": "Example-MedicationDispense-Without-Medication",
245245
"fshType": "Instance",
246246
"fshFile": "examples/Example_MedicationDispense.fsh",
247-
"startLine": 15,
248-
"endLine": 27
247+
"startLine": 30,
248+
"endLine": 42
249249
},
250250
{
251251
"outputFile": "MedicationDispense-Example-MedicationDispense.json",

Resources/fsh-generated/fsh-index.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ Medication-Augentropfen.json Augen
1414
Medication-Medication-Kombipackung.json Medication-Kombipackung Instance examples/Example_Medication_Kombipackung.fsh 2 - 18
1515
Medication-Medication-Rezeptur-FD.json Medication-Rezeptur-FD Instance examples/Example_Medication_Rezeptur_FD.fsh 2 - 45
1616
Medication-Medication-Rezeptur.json Medication-Rezeptur Instance examples/Example_Medication_Rezeptur.fsh 2 - 41
17-
Medication-Medication-Without-Strength-Code.json Medication-Without-Strength-Code Instance examples/Example_Medication.fsh 33 - 50
18-
Medication-Medication-Without-Strength-Numerator.json Medication-Without-Strength-Numerator Instance examples/Example_Medication.fsh 52 - 70
17+
Medication-Medication-Without-Strength-Code.json Medication-Without-Strength-Code Instance examples/Example_Medication.fsh 58 - 75
18+
Medication-Medication-Without-Strength-Numerator.json Medication-Without-Strength-Numerator Instance examples/Example_Medication.fsh 77 - 95
1919
Medication-MedicationDexpanthenol-FD.json MedicationDexpanthenol-FD Instance examples/Example_Medication_Rezeptur_FD.fsh 57 - 65
2020
Medication-MedicationDexpanthenol.json MedicationDexpanthenol Instance examples/Example_Medication_Rezeptur.fsh 53 - 61
2121
Medication-MedicationHydrocortison-FD.json MedicationHydrocortison-FD Instance examples/Example_Medication_Rezeptur_FD.fsh 47 - 55
2222
Medication-MedicationHydrocortison.json MedicationHydrocortison Instance examples/Example_Medication_Rezeptur.fsh 43 - 51
2323
Medication-NasenSpray.json NasenSpray Instance examples/Example_Medication_Kombipackung.fsh 39 - 56
24-
Medication-SimpleMedication.json SimpleMedication Instance examples/Example_Medication.fsh 25 - 30
24+
Medication-SimpleMedication.json SimpleMedication Instance examples/Example_Medication.fsh 50 - 55
2525
Medication-SumatripanMedication.json SumatripanMedication Instance examples/Example_Medication.fsh 2 - 23
26-
MedicationDispense-Example-MedicationDispense-2.json Example-MedicationDispense-2 Instance examples/Example_MedicationDispense.fsh 29 - 41
26+
MedicationDispense-Example-MedicationDispense-2.json Example-MedicationDispense-2 Instance examples/Example_MedicationDispense.fsh 44 - 56
2727
MedicationDispense-Example-MedicationDispense-DiGA-DeepLink.json Example-MedicationDispense-DiGA-DeepLink Instance examples/Example_MedicationDispense_DiGA.fsh 18 - 34
2828
MedicationDispense-Example-MedicationDispense-DiGA-Name-And-PZN.json Example-MedicationDispense-DiGA-Name-And-PZN Instance examples/Example_MedicationDispense_DiGA.fsh 1 - 16
2929
MedicationDispense-Example-MedicationDispense-DiGA-NoRedeemCode.json Example-MedicationDispense-DiGA-NoRedeemCode Instance examples/Example_MedicationDispense_DiGA.fsh 36 - 49
30-
MedicationDispense-Example-MedicationDispense-Kombipackung.json Example-MedicationDispense-Kombipackung Instance examples/Example_MedicationDispense.fsh 43 - 55
31-
MedicationDispense-Example-MedicationDispense-Rezeptur.json Example-MedicationDispense-Rezeptur Instance examples/Example_MedicationDispense.fsh 57 - 69
32-
MedicationDispense-Example-MedicationDispense-Without-Medication.json Example-MedicationDispense-Without-Medication Instance examples/Example_MedicationDispense.fsh 15 - 27
30+
MedicationDispense-Example-MedicationDispense-Kombipackung.json Example-MedicationDispense-Kombipackung Instance examples/Example_MedicationDispense.fsh 58 - 70
31+
MedicationDispense-Example-MedicationDispense-Rezeptur.json Example-MedicationDispense-Rezeptur Instance examples/Example_MedicationDispense.fsh 72 - 84
32+
MedicationDispense-Example-MedicationDispense-Without-Medication.json Example-MedicationDispense-Without-Medication Instance examples/Example_MedicationDispense.fsh 30 - 42
3333
MedicationDispense-Example-MedicationDispense.json Example-MedicationDispense Instance examples/Example_MedicationDispense.fsh 1 - 13
3434
OperationDefinition-AbortOperation.json AbortOperation Instance operationdefinitions/GEM_ERP_OP_Abort.fsh 1 - 23
3535
OperationDefinition-AcceptOperation.json AcceptOperation Instance operationdefinitions/GEM_ERP_OP_Accept.fsh 1 - 25

Resources/fsh-generated/resources/Parameters-ExampleDispenseOutputParametersSuccess.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"name": "medicationDispense",
1515
"resource": {
1616
"resourceType": "MedicationDispense",
17-
"id": "Example-MedicationDispense",
17+
"id": "160.000.033.491.280.78",
1818
"meta": {
1919
"profile": [
2020
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.4"
@@ -45,15 +45,15 @@
4545
],
4646
"whenHandedOver": "2024-04-03",
4747
"medicationReference": {
48-
"reference": "Medication/SumatripanMedication"
48+
"reference": "Medication/30e0e53f-275c-46f5-9e59-04d55735dabb"
4949
}
5050
}
5151
},
5252
{
5353
"name": "medication",
5454
"resource": {
5555
"resourceType": "Medication",
56-
"id": "SumatripanMedication",
56+
"id": "30e0e53f-275c-46f5-9e59-04d55735dabb",
5757
"meta": {
5858
"profile": [
5959
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"

Resources/input/fsh/examples/Example_Medication.fsh

+25
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@ Usage: #example
2222
* amount.numerator.extension[totalQuantity].valueString = "20"
2323
* amount.denominator.value = 1
2424

25+
// Single Medication
26+
Instance: SumatripanMedicationWithID
27+
InstanceOf: GEM_ERP_PR_Medication
28+
Title: "Sample Medication Sumatripan"
29+
Usage: #inline
30+
* id = "30e0e53f-275c-46f5-9e59-04d55735dabb"
31+
// Arzneimittelkategorie
32+
* extension[drugCategory].valueCoding = EPADrugCategoryCS#00
33+
34+
// Impfstoff
35+
* extension[isVaccine].valueBoolean = false
36+
37+
// normgroesse
38+
* extension[normSizeCode].url = "http://fhir.de/StructureDefinition/normgroesse"
39+
* extension[normSizeCode].valueCode = #N1
40+
* code.coding[pzn].system = "http://fhir.de/CodeSystem/ifa/pzn"
41+
* code.coding[pzn].code = #06313728
42+
* code.text = "Sumatriptan-1a Pharma 100 mg Tabletten"
43+
* form.coding[kbvDarreichungsform].system = "https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM"
44+
* form.coding[kbvDarreichungsform].code = #TAB
45+
* amount.numerator.value = 20
46+
* amount.numerator.unit = "St"
47+
* amount.numerator.extension[totalQuantity].valueString = "20"
48+
* amount.denominator.value = 1
49+
2550
Instance: SimpleMedication
2651
InstanceOf: GEM_ERP_PR_Medication
2752
Title: "Sample Simple Medication"

Resources/input/fsh/examples/Example_MedicationDispense.fsh

+15
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ Description: "Example of a Medication Dispense."
1212
* whenHandedOver = "2024-04-03"
1313
* medicationReference = Reference(SumatripanMedication)
1414

15+
Instance: Example-MedicationDispense-ToID
16+
InstanceOf: GEM_ERP_PR_MedicationDispense
17+
Usage: #inline
18+
Title: "Example Medication Dispense"
19+
Description: "Example of a Medication Dispense."
20+
* id = "160.000.033.491.280.78"
21+
* identifier[prescriptionID].system = "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"
22+
* identifier[prescriptionID].value = "160.000.033.491.280.78"
23+
* subject.identifier.system = $identifier-kvid-10
24+
* subject.identifier.value = "X123456789"
25+
* performer.actor.identifier.system = $identifier-telematik-id
26+
* performer.actor.identifier.value = "3-SMC-B-Testkarte-883110000095957"
27+
* whenHandedOver = "2024-04-03"
28+
* medicationReference = Reference(30e0e53f-275c-46f5-9e59-04d55735dabb)
29+
1530
Instance: Example-MedicationDispense-Without-Medication
1631
InstanceOf: GEM_ERP_PR_MedicationDispense
1732
Usage: #example

Resources/input/fsh/examples/parameters_examples/Example_Parameters_Dispense.fsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ Title: "Example Dispense Parameters Response on Success"
5353
* name = "rxDispensation"
5454
* part[medicationDispense]
5555
* name = "medicationDispense"
56-
* resource = Example-MedicationDispense
56+
* resource = Example-MedicationDispense-ToID
5757
* part[medication]
5858
* name = "medication"
59-
* resource = SumatripanMedication
59+
* resource = SumatripanMedicationWithID
6060

6161
Instance: ExampleDispenseOutputParametersError
6262
InstanceOf: GEM_ERP_PR_PAR_DispenseOperation_Output

0 commit comments

Comments
 (0)