PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.be.drp@1.1.1
    https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-annex-81
description: Annex81 proposal and approval
package_name: hl7.fhir.be.drp
derivation: constraint
name: BeAnnex81
type: ServiceRequest
elements:
  occurrence[x]:
    elements:
      repeat:
        elements:
          frequency:
            pattern: {type: PositiveInt, value: 1}
            index: 26
          period:
            pattern: {type: Decimal, value: 1}
            index: 27
          periodUnit:
            pattern: {type: Code, value: wk}
            index: 28
  category:
    mustSupport: true
    index: 16
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://snomed.info/sct'}
            index: 17
          code:
            pattern: {type: Code, value: '9632001'}
            index: 18
  reasonCode:
    binding: {strength: example, valueSet: 'https://www.ehealth.fgov.be/standards/fhir/drp/ValueSet/be-vs-annex-81-reason-code'}
    mustSupport: true
    index: 31
  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-annex-81', severity: warning, expression: empty() or toString().length()=25}
    mustSupport: true
    index: 29
  occurrenceTiming:
    type: Timing
    choiceOf: occurrence
    index: 25
    slicing:
      slices:
        occurrenceTiming:
          match: {}
          schema: {type: Timing, choiceOf: occurrence, index: 25}
          min: 0
          max: 1
  note:
    type: Annotation
    mustSupport: true
    index: 32
    extensions:
      code:
        url: null
        index: 33
        elements:
          value:
            choices: []
            index: 35
    elements:
      extension:
        index: 33
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 33
                elements:
                  value:
                    choices: []
                    index: 35
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        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: 1}
          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: 2}
          min: 0
          max: 1
        statusReason:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/request-statusReason|5.3.0
            index: 3
            elements:
              value:
                choices: []
                index: 5
  requester:
    type: Reference
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitionerrole|2.1.2']
    index: 30
  status: {mustSupport: true, index: 14}
  code:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: tmp-prep-x081-2, system: 'https://www.ehealth.fgov.be/standards/fhir/drp/CodeSystem/be-cs-temp-requested-service'}
    index: 19
  identifier:
    mustSupport: true
    index: 6
    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: 7
            elements:
              system:
                pattern: {type: Uri, value: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep'}
                index: 8
              value: {index: 9}
            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-annex-81', 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: 10
            elements:
              system:
                pattern: {type: Uri, value: 'https://www.ehealth.fgov.be/standards/fhir/drp/NamingSystem/uhmep-short'}
                index: 11
              value: {index: 12}
            required: [value, system]
  intent: {mustSupport: true, index: 15}
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-annex-81']
    index: 13
  subject: {mustSupport: true, index: 20}
  occurrence:
    choices: []
    index: 22
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        occurrenceTiming:
          match: {}
          schema:
            choices: [occurrenceTiming]
            index: 24
          min: 0
          max: 1
package_version: 1.1.1
extensions:
  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: 1}
  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: 2}
  statusReason:
    url: http://hl7.org/fhir/StructureDefinition/request-statusReason|5.3.0
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        choices: []
        index: 5
class: profile
kind: resource
url: https://www.ehealth.fgov.be/standards/fhir/drp/StructureDefinition/be-annex-81
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: 1.1.1
required: [authoredOn, requester, extension, reasonCode, code]