PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.be.drp@1.1.1
    https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-referral-servicerequest
description: The common structure for referral prescription.
package_name: hl7.fhir.be.drp
derivation: constraint
name: BeReferralServiceRequest
type: ServiceRequest
elements:
  performerType: {mustSupport: true, index: 31}
  category:
    binding: {strength: example, valueSet: 'https://www.ehealth.fgov.be/standards/fhir/drp/ValueSet/be-vs-referral-category'}
    mustSupport: true
    index: 23
  supportingInfo: {mustSupport: true, index: 34}
  reasonCode: {mustSupport: true, index: 33}
  authoredOn:
    constraint:
      be-inv-long-date: {human: 'date SHALL contain a long date (YYYY-MM-DDThh:mm:ss+zz:zz)', source: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-referral-servicerequest', severity: warning, expression: empty() or toString().length()=25}
    mustSupport: true
    index: 29
  note:
    type: Annotation
    mustSupport: true
    index: 37
    extensions:
      code:
        url: null
        index: 38
        elements:
          value:
            choices: []
            index: 40
    elements:
      extension:
        index: 38
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 38
                elements:
                  value:
                    choices: []
                    index: 40
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        feedback:
          match: {url: null}
          schema: {type: Extension, short: Whether prescriber requests feedback, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-feedback-to-prescriber', index: 1}
          min: 0
          max: 1
        validity:
          match: {url: null}
          schema: {type: Extension, short: Validity period of the prescription, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-validity-period', index: 2}
          min: 1
          max: 1
        latest:
          match: {url: null}
          schema: {type: Extension, short: Request must be executed before, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-latest-end-date', index: 3}
          min: 0
          max: 1
        performerType:
          match: {url: null}
          schema: {type: Extension, short: Discipline of provider. Replaces .performerType because of insufficient cardinality, mustSupport: true, url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-performer-type', index: 4}
          min: 0
        statusReason:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/request-statusReason|5.3.0
            index: 5
            elements:
              value:
                choices: []
                index: 7
        device:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-ext-codeable-reference
            index: 8
            extensions:
              reference:
                url: null
                index: 9
                elements:
                  value:
                    choices: [valueReference]
                    index: 11
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/DeviceDefinition']
                    index: 12
            elements:
              extension:
                index: 9
                slicing:
                  slices:
                    reference:
                      match: {}
                      schema:
                        index: 9
                        elements:
                          value:
                            choices: [valueReference]
                            index: 11
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://hl7.org/fhir/StructureDefinition/DeviceDefinition']
                            index: 12
  requester:
    type: Reference
    short: Prescriber of the requested service
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitionerrole|2.1.2']
    index: 30
  status: {mustSupport: true, index: 21}
  code:
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/procedure-code'}
    mustSupport: true
    index: 24
  identifier:
    mustSupport: true
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        UHMEP:
          match: {system: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep'}
          schema:
            short: Reference ID of the UHMEP once available there
            mustSupport: true
            index: 14
            elements:
              system:
                pattern: {type: Uri, value: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep'}
                index: 15
              value: {index: 16}
            required: [value, system]
        SHORT:
          match: {system: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep-short'}
          schema:
            short: Patient friendly ID (UHMEP SHORT)
            constraint:
              be-inv-uhmep-short: {human: 'The format of UHMEP-SHORT is 6 capital alphanumerics, without O', source: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-referral-servicerequest', severity: warning, expression: 'Identifier.where(system = ''https://www.ehealth.fgov.be/standards/fhir/referral/NamingSystem/uhmep-short'').where(value.extension.empty() or value.extension.where(url = ''https://www.ehealth.fgov.be/standards/fhir/infsec/StructureDefinition/be-ext-pseudonymization'').empty()).value.select($this.matches(''[A-NP-Z0-9]{6}'')).allTrue()'}
            mustSupport: true
            index: 17
            elements:
              system:
                pattern: {type: Uri, value: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep-short'}
                index: 18
              value: {index: 19}
            required: [value, system]
  bodySite:
    mustSupport: true
    index: 35
    extensions:
      bodyLaterality: {url: 'https://www.ehealth.fgov.be/standards/fhir/core-clinical/StructureDefinition/be-ext-laterality', min: 0, max: 1, type: Extension, index: 36}
    elements:
      extension:
        type: Extension
        url: https://www.ehealth.fgov.be/standards/fhir/core-clinical/StructureDefinition/be-ext-laterality
        index: 36
        slicing:
          slices:
            bodyLaterality:
              match: {}
              schema: {type: Extension, url: 'https://www.ehealth.fgov.be/standards/fhir/core-clinical/StructureDefinition/be-ext-laterality', index: 36}
              min: 0
              max: 1
  intent:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/request-intent|4.0.1'}
    mustSupport: true
    index: 22
  orderDetail: {mustSupport: true, index: 25}
  basedOn: {mustSupport: true, index: 20}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient|2.1.2']
    index: 26
  occurrence:
    short: When service shall occur - once this is past, this prescription is no longer valid and the status shall reflect this.
    mustSupport: true
    choices: []
    index: 28
  performer:
    type: Reference
    short: Requested performer - typically reference to practitionerroles
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitionerrole|2.1.2']
    index: 32
package_version: 1.1.1
extensions:
  feedback: {url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-feedback-to-prescriber', min: 0, max: 1, type: Extension, short: Whether prescriber requests feedback, mustSupport: true, index: 1}
  validity: {url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-validity-period', min: 1, max: 1, type: Extension, short: Validity period of the prescription, mustSupport: true, index: 2}
  latest: {url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-latest-end-date', min: 0, max: 1, type: Extension, short: Request must be executed before, mustSupport: true, index: 3}
  performerType: {url: 'https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-ext-performer-type', min: 0, type: Extension, short: Discipline of provider. Replaces .performerType because of insufficient cardinality, mustSupport: true, index: 4}
  statusReason:
    url: http://hl7.org/fhir/StructureDefinition/request-statusReason|5.3.0
    type: Extension
    mustSupport: true
    index: 5
    elements:
      value:
        choices: []
        index: 7
  device:
    url: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-ext-codeable-reference
    type: Extension
    mustSupport: true
    index: 8
    extensions:
      reference:
        url: null
        index: 9
        elements:
          value:
            choices: [valueReference]
            index: 11
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://hl7.org/fhir/StructureDefinition/DeviceDefinition']
            index: 12
    elements:
      extension:
        index: 9
        slicing:
          slices:
            reference:
              match: {}
              schema:
                index: 9
                elements:
                  value:
                    choices: [valueReference]
                    index: 11
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/DeviceDefinition']
                    index: 12
class: profile
kind: resource
url: https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-referral-servicerequest
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: 1.1.1
required: [authoredOn, requester, extension, category, code]