PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept-workflow.r4@1.5.0-rc2
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task
{
  "description": "This resource manages the ePrescription workflow",
  "_filename": "StructureDefinition-GEM-ERP-PR-Task.json",
  "package_name": "de.gematik.erezept-workflow.r4",
  "date": "2025-02-28",
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "GEM_ERP_PR_Task",
  "abstract": false,
  "type": "Task",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Task for Management of ePrescription Workflow",
  "package_version": "1.5.0-rc2",
  "status": "draft",
  "id": "faab9ea0-03a9-4948-b10f-3e6248767d62",
  "kind": "resource",
  "url": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task",
  "version": "1.5.0",
  "differential": {
    "element": [ {
      "id": "Task.meta",
      "min": 1,
      "path": "Task.meta",
      "mustSupport": true
    }, {
      "id": "Task.meta.profile",
      "max": "1",
      "min": 1,
      "path": "Task.meta.profile",
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "description": "Slicing for meta profile",
        "discriminator": [ {
          "path": "$this",
          "type": "value"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Task.meta.profile:workflowProfile",
      "max": "1",
      "min": 1,
      "path": "Task.meta.profile",
      "sliceName": "workflowProfile",
      "mustSupport": true,
      "fixedCanonical": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.5"
    }, {
      "id": "Task.extension",
      "min": 1,
      "path": "Task.extension",
      "slicing": {
        "rules": "closed",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "Task.extension:flowType",
      "max": "1",
      "min": 1,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType" ]
      } ],
      "sliceName": "flowType",
      "mustSupport": true
    }, {
      "id": "Task.extension:acceptDate",
      "max": "1",
      "min": 0,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate" ]
      } ],
      "sliceName": "acceptDate",
      "mustSupport": true
    }, {
      "id": "Task.extension:expiryDate",
      "max": "1",
      "min": 0,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate" ]
      } ],
      "sliceName": "expiryDate",
      "mustSupport": true
    }, {
      "id": "Task.extension:lastMedicationDispense",
      "max": "1",
      "min": 0,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense" ]
      } ],
      "sliceName": "lastMedicationDispense"
    }, {
      "id": "Task.extension:eu-isRedeemableByProperties",
      "max": "1",
      "min": 0,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PROPERTIES" ]
      } ],
      "sliceName": "eu-isRedeemableByProperties",
      "mustSupport": true
    }, {
      "id": "Task.extension:eu-isRedeemableByPatientAuthorization",
      "max": "1",
      "min": 0,
      "path": "Task.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PATIENT_AUTHORIZATION" ]
      } ],
      "sliceName": "eu-isRedeemableByPatientAuthorization",
      "mustSupport": true
    }, {
      "id": "Task.identifier",
      "min": 1,
      "path": "Task.identifier",
      "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"
        } ]
      }
    }, {
      "id": "Task.identifier:PrescriptionID",
      "max": "1",
      "min": 1,
      "path": "Task.identifier",
      "type": [ {
        "code": "Identifier",
        "profile": [ "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_PrescriptionId" ]
      } ],
      "short": "Prescription Identifier",
      "sliceName": "PrescriptionID",
      "definition": "The prescription identifier is the main identifier for the task ressource and the whole prescription workflow. This identifier is genereted by the \"E-Rezept Fachdienst\" and should not be changed manually."
    }, {
      "id": "Task.identifier:AccessCode",
      "max": "1",
      "min": 0,
      "path": "Task.identifier",
      "short": "AccessCode Identifier",
      "sliceName": "AccessCode",
      "definition": "Generated by the \"E-Rezept Fachdienst\". This identifier is transported in every task request."
    }, {
      "id": "Task.identifier:AccessCode.system",
      "min": 1,
      "path": "Task.identifier.system",
      "fixedUri": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode"
    }, {
      "id": "Task.identifier:AccessCode.value",
      "min": 1,
      "path": "Task.identifier.value"
    }, {
      "id": "Task.identifier:Secret",
      "max": "1",
      "min": 0,
      "path": "Task.identifier",
      "short": "Secret",
      "sliceName": "Secret"
    }, {
      "id": "Task.identifier:Secret.system",
      "min": 1,
      "path": "Task.identifier.system",
      "fixedUri": "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret"
    }, {
      "id": "Task.identifier:Secret.value",
      "min": 1,
      "path": "Task.identifier.value"
    }, {
      "id": "Task.intent",
      "path": "Task.intent",
      "fixedCode": "order"
    }, {
      "id": "Task.for",
      "path": "Task.for",
      "short": "Identifier of Patient (KVID or PKV-Identifier)"
    }, {
      "id": "Task.for.identifier",
      "path": "Task.for.identifier",
      "type": [ {
        "code": "Identifier",
        "profile": [ "http://fhir.de/StructureDefinition/identifier-kvid-10" ]
      } ]
    }, {
      "id": "Task.performerType.coding",
      "min": 1,
      "path": "Task.performerType.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_OrganizationType"
      }
    }, {
      "id": "Task.input",
      "path": "Task.input",
      "short": "Input Bundle",
      "slicing": {
        "rules": "closed",
        "discriminator": [ {
          "path": "type.coding.code",
          "type": "value"
        } ]
      },
      "definition": "Reference to ePrescription input and outcome during the process",
      "mustSupport": true
    }, {
      "id": "Task.input:ePrescription",
      "max": "1",
      "min": 0,
      "path": "Task.input",
      "short": "QES-Binary of the ePrescription",
      "sliceName": "ePrescription",
      "mustSupport": true
    }, {
      "id": "Task.input:ePrescription.type.coding",
      "max": "1",
      "min": 1,
      "path": "Task.input.type.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    }, {
      "id": "Task.input:ePrescription.type.coding.system",
      "min": 1,
      "path": "Task.input.type.coding.system"
    }, {
      "id": "Task.input:ePrescription.type.coding.code",
      "min": 1,
      "path": "Task.input.type.coding.code",
      "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",
      "max": "1",
      "min": 0,
      "path": "Task.input",
      "short": "JSON Bundle of the ePrescription to be consumed by the E-Rezept-FdV",
      "sliceName": "patientReceipt",
      "mustSupport": true
    }, {
      "id": "Task.input:patientReceipt.type.coding",
      "max": "1",
      "min": 1,
      "path": "Task.input.type.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    }, {
      "id": "Task.input:patientReceipt.type.coding.system",
      "min": 1,
      "path": "Task.input.type.coding.system"
    }, {
      "id": "Task.input:patientReceipt.type.coding.code",
      "min": 1,
      "path": "Task.input.type.coding.code",
      "fixedCode": "2"
    }, {
      "id": "Task.input:patientReceipt.value[x]",
      "path": "Task.input.value[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle", "https://fhir.kbv.de/StructureDefinition/KBV_PR_EVDGA_Bundle" ]
      } ]
    }, {
      "id": "Task.output",
      "path": "Task.output",
      "short": "Output Bundle",
      "slicing": {
        "rules": "closed",
        "discriminator": [ {
          "path": "type.coding.code",
          "type": "value"
        } ]
      },
      "definition": "Reference to the Bundle which represent the receipt.",
      "mustSupport": true
    }, {
      "id": "Task.output:receipt",
      "max": "1",
      "min": 0,
      "path": "Task.output",
      "sliceName": "receipt",
      "mustSupport": true
    }, {
      "id": "Task.output:receipt.type.coding",
      "max": "1",
      "min": 1,
      "path": "Task.output.type.coding",
      "binding": {
        "strength": "required",
        "valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
      }
    }, {
      "id": "Task.output:receipt.type.coding.system",
      "min": 1,
      "path": "Task.output.type.coding.system"
    }, {
      "id": "Task.output:receipt.type.coding.code",
      "min": 1,
      "path": "Task.output.type.coding.code",
      "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" ]
      } ]
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task"
}