description: This resource manages the ePrescription workflow package_name: de.gematik.erezept derivation: constraint name: GEM_ERP_PR_Task type: Task elements: meta: index: 0 elements: profile: pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.5'} index: 1 required: [profile] extension: index: 2 slicing: rules: closed description: Extensions are always sliced by (at least) url discriminator: - {path: url, type: value} min: 1 slices: flowType: match: {url: null} schema: {type: Extension, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType', index: 3} min: 1 max: 1 acceptDate: match: {url: null} schema: {type: Extension, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate', index: 4} min: 0 max: 1 expiryDate: match: {url: null} schema: {type: Extension, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate', index: 5} min: 0 max: 1 lastMedicationDispense: match: {url: null} schema: {type: Extension, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense', index: 6} min: 0 max: 1 identifier: index: 7 slicing: rules: closed description: The task ressource contains three identifier. The first one is the identifier for the ask representing one e-prescription. The other identifier are representing the patient as owner of the prescription. One is the "Krankenversichertennummer" which identify each patient by his health insurance company and the other is "Institutionskennzeichen". discriminator: - {path: system, type: value} min: 1 slices: PrescriptionID: match: {system: null} schema: {type: Identifier, short: Prescription Identifier, _required: true, index: 8} min: 1 max: 1 AccessCode: match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'} schema: short: AccessCode Identifier index: 9 elements: system: pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'} index: 10 value: {index: 11} required: [value, system] Secret: match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret'} schema: short: Secret index: 12 elements: system: pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret'} index: 13 value: {index: 14} required: [value, system] intent: pattern: {type: Code, value: order} index: 15 for: short: Identifier of Patient (KVID or PKV-Identifier) index: 16 elements: identifier: {type: Identifier, index: 17} performerType: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_OrganizationType'} index: 18 required: [coding] input: short: Input Bundle mustSupport: true index: 19 slicing: rules: closed discriminator: - {path: type.coding.code, type: value} min: null slices: ePrescription: match: type: coding: {code: '1'} schema: short: QES-Binary of the ePrescription mustSupport: true index: 20 elements: type: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'} index: 21 elements: system: {index: 22} code: pattern: {type: Code, value: '1'} index: 23 required: [system, code] required: [coding] value: choices: [valueReference] index: 25 valueReference: type: Reference choiceOf: value refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary'] index: 26 patientReceipt: match: type: coding: {code: '2'} schema: short: JSON Bundle of the ePrescription to be consumed by the E-Rezept-FdV mustSupport: true index: 27 elements: type: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'} index: 28 elements: system: {index: 29} code: pattern: {type: Code, value: '2'} index: 30 required: [system, code] required: [coding] value: choices: [valueReference] index: 32 valueReference: type: Reference choiceOf: value refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle'] index: 33 output: short: Output Bundle mustSupport: true index: 34 slicing: rules: closed discriminator: - {path: type.coding.code, type: value} min: null slices: receipt: match: type: coding: {code: '3'} schema: mustSupport: true index: 35 elements: type: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'} index: 36 elements: system: {index: 37} code: pattern: {type: Code, value: '3'} index: 38 required: [system, code] required: [coding] value: choices: [valueReference] index: 40 valueReference: type: Reference choiceOf: value refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle'] index: 41 package_version: workflow.r4-1.5.0-beta4 extensions: flowType: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType', min: 1, max: 1, type: Extension, index: 3} acceptDate: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate', min: 0, max: 1, type: Extension, index: 4} expiryDate: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate', min: 0, max: 1, type: Extension, index: 5} lastMedicationDispense: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense', min: 0, max: 1, type: Extension, index: 6} class: profile kind: resource url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task base: http://hl7.org/fhir/StructureDefinition/Task version: '1.5' required: [extension, identifier, meta]