Skip to content

Commit

Permalink
Edit Communication Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Nov 5, 2024
1 parent d4225b8 commit 0a522d6
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 184 deletions.
26 changes: 13 additions & 13 deletions Resources/fsh-generated/fsh-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,37 +87,37 @@
"startLine": 1,
"endLine": 8
},
{
"outputFile": "Communication-140f716f-f649-44fe-9a4e-157eb3c8adf3.json",
"fshName": "Communication_Reply_KTR",
"fshType": "Instance",
"fshFile": "examples/Example_Communication_Diga.fsh",
"startLine": 2,
"endLine": 17
},
{
"outputFile": "Communication-2be1c6ac-5d10-47f6-84ee-8318b2c22c76.json",
"fshName": "Communication_DispenseRequest_DiGA",
"fshType": "Instance",
"fshFile": "examples/Example_Communication_DispReq.fsh",
"startLine": 19,
"endLine": 34
"startLine": 20,
"endLine": 36
},
{
"outputFile": "Communication-7977a4ab-97a9-4d95-afb3-6c4c1e2ac596.json",
"fshName": "Communication_Reply",
"fshName": "Communication_Reply_Pharmacy",
"fshType": "Instance",
"fshFile": "examples/Example_Communication_Reply.fsh",
"startLine": 2,
"endLine": 26
},
{
"outputFile": "Communication-8ca3c379-ac86-470f-bc12-178c9008f5c9.json",
"fshName": "Communication_InformationRequest",
"fshType": "Instance",
"fshFile": "examples/Example_Communication_InfoReq.fsh",
"startLine": 1,
"endLine": 35
"endLine": 25
},
{
"outputFile": "Communication-a218a36e-f2fd-4603-ba67-c827acfef01b.json",
"fshName": "Communication_DispenseRequest",
"fshType": "Instance",
"fshFile": "examples/Example_Communication_DispReq.fsh",
"startLine": 1,
"endLine": 17
"endLine": 18
},
{
"outputFile": "Medication-Augentropfen.json",
Expand Down
8 changes: 4 additions & 4 deletions Resources/fsh-generated/fsh-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ CodeSystem-GEM-ERP-CS-AvailabilityStatus.json GEM_E
CodeSystem-GEM-ERP-CS-DocumentType.json GEM_ERP_CS_DocumentType CodeSystem codesystems/GEM_ERP_CS_DocumentType.fsh 1 - 10
CodeSystem-GEM-ERP-CS-FlowType.json GEM_ERP_CS_FlowType CodeSystem codesystems/GEM_ERP_CS_FlowType.fsh 1 - 16
CodeSystem-GEM-ERP-CS-OrganizationType.json GEM_ERP_CS_OrganizationType CodeSystem codesystems/GEM_ERP_CS_OrganizationType.fsh 1 - 8
Communication-2be1c6ac-5d10-47f6-84ee-8318b2c22c76.json Communication_DispenseRequest_DiGA Instance examples/Example_Communication_DispReq.fsh 19 - 34
Communication-7977a4ab-97a9-4d95-afb3-6c4c1e2ac596.json Communication_Reply Instance examples/Example_Communication_Reply.fsh 2 - 26
Communication-8ca3c379-ac86-470f-bc12-178c9008f5c9.json Communication_InformationRequest Instance examples/Example_Communication_InfoReq.fsh 1 - 35
Communication-a218a36e-f2fd-4603-ba67-c827acfef01b.json Communication_DispenseRequest Instance examples/Example_Communication_DispReq.fsh 1 - 17
Communication-140f716f-f649-44fe-9a4e-157eb3c8adf3.json Communication_Reply_KTR Instance examples/Example_Communication_Diga.fsh 2 - 17
Communication-2be1c6ac-5d10-47f6-84ee-8318b2c22c76.json Communication_DispenseRequest_DiGA Instance examples/Example_Communication_DispReq.fsh 20 - 36
Communication-7977a4ab-97a9-4d95-afb3-6c4c1e2ac596.json Communication_Reply_Pharmacy Instance examples/Example_Communication_Reply.fsh 1 - 25
Communication-a218a36e-f2fd-4603-ba67-c827acfef01b.json Communication_DispenseRequest Instance examples/Example_Communication_DispReq.fsh 1 - 18
Medication-Augentropfen.json Augentropfen Instance examples/Example_Medication_Kombipackung.fsh 20 - 37
Medication-Medication-Kombipackung.json Medication-Kombipackung Instance examples/Example_Medication_Kombipackung.fsh 2 - 18
Medication-Medication-Rezeptur-FD.json Medication-Rezeptur-FD Instance examples/Example_Medication_Rezeptur_FD.fsh 2 - 45
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"resourceType": "Communication",
"id": "140f716f-f649-44fe-9a4e-157eb3c8adf3",
"meta": {
"profile": [
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.4"
],
"tag": [
{
"display": "Health Care Provider to Patient"
},
{
"display": "Communication message sent by health care provider to patient"
}
]
},
"status": "unknown",
"recipient": [
{
"identifier": {
"system": "http://fhir.de/sid/gkv/kvid-10",
"value": "X234567890"
}
}
],
"basedOn": [
{
"reference": "Task/162.000.000.000.000.01"
}
],
"sender": {
"identifier": {
"system": "https://gematik.de/fhir/sid/telematik-id",
"value": "8-SMC-B-Testkarte-783498105628375"
}
},
"sent": "2025-01-15T15:29:00.434+00:00",
"payload": [
{
"contentString": "Nachrichteninhalt für den Versicherten"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
],
"tag": [
{
"display": "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode"
"display": "Dispense Request from Patient to Health Care Provider"
},
{
"display": "Communication message sent by patient to Health Care Provider to request the redeemCode for a DiGA"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.4"
],
"tag": [
{
"display": "Reply from Pharmacy to Patient"
},
{
"display": "Communication message sent by pharmacy to patient in response to a previous Task-related message"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_DispReq|1.4"
],
"tag": [
{
"display": "Dispense Request from Patient to Pharmacy"
},
{
"display": "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode"
}
Expand Down
17 changes: 17 additions & 0 deletions Resources/input/fsh/examples/Example_Communication_Diga.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Instance: Communication_Reply_KTR
InstanceOf: GEM_ERP_PR_Communication_Reply
Title: "Communication message sent by health care provider to patient"
Usage: #example
* id = "140f716f-f649-44fe-9a4e-157eb3c8adf3"
* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_Communication_Reply)
* meta.tag[+].display = "Health Care Provider to Patient"
* meta.tag[+].display = "Communication message sent by health care provider to patient"
* basedOn.reference = "Task/162.000.000.000.000.01"
* status = #unknown
* sender.identifier.system = $identifier-telematik-id
* sender.identifier.value = "8-SMC-B-Testkarte-783498105628375"
* recipient.identifier.system = $identifier-kvid-10
* recipient.identifier.value = "X234567890"
* insert DateTimeStamp(sent)
* payload.contentString = "Nachrichteninhalt für den Versicherten"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Title: "Communication message sent by patient to pharmacy to request the dispens
Usage: #example
* id = "a218a36e-f2fd-4603-ba67-c827acfef01b"
* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_Communication_DispReq)
* meta.tag.display = "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode"
* meta.tag[+].display = "Dispense Request from Patient to Pharmacy"
* meta.tag[+].display = "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode"
* extension[flowType].url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType"
* extension[flowType].valueCoding = https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType#160 "Muster 16 (Apothekenpflichtige Arzneimittel)"
* basedOn.reference = "Task/160.000.033.491.280.78/$accept?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
Expand All @@ -22,7 +23,8 @@ Title: "Communication message sent by patient to insurance company to request th
Usage: #example
* id = "2be1c6ac-5d10-47f6-84ee-8318b2c22c76"
* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_Communication_DispReq)
* meta.tag.display = "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode"
* meta.tag[+].display = "Dispense Request from Patient to Health Care Provider"
* meta.tag[+].display = "Communication message sent by patient to Health Care Provider to request the redeemCode for a DiGA"
* extension[flowType].url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType"
* extension[flowType].valueCoding = https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType#162 "Muster 16 (Digitale Gesundheitsanwendungen)"
* basedOn.reference = "Task/162.000.033.491.280.78/$accept?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
Instance: Communication_InformationRequest
InstanceOf: GEM_ERP_PR_Communication_InfoReq
Title: "Communication message sent by patient to pharmacy to ask for availybility of medicine WITHOUT providing the AccessCode"
Expand Down Expand Up @@ -33,3 +34,4 @@ Usage: #example
* payload.extension[PreferredSupplyOptions].extension[delivery].url = "delivery"
* payload.extension[PreferredSupplyOptions].extension[delivery].valueBoolean = true
* payload.contentString = "U.N.V.E.U."
*/
29 changes: 14 additions & 15 deletions Resources/input/fsh/examples/Example_Communication_Reply.fsh
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@

Instance: Communication_Reply
Instance: Communication_Reply_Pharmacy
InstanceOf: GEM_ERP_PR_Communication_Reply
Title: "Communication message sent by pharmacy to patient in response to a previous Task-related message"
Usage: #example
* id = "7977a4ab-97a9-4d95-afb3-6c4c1e2ac596"
* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_Communication_Reply)
* meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous Task-related message"
* meta.tag[+].display = "Reply from Pharmacy to Patient"
* meta.tag[+].display = "Communication message sent by pharmacy to patient in response to a previous Task-related message"
* basedOn.reference = "Task/160.000.033.491.280.78"
* status = #unknown
* sender.identifier.system = $identifier-telematik-id
* sender.identifier.value = "3-SMC-B-Testkarte-883110000123465"
* recipient[+].identifier.system = $identifier-kvid-10
* recipient[=].identifier.value = "X234567890"
* recipient.identifier.system = $identifier-kvid-10
* recipient.identifier.value = "X234567890"
* insert DateTimeStamp(sent)
* payload.extension[AvailabilityStatus].url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AvailabilityState"
* payload.extension[AvailabilityStatus].valueCoding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_AvailabilityStatus"
* payload.extension[AvailabilityStatus].valueCoding.code = #20
* payload.extension[OfferedSupplyOptions].url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_SupplyOptionsType"
* payload.extension[OfferedSupplyOptions].extension[onPremise].url = "onPremise"
* payload.extension[OfferedSupplyOptions].extension[onPremise].valueBoolean = true
* payload.extension[OfferedSupplyOptions].extension[shipment].url = "shipment"
* payload.extension[OfferedSupplyOptions].extension[shipment].valueBoolean = false
* payload.extension[OfferedSupplyOptions].extension[delivery].url = "delivery"
* payload.extension[OfferedSupplyOptions].extension[delivery].valueBoolean = true
* payload.extension[AvailabilityStatus]
* url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AvailabilityState"
* valueCoding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_AvailabilityStatus"
* valueCoding.code = #20
* payload.extension[OfferedSupplyOptions]
* url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_SupplyOptionsType"
* extension[onPremise].valueBoolean = true
* extension[shipment].valueBoolean = false
* extension[delivery].valueBoolean = true
* payload.contentString = "Eisern"

0 comments on commit 0a522d6

Please sign in to comment.