Skip to content

Commit

Permalink
add diga get task example
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Nov 22, 2024
1 parent 5ecb22c commit a320335
Show file tree
Hide file tree
Showing 8 changed files with 641 additions and 4 deletions.
493 changes: 493 additions & 0 deletions API-Examples/2025-01-15/erp_diga/02_response_taskGetSingle.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion API-Examples/FSH-Files/input/fsh/aliases.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Alias: $KBV_CS_SFHIR_KBV_PERSONENGRUPPE = https://fhir.kbv.de/CodeSystem/KBV_CS_
Alias: $KBV_CS_SFHIR_KBV_DMP = https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DMP
Alias: $KBV_CS_SFHIR_ITA_WOP = https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_ITA_WOP
Alias: $KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS = https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS
Alias: $KBV_CS_EVDGA_Section_Type = https://fhir.kbv.de/CodeSystem/KBV_CS_EVDGA_Section_Type
Alias: $KBV_CS_FOR_Berufsbezeichnung = https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Berufsbezeichnung

Alias: $versicherungsart-de-basis = http://fhir.de/CodeSystem/versicherungsart-de-basis
Alias: $KBV_CS_FOR_Qualification_Type = https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Qualification_Type
Expand All @@ -58,4 +60,4 @@ Alias: $audit-event-type = http://terminology.hl7.org/CodeSystem/audit-event-typ
Alias: $restful-interaction = http://hl7.org/fhir/restful-interaction
Alias: $extra-security-role-type = http://terminology.hl7.org/CodeSystem/extra-security-role-type
Alias: $signature-type = http://hl7.org/fhir/ValueSet/signature-type
Alias: $signature-type-cs = http://hl7.org/fhir/CodeSystem/signature-type
Alias: $signature-type-cs = http://hl7.org/fhir/CodeSystem/signature-type
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
Instance: DiGA-Verordnungsdatensatz
InstanceOf: KBV_PR_EVDGA_Bundle
Usage: #example
* insert RS_DiGA_VerordnungsDatensatz(162.000.000.000.000.01)

RuleSet: RS_DiGA_VerordnungsDatensatz(task-id)
* identifier.value = "{task-id}"
* type = #document
* insert DateTimeStamp(timestamp)
* entry[DokumentenInformation].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Composition/55eb2cd5-27f0-46ef-87d1-1ffc30e85fd9"
* entry[DokumentenInformation].resource = 55eb2cd5-27f0-46ef-87d1-1ffc30e85fd9
* entry[VerordnungDiGA].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/DeviceRequest/a1533e28-4631-4afa-b5e6-f233fad87f53"
* entry[VerordnungDiGA].resource = a1533e28-4631-4afa-b5e6-f233fad87f53
* entry[Patient].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Patient/40acd463-b25d-4ede-8b1f-2b0994f29aa5"
* entry[Patient].resource = 40acd463-b25d-4ede-8b1f-2b0994f29aa5
* entry[AusstellendeVerschreibendeVerantwortlichePerson].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Practitioner/1228772e-1c72-493b-8b5c-5ae54d25843d"
* entry[AusstellendeVerschreibendeVerantwortlichePerson].resource = 1228772e-1c72-493b-8b5c-5ae54d25843d
* entry[Einrichtung].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Organization/b87b9d90-c8db-4660-93eb-fed916caa2da"
* entry[Einrichtung].resource = b87b9d90-c8db-4660-93eb-fed916caa2da
* entry[Kostentraeger].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Coverage/2d3a92c2-c93c-47ad-8ab5-49b275be97ee"
* entry[Kostentraeger].resource = 2d3a92c2-c93c-47ad-8ab5-49b275be97ee

