{
"description": "Diese Ressource verwaltet den E-Rezept-Workflow",
"_filename": "StructureDefinition-GEM-ERP-PR-Task.json",
"package_name": "de.gematik.erezept-workflow.r4",
"date": "2025-12-19",
"derivation": "constraint",
"publisher": null,
"fhirVersion": "4.0.1",
"name": "GEM_ERP_PR_Task",
"abstract": false,
"type": "Task",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "Task für die Verwaltung des E-Rezept-Workflows",
"package_version": "1.6.1",
"status": "active",
"id": "4a0b4d2d-6ba2-4345-a749-e399ac27e50a",
"kind": "resource",
"url": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task",
"version": "1.6.1",
"differential": {
"element": [ {
"id": "Task.meta",
"min": 1,
"path": "Task.meta",
"mustSupport": true
}, {
"id": "Task.meta.profile",
"max": "1",
"min": 1,
"path": "Task.meta.profile",
"slicing": {
"rules": "closed",
"ordered": false,
"description": "Slicing für meta profile",
"discriminator": [ {
"path": "$this",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "Task.meta.profile:workflowProfile",
"max": "1",
"min": 1,
"path": "Task.meta.profile",
"sliceName": "workflowProfile",
"mustSupport": true,
"fixedCanonical": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.6"
}, {
"id": "Task.extension",
"min": 1,
"path": "Task.extension",
"slicing": {
"rules": "closed",
"ordered": false,
"description": "Erweiterungen für die Aufgabe, die durch url unterschieden werden.",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
}
}, {
"id": "Task.extension:flowType",
"max": "1",
"min": 1,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType" ]
} ],
"sliceName": "flowType",
"mustSupport": true
}, {
"id": "Task.extension:acceptDate",
"max": "1",
"min": 0,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate" ]
} ],
"sliceName": "acceptDate",
"mustSupport": true
}, {
"id": "Task.extension:expiryDate",
"max": "1",
"min": 0,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate" ]
} ],
"sliceName": "expiryDate",
"mustSupport": true
}, {
"id": "Task.extension:lastMedicationDispense",
"max": "1",
"min": 0,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense" ]
} ],
"sliceName": "lastMedicationDispense"
}, {
"id": "Task.extension:eu-isRedeemableByProperties",
"max": "1",
"min": 0,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PROPERTIES" ]
} ],
"sliceName": "eu-isRedeemableByProperties",
"mustSupport": true
}, {
"id": "Task.extension:eu-isRedeemableByPatientAuthorization",
"max": "1",
"min": 0,
"path": "Task.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PATIENT_AUTHORIZATION" ]
} ],
"sliceName": "eu-isRedeemableByPatientAuthorization",
"mustSupport": true
}, {
"id": "Task.identifier",
"min": 1,
"path": "Task.identifier",
"slicing": {
"rules": "closed",
"description": "Die Task-Ressource enthält zwei Kennungen. Die erste ist die Kennung für den Task, die ein E-Rezept darstellt. Die andere Kennung repräsentiert den Patienten als Eigentümer des E-Rezepts via Krankenversichertennummer (KVNR)",
"discriminator": [ {
"path": "system",
"type": "value"
} ]
}
}, {
"id": "Task.identifier:PrescriptionID",
"max": "1",
"min": 1,
"path": "Task.identifier",
"type": [ {
"code": "Identifier",
"profile": [ "https://gematik.de/fhir/ti/StructureDefinition/e-prescription-id" ]
} ],
"short": "E-Rezept-ID",
"sliceName": "PrescriptionID",
"definition": "Die E-Rezept-ID ist der Hauptidentifikator für die Task Ressource und den gesamten E-Rezept Workflow. Dieser Identifikator wird vom E-Rezept Fachdienst generiert und darf nicht manuell geändert werden."
}, {
"id": "Task.identifier:AccessCode",
"max": "1",
"min": 0,
"path": "Task.identifier",
"short": "AccessCode Identifier",
"sliceName": "AccessCode",
"definition": "Generiert vom E-Rezept Fachdienst. Dieser Identifikator muss in jeder Anfrage zur Task Ressource übertragen werden."
}, {
"id": "Task.identifier:AccessCode.system",
"min": 1,
"path": "Task.identifier.system",
"fixedUri": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode"
}, {
"id": "Task.identifier:AccessCode.value",
"min": 1,
"path": "Task.identifier.value"
}, {
"id": "Task.identifier:Secret",
"max": "1",
"min": 0,
"path": "Task.identifier",
"type": [ {
"code": "Identifier",
"profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Secret" ]
} ],
"short": "Secret",
"sliceName": "Secret"
}, {
"id": "Task.intent",
"path": "Task.intent",
"fixedCode": "order"
}, {
"id": "Task.for",
"path": "Task.for",
"short": "Kennung des Patienten (KVID-Identifier)"
}, {
"id": "Task.for.identifier",
"path": "Task.for.identifier",
"type": [ {
"code": "Identifier",
"profile": [ "http://fhir.de/StructureDefinition/identifier-kvid-10" ]
} ]
}, {
"id": "Task.performerType.coding",
"min": 1,
"path": "Task.performerType.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_OrganizationType"
}
}, {
"id": "Task.input",
"path": "Task.input",
"short": "Input Bundle",
"slicing": {
"rules": "closed",
"discriminator": [ {
"path": "type.coding.code",
"type": "value"
} ]
},
"definition": "Referenz auf Eingabe und Ergebnis des E-Rezeptes während des Prozesses",
"mustSupport": true
}, {
"id": "Task.input:ePrescription",
"max": "1",
"min": 0,
"path": "Task.input",
"short": "QES-Binary des E-Rezept",
"sliceName": "ePrescription",
"mustSupport": true
}, {
"id": "Task.input:ePrescription.type.coding",
"max": "1",
"min": 1,
"path": "Task.input.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
}
}, {
"id": "Task.input:ePrescription.type.coding.system",
"min": 1,
"path": "Task.input.type.coding.system"
}, {
"id": "Task.input:ePrescription.type.coding.code",
"min": 1,
"path": "Task.input.type.coding.code",
"fixedCode": "1"
}, {
"id": "Task.input:ePrescription.value[x]",
"path": "Task.input.value[x]",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary" ]
} ]
}, {
"id": "Task.input:patientReceipt",
"max": "1",
"min": 0,
"path": "Task.input",
"short": "JSON-Bundle des E-Rezepts, das vom E-Rezept-FdV konsumiert werden soll",
"sliceName": "patientReceipt",
"mustSupport": true
}, {
"id": "Task.input:patientReceipt.type.coding",
"max": "1",
"min": 1,
"path": "Task.input.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
}
}, {
"id": "Task.input:patientReceipt.type.coding.system",
"min": 1,
"path": "Task.input.type.coding.system"
}, {
"id": "Task.input:patientReceipt.type.coding.code",
"min": 1,
"path": "Task.input.type.coding.code",
"fixedCode": "2"
}, {
"id": "Task.input:patientReceipt.value[x]",
"path": "Task.input.value[x]",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Bundle" ]
} ],
"comment": "Dies ist ein Bundle eines Rezepts, z.B. KBV_PR_ERP_Bundle oder KBV_PR_EVDGA_Bundle"
}, {
"id": "Task.output",
"path": "Task.output",
"short": "Output Bundle",
"slicing": {
"rules": "closed",
"discriminator": [ {
"path": "type.coding.code",
"type": "value"
} ]
},
"definition": "Referenz auf das Bundle, das die Quittung darstellt.",
"mustSupport": true
}, {
"id": "Task.output:receipt",
"max": "1",
"min": 0,
"path": "Task.output",
"sliceName": "receipt",
"mustSupport": true
}, {
"id": "Task.output:receipt.type.coding",
"max": "1",
"min": 1,
"path": "Task.output.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
}
}, {
"id": "Task.output:receipt.type.coding.system",
"min": 1,
"path": "Task.output.type.coding.system"
}, {
"id": "Task.output:receipt.type.coding.code",
"min": 1,
"path": "Task.output.type.coding.code",
"fixedCode": "3"
}, {
"id": "Task.output:receipt.value[x]",
"path": "Task.output.value[x]",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle" ]
} ]
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task"
}