# Task abgeschlossen durch Apotheke via $close Operation - 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 abgeschlossen durch Apotheke via $close Operation**

## Example Task: Task abgeschlossen durch Apotheke via $close Operation

Profile: [Task für E-Rezept](StructureDefinition-GEM-ERP-PR-Task.md) version: 2.0.0-ballot.1

Tag: Task in COMPLETED state dispensed by pharmacy via $closed operation (Details: [not stated] code null = 'Task in COMPLETED state dispensed by pharmacy via $closed operation')

**TI Flow Type**: [CodeSystem der Flowtypes in TIFlow Anwendungen: 160](https://gematik.de/fhir/tiflow/2.0.0-ballot.1/CodeSystem-ti-flowtypes-codes.html#ti-flowtypes-codes-160) (Flowtype für Apothekenpflichtige Arzneimittel)

**TI Flow AcceptDate**: 2028-10-01

**TI Flow ExpiryDate**: 2028-10-01

**identifier**: `https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId`/160.000.033.491.280.78, `https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode`/777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea

**status**: Completed

**intent**: order

**for**: Identifier: NamingSystemKVID/X123456789

**authoredOn**: 2028-10-01 15:29:00+0000

**lastModified**: 2028-10-01 16:44:00+0000

**performerType**: Öffentliche Apotheke

> **input****type**: Health Care Provider Prescription**value**: [281a985c-f25b-4aae-91a6-41ad744080b0](https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&canonical=http://fhir.org/packages/de.basisprofil.r4/281a985c-f25b-4aae-91a6-41ad744080b0)

> **input****type**: Patient Confirmation**value**: [f8c2298f-7c00-4a68-af29-8a2862d55d43](https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&canonical=http://fhir.org/packages/de.basisprofil.r4/f8c2298f-7c00-4a68-af29-8a2862d55d43)

### Outputs

| | | |
| :--- | :--- | :--- |
| - | **Type** | **Value[x]** |
| * | Receipt | [dffbfd6a-5712-4798-bdc8-07201eb77ab8](https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&canonical=http://fhir.org/packages/de.basisprofil.r4/dffbfd6a-5712-4798-bdc8-07201eb77ab8) |



## Resource Content

```json
{
  "resourceType" : "Task",
  "id" : "TaskInClosedState",
  "meta" : {
    "profile" : ["https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|2.0"],
    "tag" : [{
      "display" : "Task in COMPLETED state dispensed by pharmacy via $closed operation"
    }]
  },
  "extension" : [{
    "url" : "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType",
    "valueCoding" : {
      "system" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType",
      "code" : "160",
      "display" : "Flowtype für Apothekenpflichtige Arzneimittel"
    }
  },
  {
    "url" : "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate",
    "valueDate" : "2028-10-01"
  },
  {
    "url" : "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate",
    "valueDate" : "2028-10-01"
  }],
  "identifier" : [{
    "system" : "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId",
    "value" : "160.000.033.491.280.78"
  },
  {
    "system" : "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode",
    "value" : "777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
  }],
  "status" : "completed",
  "intent" : "order",
  "for" : {
    "identifier" : {
      "system" : "http://fhir.de/sid/gkv/kvid-10",
      "value" : "X123456789"
    }
  },
  "authoredOn" : "2028-10-01T15:29:00+00:00",
  "lastModified" : "2028-10-01T16:44:00.434+00:00",
  "performerType" : [{
    "coding" : [{
      "system" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType",
      "code" : "urn:oid:1.2.276.0.76.4.54",
      "display" : "Öffentliche Apotheke"
    }]
  }],
  "input" : [{
    "type" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType",
        "code" : "1",
        "display" : "Health Care Provider Prescription"
      }]
    },
    "valueReference" : {
      "reference" : "281a985c-f25b-4aae-91a6-41ad744080b0"
    }
  },
  {
    "type" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType",
        "code" : "2",
        "display" : "Patient Confirmation"
      }]
    },
    "valueReference" : {
      "reference" : "f8c2298f-7c00-4a68-af29-8a2862d55d43"
    }
  }],
  "output" : [{
    "type" : {
      "coding" : [{
        "system" : "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType",
        "code" : "3",
        "display" : "Receipt"
      }]
    },
    "valueReference" : {
      "reference" : "dffbfd6a-5712-4798-bdc8-07201eb77ab8"
    }
  }]
}

```
