# Task für E-Rezept - TIFlow - Verordnungen für Arzneimittel v2.0.0-ballot.1

TIFlow - Verordnungen für Arzneimittel

Version 2.0.0-ballot.1 - ci-build 

* [**Table of Contents**](toc.md)
* [**FHIR-Artefakte**](artifacts.md)
* **Task für E-Rezept**

## Resource Profile: Task für E-Rezept 

| | |
| :--- | :--- |
| *Official URL*:https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task | *Version*:2.0.0-ballot.1 |
| Active as of 2028-04-01 | *Computable Name*:GEM_ERP_PR_Task |
| **Copyright/Legal**: gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.md), Version 2.0. | |

 
Task für die Verwaltung des E-Rezept-Workflows 

**Usages:**

* Use this Profile: [GEM ERP PR Bundle OP Accept](StructureDefinition-GEM-ERP-PR-Bundle-OP-Accept.md), [GEM ERP PR ActivateOperation Output](StructureDefinition-GEM-ERP-PR-PAR-Activate-Operation-Output.md) and [GEM ERP PR CreateOperation Output](StructureDefinition-GEM-ERP-PR-PAR-Create-Operation-Output.md)
* Refer to this Profile: [GEM ERP PR Communication](StructureDefinition-GEM-ERP-PR-Communication.md)
* Examples for this Profile: [Task/9b48f82c-9c11-4a57-aa72-a805f9537a82](Task-9b48f82c-9c11-4a57-aa72-a805f9537a82.md), [Task/TaskInClosedState](Task-TaskInClosedState.md), [Task/TaskInReadyState](Task-TaskInReadyState.md), [Task/b12eb5f7-91ce-4887-93c7-800454601377](Task-b12eb5f7-91ce-4887-93c7-800454601377.md)... Show 3 more, [Task/b9f1fbdd-f28b-4ec7-959c-5283d3433b0e](Task-b9f1fbdd-f28b-4ec7-959c-5283d3433b0e.md), [Task/d70932d1-9e1c-483c-b2d4-b7dced09b35e](Task-d70932d1-9e1c-483c-b2d4-b7dced09b35e.md) and [Task/f5c21409-b84b-4125-8649-5630a00906b1](Task-f5c21409-b84b-4125-8649-5630a00906b1.md)
* CapabilityStatements using this Profile: [TIFlow Fachdienst Server Capabilities](CapabilityStatement-ti-flow-fachdienst-server-rx.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/de.gematik.tiflow.erezept|current/StructureDefinition/GEM-ERP-PR-Task)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-GEM-ERP-PR-Task.csv), [Excel](StructureDefinition-GEM-ERP-PR-Task.xlsx), [Schematron](StructureDefinition-GEM-ERP-PR-Task.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "GEM-ERP-PR-Task",
  "url" : "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task",
  "version" : "2.0.0-ballot.1",
  "name" : "GEM_ERP_PR_Task",
  "title" : "Task für E-Rezept",
  "status" : "active",
  "experimental" : false,
  "date" : "2028-04-01",
  "publisher" : "gematik GmbH",
  "contact" : [{
    "name" : "gematik GmbH",
    "telecom" : [{
      "system" : "url",
      "value" : "https://gematik.de"
    },
    {
      "system" : "email",
      "value" : "erp-umsetzung@gematik.de"
    }]
  }],
  "description" : "Task für die Verwaltung des E-Rezept-Workflows",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "DE",
      "display" : "Germany"
    }]
  }],
  "copyright" : "gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0.",
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  },
  {
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Task",
  "baseDefinition" : "https://gematik.de/fhir/tiflow/StructureDefinition/ti-task",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Task.meta",
      "path" : "Task.meta",
      "min" : 1,
      "mustSupport" : true
    },
    {
      "id" : "Task.meta.profile",
      "path" : "Task.meta.profile",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "$this"
        }],
        "description" : "Slicing für meta profile",
        "ordered" : false,
        "rules" : "closed"
      },
      "min" : 1,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Task.meta.profile:workflowProfile",
      "path" : "Task.meta.profile",
      "sliceName" : "workflowProfile",
      "min" : 1,
      "max" : "1",
      "fixedCanonical" : "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|2.0",
      "mustSupport" : true
    },
    {
      "id" : "Task.extension",
      "path" : "Task.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "description" : "Extensions are always sliced by (at least) url",
        "ordered" : false,
        "rules" : "closed"
      }
    },
    {
      "id" : "Task.extension:lastMedicationDispense",
      "path" : "Task.extension",
      "sliceName" : "lastMedicationDispense",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Task.extension:acceptDate",
      "path" : "Task.extension",
      "sliceName" : "acceptDate",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Task.extension:expiryDate",
      "path" : "Task.extension",
      "sliceName" : "expiryDate",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Task.extension:eu-isRedeemableByProperties",
      "path" : "Task.extension",
      "sliceName" : "eu-isRedeemableByProperties",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PROPERTIES"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Task.extension:eu-isRedeemableByPatientAuthorization",
      "path" : "Task.extension",
      "sliceName" : "eu-isRedeemableByPatientAuthorization",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PATIENT_AUTHORIZATION"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Task.for.identifier",
      "path" : "Task.for.identifier",
      "type" : [{
        "code" : "Identifier",
        "profile" : ["http://fhir.de/StructureDefinition/identifier-kvid-10"]
      }]
    },
    {
      "id" : "Task.performerType.coding",
      "path" : "Task.performerType.coding",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "valueSet" : "https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-rx-task-organizations-vs"
      }
    },
    {
      "id" : "Task.input",
      "path" : "Task.input",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "type.coding.code"
        }],
        "rules" : "closed"
      },
      "short" : "Input Bundle",
      "definition" : "Referenz auf Eingabe und Ergebnis des E-Rezeptes während des Prozesses",
      "mustSupport" : true
    },
    {
      "id" : "Task.input:ePrescription",
      "path" : "Task.input",
      "sliceName" : "ePrescription",
      "short" : "QES-Binary des E-Rezept",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Task.input:ePrescription.type.coding",
      "path" : "Task.input.type.coding",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "valueSet" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    },
    {
      "id" : "Task.input:ePrescription.type.coding.system",
      "path" : "Task.input.type.coding.system",
      "min" : 1
    },
    {
      "id" : "Task.input:ePrescription.type.coding.code",
      "path" : "Task.input.type.coding.code",
      "min" : 1,
      "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",
      "path" : "Task.input",
      "sliceName" : "patientReceipt",
      "short" : "JSON-Bundle der Verordnung, das von einem FdV konsumiert werden soll",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Task.input:patientReceipt.type.coding",
      "path" : "Task.input.type.coding",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "valueSet" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    },
    {
      "id" : "Task.input:patientReceipt.type.coding.system",
      "path" : "Task.input.type.coding.system",
      "min" : 1
    },
    {
      "id" : "Task.input:patientReceipt.type.coding.code",
      "path" : "Task.input.type.coding.code",
      "min" : 1,
      "fixedCode" : "2"
    },
    {
      "id" : "Task.input:patientReceipt.value[x]",
      "path" : "Task.input.value[x]",
      "comment" : "Dies ist ein Bundle eines Rezepts vom Profil [KBV_PR_ERP_Bundle](https://simplifier.net/erezept/kbv_pr_erp_bundle).",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Bundle"]
      }]
    },
    {
      "id" : "Task.output",
      "path" : "Task.output",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "type.coding.code"
        }],
        "rules" : "closed"
      },
      "short" : "Output Bundle",
      "definition" : "Referenz auf das Bundle, das die Quittung darstellt.",
      "mustSupport" : true
    },
    {
      "id" : "Task.output:receipt",
      "path" : "Task.output",
      "sliceName" : "receipt",
      "min" : 0,
      "max" : "1",
      "mustSupport" : true
    },
    {
      "id" : "Task.output:receipt.type.coding",
      "path" : "Task.output.type.coding",
      "min" : 1,
      "max" : "1",
      "binding" : {
        "strength" : "required",
        "valueSet" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    },
    {
      "id" : "Task.output:receipt.type.coding.system",
      "path" : "Task.output.type.coding.system",
      "min" : 1
    },
    {
      "id" : "Task.output:receipt.type.coding.code",
      "path" : "Task.output.type.coding.code",
      "min" : 1,
      "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"]
      }]
    }]
  }
}

```
