{
  "resourceType": "StructureDefinition",
  "id": "GEM-ERP-LOG-MedicationDispense-DiGA",
  "url": "https://gematik.de/fhir/erp/StructureDefinition/GEM-ERP-LOG-MedicationDispense-DiGA",
  "version": "1.6.2",
  "name": "GEM_ERP_LOG_MedicationDispense_DiGA",
  "title": "Logical DiGA Medication Dispense",
  "status": "active",
  "date": "2026-04-14",
  "description": "Fachliches Modell zur Beschreibung der Informationen, die bei $close und $dispense in der MedicationDispense-Ressource für DiGAs übermittelt werden.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
      "uri": "GEM_ERP_PR_MedicationDispense_DiGA",
      "name": "Mapping für MedicationDispense DiGA",
      "comment": "This mapping maps the logical units of the DiGA MedicationDispense to the profile"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://gematik.de/fhir/erp/StructureDefinition/GEM-ERP-LOG-MedicationDispense-DiGA",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA",
        "short": "Logical DiGA Medication Dispense",
        "definition": "Fachliches Modell zur Beschreibung der Informationen, die bei $close und $dispense in der MedicationDispense-Ressource für DiGAs übermittelt werden.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "GEM_ERP_PR_MedicationDispense_DiGA"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.id",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.extension",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.prescriptionId",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.prescriptionId",
        "short": "ID des E-Rezepts",
        "definition": "ID des E-Rezepts",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.prescriptionId",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "identifier[prescriptionID].value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.status",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.status",
        "short": "Status fixedValue: #completed",
        "definition": "Status fixedValue: #completed",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "status"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.patientKVNR",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.patientKVNR",
        "short": "KVNR des Patienten",
        "definition": "KVNR des Patienten",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.patientKVNR",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "subject.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabeAbgebendeInstutition",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabeAbgebendeInstutition",
        "short": "Telematik-ID der abgebenden Institution",
        "definition": "Telematik-ID der abgebenden Institution",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabeAbgebendeInstutition",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "performer.actor.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.freischaltCode",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.freischaltCode",
        "short": "Freischaltcode für die DiGA",
        "definition": "Optional, da die Kasse die Bereitstellung eines Freischaltcodes ablehnen kann.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.freischaltCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "extension[redeemCode].valueString"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.deepLink",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.deepLink",
        "short": "Universeller Deep Link, der vom DiGA Hersteller bereitgestellt wird",
        "definition": "Universeller Deep Link, der vom DiGA Hersteller bereitgestellt wird",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.deepLink",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "extension[deepLink].valueUrl"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA",
        "short": "Angaben zur DiGA. Zwingend anzugeben, wenn ein Freischaltcode bereitgestellt wird.",
        "definition": "Angaben zur DiGA. Zwingend anzugeben, wenn ein Freischaltcode bereitgestellt wird.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.id",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.extension",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.modifierExtension",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.name",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.name",
        "short": "Name der DiGA-Verordnungseinheit",
        "definition": "Name der DiGA-Verordnungseinheit",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.name",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.display"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.pzn",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.pzn",
        "short": "Pharmazentralnummer als eindeutige Identifikationsnummer zu einer Verordnungseinheit einer digitalen Gesundheitsanwendung (PZN).",
        "definition": "Pharmazentralnummer als eindeutige Identifikationsnummer zu einer Verordnungseinheit einer digitalen Gesundheitsanwendung (PZN).",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.pzn",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.dataAbsentReason",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.dataAbsentReason",
        "short": "Wird angegeben, wenn kein Freischaltcode bereitgestellt wird. fixedValue: #unknown",
        "definition": "Wird angegeben, wenn kein Freischaltcode bereitgestellt wird. fixedValue: #unknown",
        "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.dataAbsentReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.extension[data-absent-reason].valueCode"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.datum",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.datum",
        "short": "Abgabedatum im Format YYYY-MM-DD",
        "definition": "Abgabedatum im Format YYYY-MM-DD",
        "min": 1,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.datum",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "whenHandedOver"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.note",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.note",
        "short": "Wenn der Workflow abgeschlossen wird, ohne dass ein Freischaltcode bereitgestellt wird, muss dieser Wert angegeben werden.",
        "definition": "Wenn der Workflow abgeschlossen wird, ohne dass ein Freischaltcode bereitgestellt wird, muss dieser Wert angegeben werden.",
        "comment": "For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time.  This element may need to be included in narrative because of the potential for modifying information.  *Annotations SHOULD NOT* be used to communicate \"modifying\" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.note",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Act"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "note"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.substitution",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.substitution",
        "short": "Substitution darf lt. BAS nicht erfolgen.",
        "definition": "Substitution darf lt. BAS nicht erfolgen.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "GEM-ERP-LOG-MedicationDispense-DiGA.substitution",
          "min": 0,
          "max": "0"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "substitution"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA",
        "short": "Logical DiGA Medication Dispense",
        "definition": "Fachliches Modell zur Beschreibung der Informationen, die bei $close und $dispense in der MedicationDispense-Ressource für DiGAs übermittelt werden.",
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "GEM_ERP_PR_MedicationDispense_DiGA"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.prescriptionId",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.prescriptionId",
        "short": "ID des E-Rezepts",
        "definition": "ID des E-Rezepts",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "identifier[prescriptionID].value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.status",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.status",
        "short": "Status fixedValue: #completed",
        "definition": "Status fixedValue: #completed",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "status"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.patientKVNR",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.patientKVNR",
        "short": "KVNR des Patienten",
        "definition": "KVNR des Patienten",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "subject.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabeAbgebendeInstutition",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabeAbgebendeInstutition",
        "short": "Telematik-ID der abgebenden Institution",
        "definition": "Telematik-ID der abgebenden Institution",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "performer.actor.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.freischaltCode",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.freischaltCode",
        "short": "Freischaltcode für die DiGA",
        "definition": "Optional, da die Kasse die Bereitstellung eines Freischaltcodes ablehnen kann.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "extension[redeemCode].valueString"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.deepLink",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.deepLink",
        "short": "Universeller Deep Link, der vom DiGA Hersteller bereitgestellt wird",
        "definition": "Universeller Deep Link, der vom DiGA Hersteller bereitgestellt wird",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "extension[deepLink].valueUrl"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA",
        "short": "Angaben zur DiGA. Zwingend anzugeben, wenn ein Freischaltcode bereitgestellt wird.",
        "definition": "Angaben zur DiGA. Zwingend anzugeben, wenn ein Freischaltcode bereitgestellt wird.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.name",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.name",
        "short": "Name der DiGA-Verordnungseinheit",
        "definition": "Name der DiGA-Verordnungseinheit",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.display"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.pzn",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.pzn",
        "short": "Pharmazentralnummer als eindeutige Identifikationsnummer zu einer Verordnungseinheit einer digitalen Gesundheitsanwendung (PZN).",
        "definition": "Pharmazentralnummer als eindeutige Identifikationsnummer zu einer Verordnungseinheit einer digitalen Gesundheitsanwendung (PZN).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.identifier.value"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.dataAbsentReason",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.angabenZurDiGA.dataAbsentReason",
        "short": "Wird angegeben, wenn kein Freischaltcode bereitgestellt wird. fixedValue: #unknown",
        "definition": "Wird angegeben, wenn kein Freischaltcode bereitgestellt wird. fixedValue: #unknown",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "medicationReference.extension[data-absent-reason].valueCode"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.datum",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.datum",
        "short": "Abgabedatum im Format YYYY-MM-DD",
        "definition": "Abgabedatum im Format YYYY-MM-DD",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "whenHandedOver"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.note",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.note",
        "short": "Wenn der Workflow abgeschlossen wird, ohne dass ein Freischaltcode bereitgestellt wird, muss dieser Wert angegeben werden.",
        "definition": "Wenn der Workflow abgeschlossen wird, ohne dass ein Freischaltcode bereitgestellt wird, muss dieser Wert angegeben werden.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "note"
          }
        ]
      },
      {
        "id": "GEM-ERP-LOG-MedicationDispense-DiGA.substitution",
        "path": "GEM-ERP-LOG-MedicationDispense-DiGA.substitution",
        "short": "Substitution darf lt. BAS nicht erfolgen.",
        "definition": "Substitution darf lt. BAS nicht erfolgen.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "GEM-ERP-MAP-MedicationDispense-DiGA",
            "map": "substitution"
          }
        ]
      }
    ]
  }
}