PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erp-servicerequest@1.2.0
    https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-dispense-request
description: ServiceRequest, der zur Abgabe eines Rezepts verwendet wird
package_name: de.gematik.erp-servicerequest
derivation: constraint
name: ERPServiceRequestDispenseRequest
type: ServiceRequest
elements:
  supportingInfo:
    mustSupport: true
    index: 25
    slicing:
      rules: open
      description: Supporting information about dispense
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        AbgabeDaten:
          match: {type: MedicationDispense}
          schema:
            type: Reference
            mustSupport: true
            refers: ['https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-medication-dispense']
            index: 26
            elements:
              type:
                short: Dispense data that is also sent to the e-prescription server.
                pattern: {type: uri, value: MedicationDispense}
                type: uri
                index: 27
            required: [type]
  authoredOn: {short: Creation date of the request., mustSupport: true, index: 23}
  note:
    short: Further information on the dispense request.
    mustSupport: true
    index: 28
    elements:
      time: {mustSupport: true, index: 29}
    required: [time]
  requisition: {type: Identifier, short: Identifier of the process. All ServiceRequests within a process receive the same ID., mustSupport: true, index: 7}
  extension:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        EPrescriptionToken:
          match: {url: null}
          schema: {short: The e-prescription token for delivery to the pharmacy can be provided here., type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex', index: 1}
          min: 0
          max: 1
        alternativeDeliveryAddress:
          match: {url: null}
          schema: {short: Alternative delivery address., type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/alternative-delivery-address-ex', index: 2}
          min: 0
          max: 1
  requester:
    type: Reference
    short: Inquiring facility or practitioner.
    mustSupport: true
    refers: ['https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-organization']
    index: 24
  priority:
    short: Indicates the urgency of the request.
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-priority-vs'}
    mustSupport: true
    index: 10
  status:
    short: Indicates the processing status of a service request.
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-status-vs'}
    mustSupport: true
    index: 8
  code:
    short: Indicates the type of service request.
    mustSupport: true
    index: 11
    elements:
      coding:
        mustSupport: true
        index: 12
        slicing:
          rules: open
          ordered: false
          description: Differentiates between the service request type and additional information.
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            request-type:
              match: {code: dispense-request, system: 'https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs'}
              schema:
                short: Indicates the type of service request.
                index: 13
                type: Coding
                mustSupport: true
                elements:
                  system: {index: 14}
                  code: {index: 15}
                _required: true
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs'}
                required: [code, system]
                pattern:
                  type: Coding
                  value: {code: dispense-request, system: 'https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs'}
            delivery-type:
              match: {}
              schema:
                short: Indicates how the delivery should be made.
                mustSupport: true
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/delivery-type-vs'}
                index: 16
                elements:
                  system: {index: 17}
                  code: {index: 18}
                required: [code, system]
    required: [coding]
  identifier:
    mustSupport: true
    index: 5
    slicing:
      rules: open
      description: Defines identifiers to be used in a process
      discriminator:
      - {path: system, type: pattern}
      min: 1
      slices:
        requestId:
          match: {system: null}
          schema: {type: Identifier, short: Identifier that uniquely references a ServiceRequest., _required: true, index: 6}
          min: 1
          max: 1
  intent:
    pattern: {type: code, value: filler-order}
    type: code
    index: 9
  occurrenceDateTime: {type: dateTime, short: Indicates the date when the medication should be delivered., mustSupport: true, choiceOf: occurrence, index: 22}
  subject:
    type: Reference
    short: Patient for whom a dispense is requested on behalf of the patient.
    mustSupport: true
    refers: ['https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-patient']
    index: 19
  modifierExtension:
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        medicationChanged:
          match: {url: null}
          schema: {short: Indicates whether the medication has been changed by the pharmacy., type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/changed-medication-ex', isModifierReason: 'If the medication has been changed, the receiving system must display the changed medication to the receiving user.', index: 4}
          min: 0
          max: 1
  occurrence:
    short: Indicates the date when the medication should be delivered.
    mustSupport: true
    choices: [occurrenceDateTime]
    index: 21
package_version: 1.2.0
extensions:
  EPrescriptionToken: {url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex', min: 0, max: 1, short: The e-prescription token for delivery to the pharmacy can be provided here., type: Extension, mustSupport: true, index: 1}
  alternativeDeliveryAddress: {url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/alternative-delivery-address-ex', min: 0, max: 1, short: Alternative delivery address., type: Extension, mustSupport: true, index: 2}
class: profile
kind: resource
url: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-dispense-request
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: 1.2.0
required: [authoredOn, code, identifier, requisition]