PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erp@servicerequest-1.2.0-rc1
    https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-dispense-request
description: ServiceRequest that is used to supply a recipe
package_name: de.gematik.erp
derivation: constraint
name: ERPServiceRequestDispenseRequest
type: ServiceRequest
elements:
  supportingInfo:
    mustSupport: true
    index: 24
    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: 25
            elements:
              type:
                short: Dispense data that is also sent to the e-prescription server.
                pattern: {type: Uri, value: MedicationDispense}
                index: 26
            required: [type]
  authoredOn: {short: Creation date of the request., mustSupport: true, index: 22}
  note:
    short: Further information on the dispense request.
    mustSupport: true
    index: 27
    elements:
      time: {mustSupport: true, index: 28}
    required: [time]
  requisition: {type: Identifier, short: Identifier of the process. All ServiceRequests within a process receive the same ID., mustSupport: true, index: 6}
  extension:
    mustSupport: true
    index: 0
    slicing:
      slices:
        EPrescriptionToken:
          match: {}
          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: {}
          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: 23
  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: 9
  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: 7
  code:
    short: Indicates the type of service request.
    mustSupport: true
    index: 10
    elements:
      coding:
        mustSupport: true
        index: 11
        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.
                mustSupport: true
                _required: true
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs'}
                pattern:
                  type: Coding
                  value: {code: dispense-request, system: 'https://gematik.de/fhir/erp-servicerequest/CodeSystem/service-request-type-cs'}
                index: 12
                elements:
                  system: {index: 13}
                  code: {index: 14}
                required: [system, code]
            delivery-type:
              match: {system: 'https://gematik.de/fhir/erp-servicerequest/CodeSystem/delivery-type-cs'}
              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'}
                pattern:
                  type: Coding
                  value: {system: 'https://gematik.de/fhir/erp-servicerequest/CodeSystem/delivery-type-cs'}
                index: 15
                elements:
                  system: {index: 16}
                  code: {index: 17}
                required: [system, code]
    required: [coding]
  identifier:
    mustSupport: true
    index: 4
    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: 5}
          min: 1
          max: 1
  intent:
    pattern: {type: Code, value: filler-order}
    index: 8
  occurrenceDateTime: {type: dateTime, short: Indicates the date when the medication should be delivered., mustSupport: true, choiceOf: occurrence, index: 21}
  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: 18
  modifierExtension:
    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: 3
    slicing:
      slices:
        medicationChanged:
          match: {}
          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: 3}
          min: 0
          max: 1
  occurrence:
    short: Indicates the date when the medication should be delivered.
    mustSupport: true
    choices: [occurrenceDateTime]
    index: 20
package_version: servicerequest-1.2.0-rc1
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'
required: [authoredOn, requisition, identifier, code]