Instance: 55eb2cd5-27f0-46ef-87d1-1ffc30e85fd9
InstanceOf: KBV_PR_EVDGA_Composition
Usage: #inline
* extension[rechtsgrundlage].valueCoding = $KBV_CS_SFHIR_KBV_STATUSKENNZEICHEN#00
* status = #final
* type = $KBV_CS_SFHIR_KBV_FORMULAR_ART#e16D
* subject = Reference(40acd463-b25d-4ede-8b1f-2b0994f29aa5)
* insert DateTimeStamp(date)
* author[AusstellendePerson] = Reference(1228772e-1c72-493b-8b5c-5ae54d25843d)
* author[AusstellendePerson].type = "Practitioner"
* author[Pruefnummer].type = "Device"
* author[Pruefnummer].identifier.system = "https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"
* author[Pruefnummer].identifier.value = "Y/450/2501/36/523"
* title = "elektronische Verordnung digitaler Gesundheitsanwendungen"
* custodian = Reference(b87b9d90-c8db-4660-93eb-fed916caa2da)
* section[VerordnungDiGA].code = $KBV_CS_EVDGA_Section_Type#Prescription
* section[VerordnungDiGA].entry = Reference(a1533e28-4631-4afa-b5e6-f233fad87f53)
* section[Krankenversicherungsverhaeltnis].code = $KBV_CS_EVDGA_Section_Type#HealthInsurance
* section[Krankenversicherungsverhaeltnis].entry = Reference(2d3a92c2-c93c-47ad-8ab5-49b275be97ee)

Instance: a1533e28-4631-4afa-b5e6-f233fad87f53
InstanceOf: KBV_PR_EVDGA_HealthAppRequest
Usage: #inline
* extension[SER].valueBoolean = false
* status = #active
* intent = #order
* codeCodeableConcept = $pzn-cs#19205615
* codeCodeableConcept.text = "Vantis KHK und Herzinfarkt 001"
* subject = Reference(40acd463-b25d-4ede-8b1f-2b0994f29aa5)
* insert Date(authoredOn)
* requester = Reference(1228772e-1c72-493b-8b5c-5ae54d25843d)
* insurance = Reference(2d3a92c2-c93c-47ad-8ab5-49b275be97ee)

Instance: 40acd463-b25d-4ede-8b1f-2b0994f29aa5
InstanceOf: KBV_PR_FOR_Patient
Usage: #inline
* identifier[versichertenId_GKV].value = "X234567890"
* name[name]
* .use = #official
* family.extension[nachname].valueString = "Königsstein"
* family = "Ludger Königsstein"
* given = "Ludger"
* birthDate = "1935-06-22"
* address[Strassenanschrift]
* type = #both
* line = "Musterstr. 1"
* line.extension[Hausnummer].valueString = "1"
* line.extension[Strasse].valueString = "Musterstr."
* city = "Berlin"
* postalCode = "10623"

Instance: 1228772e-1c72-493b-8b5c-5ae54d25843d
InstanceOf: KBV_PR_FOR_Practitioner
Usage: #inline
* identifier[ANR].value = "838382210"
* name[name]
* use = #official
* family.extension[nachname].valueString = "Meier"
* family = "Meier"
* given = "Jörgen"
* qualification[Typ].code = $KBV_CS_FOR_Qualification_Type#00
* qualification[Berufsbezeichnung].code.text = "Hausarzt"

Instance: b87b9d90-c8db-4660-93eb-fed916caa2da
InstanceOf: KBV_PR_FOR_Organization
Usage: #inline
* identifier[Betriebsstaettennummer].value = "031234567"
* name = "Hausarztpraxis Dr. Topp-Glücklich"
* telecom[telefon].value = "0301234567"
* address[Strassenanschrift]
* type = #both
* line = "Musterstr. 2"
* line.extension[Hausnummer].valueString = "2"
* line.extension[Strasse].valueString = "Musterstr."
* city = "Berlin"
* postalCode = "10623"


