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.2'} 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 identifier: index: 6 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: 7} min: 1 max: 1 AccessCode: match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'} schema: short: AccessCode Identifier index: 8 elements: system: pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'} index: 9 value: {index: 10} required: [value, system] Secret: match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret'} schema: short: Secret index: 11 elements: system: pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret'} index: 12 value: {index: 13} required: [value, system] intent: pattern: {type: Code, value: order} index: 14 for: short: Identifier of Patient (KVID or PKV-Identifier) index: 15 elements: identifier: {type: Identifier, index: 16} performerType: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_OrganizationType'} index: 17 required: [coding] input: short: Input Bundle mustSupport: true array: true max: 2 index: 18 slicing: rules: closed discriminator: - {path: type.coding.code, type: value} min: null max: 2 slices: ePrescription: match: type: coding: {code: '1'} schema: index: 19 elements: type: elements: coding: binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'} index: 20 elements: system: {index: 21} code: pattern: {type: Code, value: '1'} index: 22 required: [system, code] value: choices: [valueReference] index: 24 valueReference: type: Reference choiceOf: value refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary'] index: 25 value[x]: elements: reference: {index: 26} required: [reference] patientReceipt: match: type: coding: {code: '2'} schema: 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] 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 max: 1 slices: receipt: match: type: coding: {code: '3'} schema: 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] 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.2.1 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} class: profile kind: resource url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task base: http://hl7.org/fhir/StructureDefinition/Task version: '1.2' required: [extension, identifier, meta]