description: This profile defines a specialized structure for FHIR Task resources aimed at establishing a link between medication information and associated medication prescriptions. It facilitates the efficient organization and tracking of medication processes within Medication Service of the ePA system. package_name: de.gematik.dev.epa.medication derivation: constraint name: EPAMedicationPrescriptionLinkTask type: Task elements: status: {mustSupport: true, index: 0} intent: short: order mustSupport: true pattern: {type: Code, value: order} index: 1 authoredOn: {mustSupport: true, index: 2} requester: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'] index: 3 input: short: '...' mustSupport: true array: true min: 2 max: 2 index: 4 slicing: rules: open discriminator: - {path: type, type: pattern} min: 2 max: 2 slices: prescription: match: type: coding: - {code: PRESCIPTION, system: 'https://gematik.de/fhir/epa-medication/CodeSystem/epa-medication-task-label-cs'} schema: mustSupport: true _required: true index: 5 elements: type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: PRESCIPTION, system: 'https://gematik.de/fhir/epa-medication/CodeSystem/epa-medication-task-label-cs'} index: 6 value: mustSupport: true choices: [valueIdentifier] index: 8 valueIdentifier: {type: Identifier, mustSupport: true, choiceOf: value, index: 9} statement: match: type: coding: - {code: MEDICATIONSTATEMENT, system: 'https://gematik.de/fhir/epa-medication/CodeSystem/epa-medication-task-label-cs'} schema: mustSupport: true _required: true index: 10 elements: type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: MEDICATIONSTATEMENT, system: 'https://gematik.de/fhir/epa-medication/CodeSystem/epa-medication-task-label-cs'} index: 11 value: mustSupport: true choices: [valueReference] index: 13 valueReference: type: Reference mustSupport: true choiceOf: value refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement'] index: 14 package_version: 1.1.0-alpha.4 class: profile kind: resource url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-prescription-link-task base: http://hl7.org/fhir/StructureDefinition/Task version: 1.0.2-rc1