Instance: 2d3a92c2-c93c-47ad-8ab5-49b275be97ee
InstanceOf: KBV_PR_FOR_Coverage
Usage: #inline
* extension[BesonderePersonengruppe].valueCoding = $KBV_CS_SFHIR_KBV_PERSONENGRUPPE#00
* extension[DMPKennzeichen].valueCoding = $KBV_CS_SFHIR_KBV_DMP#00
* extension[WOP].valueCoding = $KBV_CS_SFHIR_ITA_WOP#03
* extension[Versichertenart].valueCoding = $KBV_CS_SFHIR_KBV_VERSICHERTENSTATUS#1
* type = $versicherungsart-de-basis#GKV
* beneficiary = Reference(9774f67f-a238-4daf-b4e6-Pat-GKV)
* payor.identifier.value = "104212059"
* payor.display = "AOK Rheinland/Hamburg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Instance: erp-diga-02-response-taskGetSingle
InstanceOf: Bundle
Usage: #example
* insert DateTimeStamp(meta.lastUpdated)
* type = #collection
* link.relation = "self"
* link.url = "https://erp.app.ti-dienste.de/Task/162.000.000.000.000.01"
* entry[+].fullUrl = "https://erp.app.ti-dienste.de/Task/162.000.000.000.000.01"
* entry[=].resource = 162.000.000.000.000.01-2
* entry[+].fullUrl = "urn:uuid:3ebd56b4-5cdf-42bc-b26a-738d0b08068a"
* entry[=].resource = 3ebd56b4-5cdf-42bc-b26a-738d0b08068a

Instance: 162.000.000.000.000.01-2
InstanceOf: GEM_ERP_PR_Task
Usage: #inline
* id = "162.000.000.000.000.01"
* insert DiGA_Task(ready)
* insert TaskIdentifierAccessCode
* insert TaskInputReceipt(3ebd56b4-5cdf-42bc-b26a-738d0b08068a)
// TODO: Bug im E-Rezept-Fachdienst
* input[patientReceipt].type = $GEM_ERP_CS_DocumentType#2
* input[patientReceipt].valueReference.reference = "3ebd56b4-5cdf-42bc-b26a-738d0b08068a"

Instance: 3ebd56b4-5cdf-42bc-b26a-738d0b08068a
InstanceOf: KBV_PR_EVDGA_Bundle
Usage: #inline
* insert RS_DiGA_VerordnungsDatensatz(162.000.000.000.000.01)
1 change: 1 addition & 0 deletions API-Examples/FSH-Files/scripts/process_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ files_to_copy=(
"Bundle-erp-consent-03-response-GetConsent.json"

"Bundle-erp-diga-02-response-fhir-vzd.json"
"Bundle-erp-diga-02-response-taskGetSingle.json"
"Communication-erp-diga-03-communication-zuweisung-diga.json"
"MedicationDispense-erp-diga-04-medication-dispense-diga.json"

Expand Down
1 change: 1 addition & 0 deletions API-Examples/FSH-Files/sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
kbv.basis: 1.3.0
kbv.ita.for: 1.1.x
kbv.ita.erp: 1.1.x
kbv.itv.evdga: 1.1.x
# gematik
de.gematik.erezept-workflow.r4: 1.4.x
de.gematik.erezept-patientenrechnung.r4: 1.0.x
Expand Down
5 changes: 3 additions & 2 deletions fhirpkg.lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updated": "2024-11-06T07:20:59.73522+01:00",
"updated": "2024-11-22T06:59:56.38301+01:00",
"dependencies": {
"de.basisprofil.r4": "1.5.0",
"hl7.fhir.r4.core": "4.0.1",
Expand All @@ -12,7 +12,8 @@
"de.gematik.erezept-workflow.r4": "1.4.3",
"de.gematik.erezept-patientenrechnung.r4": "1.0.4",
"de.abda.eRezeptAbgabedatenPKV": "1.3.0",
"de.abda.erezeptabgabedatenbasis": "1.4.1"
"de.abda.erezeptabgabedatenbasis": "1.4.1",
"kbv.itv.evdga": "1.1.0"
},
"missing": {}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"de.gematik.erezept-workflow.r4": "1.4.3",
"de.gematik.erezept-patientenrechnung.r4": "1.0.4",
"de.abda.eRezeptAbgabedatenPKV": "1.3.0",
"de.abda.eRezeptAbgabedatenBasis": "1.4.1"
"de.abda.eRezeptAbgabedatenBasis": "1.4.1",
"kbv.itv.evdga": "1.1.0"
}
}

0 comments on commit a320335

Please sign in to comment.