PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erp-servicerequest@1.0.1
    https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-prescription-request
description: ServiceRequest, which is used to request a recipe
package_name: de.gematik.erp-servicerequest
derivation: constraint
name: ERPServiceRequestPrescriptionRequest
type: ServiceRequest
elements:
  supportingInfo:
    mustSupport: true
    index: 25
    slicing:
      rules: open
      description: Supporting information for the prescription request
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        AuslieferndeApotheke:
          match: {type: Organization}
          schema:
            type: Reference
            mustSupport: true
            refers: ['https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-organization']
            index: 26
            elements:
              type:
                pattern: {type: Uri, value: Organization}
                index: 27
            required: [type]
  reasonCode:
    short: Code indicating why a prescription is requested.
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/request-reason-vs'}
    mustSupport: true
    index: 23
  authoredOn: {short: Creation date of the request., mustSupport: true, index: 20}
  note: {short: Further information on the prescription request., mustSupport: true, index: 28}
  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: Here the e-prescription token can be made available for processing in a pharmacy., type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex', index: 1}
          min: 0
          max: 1
  requester:
    short: Inquiring facility or practitioner.
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Practitioner']
    type: Reference
    mustSupport: true
    index: 21
  priority: {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:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/service-request-type-vs'}
        mustSupport: true
        index: 11
        elements:
          system: {index: 12}
          code:
            pattern: {type: Code, value: prescription-request}
            index: 13
        required: [system, code]
    required: [coding]
  identifier:
    short: Defines identifiers to be used in this profile.
    mustSupport: true
    index: 2
    slicing:
      rules: open
      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: 3}
          min: 1
          max: 1
        predisId:
          match: {system: null}
          schema: {short: Identifier that connects a prescription and a dispensing request., type: Identifier, index: 4}
          min: 0
          max: 1
  intent:
    pattern: {type: Code, value: order}
    index: 8
  orderDetail:
    mustSupport: true
    index: 14
    elements:
      coding:
        short: Specifies how the recipe request should be fulfilled.
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp-servicerequest/ValueSet/prescription-fullfillment-type-vs'}
        mustSupport: true
        index: 15
    required: [coding]
  basedOn:
    short: Requested or fulfilled MedicationRequest.
    refers: ['http://hl7.org/fhir/StructureDefinition/MedicationRequest']
    type: Reference
    mustSupport: true
    index: 5
  occurrenceDateTime: {type: dateTime, short: Specifies the date on which the prescription is to be issued., mustSupport: true, choiceOf: occurrence, index: 19}
  subject: {short: Patient for whom a prescription is requested on behalf of the patient., mustSupport: true, index: 16}
  occurrence:
    short: Specifies the date on which the prescription is to be issued.
    mustSupport: true
    choices: [occurrenceDateTime]
    index: 18
  performer:
    type: Reference
    short: Doctor who is to write the prescription.
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
    index: 22
  reasonReference:
    type: Reference
    short: Reference to an observation resource that indicates how long the current medication will last.
    refers: ['https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-remaining-medication']
    index: 24
package_version: 1.0.1
extensions:
  EPrescriptionToken: {url: 'https://gematik.de/fhir/erp-servicerequest/StructureDefinition/eprescription-token-ex', min: 0, max: 1, short: Here the e-prescription token can be made available for processing in a pharmacy., type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: https://gematik.de/fhir/erp-servicerequest/StructureDefinition/erp-service-request-prescription-request
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: '1.0'
required: [authoredOn, requester, orderDetail, basedOn, requisition, identifier]