Skip to content

Commit

Permalink
diga-com fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Nov 14, 2024
1 parent 2861e94 commit c6c2722
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 6 deletions.
1 change: 1 addition & 0 deletions API-Examples/2025-01-15/erp_diga/05_response_accept.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
</performerType>
<owner>
<identifier>
<system value="https://gematik.de/fhir/sid/telematik-id"/>
<value value="8-SMC-B-Testkarte-883110000116873"/>
</identifier>
</owner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
</identifier>
</recipient>
<payload>
<contentString value="{&quot;version&quot;: 1, &quot;supplyOptionsType&quot;: &quot;onPremise&quot;, &quot;info_text&quot;: &quot;Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.&quot;}"/>
<contentString value="{&quot;version&quot;: 1, &quot;supplyOptionsType&quot;: &quot;delivery&quot;, &quot;info_text&quot;: &quot;Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.&quot;}"/>
</payload>
</Communication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Communication xmlns="http://hl7.org/fhir">
<id value="erp-diga-07-communication-to-patient-response"/>
<meta>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.4"/>
</meta>
<basedOn>
<reference value="Task/162.000.000.000.000.01"/>
</basedOn>
<status value="unknown"/>
<sent value="2025-01-15T15:29:00.434+00:00"/>
<recipient>
<identifier>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
</recipient>
<sender>
<identifier>
<system value="https://gematik.de/fhir/sid/telematik-id"/>
<value value="8-SMC-B-Testkarte-883110000116873"/>
</identifier>
</sender>
<payload>
<contentString value="{&quot;version&quot;: 1, &quot;supplyOptionsType&quot;: &quot;delivery&quot;, &quot;info_text&quot;: &quot;Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.&quot;}"/>
</payload>
</Communication>
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Usage: #example
* basedOn = Reference(Task/162.000.000.000.000.01/$accept?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea)
* status = #unknown
* extension[flowType].valueCoding = https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType#162
* insert KTRTelematikID(recipient.identifier.value)
* insert KTRTelematikID(recipient.identifier)
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Usage: #inline
* id = "162.000.000.000.000.01"
* insert DiGA_Task(ready)
* insert TaskSecret
* insert KTRTelematikID(owner.identifier.value)
* insert KTRTelematikID(owner.identifier)
* insert TaskInputQES(aed2e8ed-6dd6-4e94-80f4-3ab9e418513a)
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Usage: #example
* status = #unknown
* insert GKV_Identifier(recipient.identifier.value)
* basedOn = Reference(162.000.000.000.000.01)
* payload.contentString = "{\"version\": 1, \"supplyOptionsType\": \"onPremise\", \"info_text\": \"Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.\"}"
* payload.contentString = "{\"version\": 1, \"supplyOptionsType\": \"delivery\", \"info_text\": \"Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.\"}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Instance: erp-diga-07-communication-to-patient-response
InstanceOf: GEM_ERP_PR_Communication_Reply
Usage: #example
* status = #unknown
* insert DateTimeStamp(sent)
* insert GKV_Identifier(recipient.identifier.value)
* insert KTRTelematikID(sender.identifier)
* basedOn = Reference(162.000.000.000.000.01)
* payload.contentString = "{\"version\": 1, \"supplyOptionsType\": \"delivery\", \"info_text\": \"Die Anfrage zur Ausstellung eines Freischaltcodes für die DiGA wurde abgwiesen, da Sie nicht bei der Gematik-KK versichert sind.\"}"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RuleSet: DiGA_MedicationDispense
* medicationReference.identifier.value = "12345678"
* medicationReference.display = "Gematico Diabetestherapie"
* insert GKV_Identifier(subject.identifier.value)
* insert KTRTelematikID(performer.actor.identifier.value)
* insert KTRTelematikID(performer.actor.identifier)
* whenHandedOver = "2024-04-03"

RuleSet: MedicationDispense_PrescriptionID(flowType)
Expand Down
3 changes: 2 additions & 1 deletion API-Examples/FSH-Files/input/fsh/rulesets/Task.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ RuleSet: ArztTelematikID(field)
* {field} = "1-2-DOC-Testkarte-012423424"

RuleSet: KTRTelematikID(field)
* {field} = "8-SMC-B-Testkarte-883110000116873"
* {field}.system = "https://gematik.de/fhir/sid/telematik-id"
* {field}.value = "8-SMC-B-Testkarte-883110000116873"

RuleSet: GKV_Task(status)
* status = #{status}
Expand Down

0 comments on commit c6c2722

Please sign in to comment.