PackagesCanonicalsLogsProblems
    Packages
    ca.on.mha.pds@2.0.0-beta-1
    https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason
description: The reason the client is terminated from the service. The termination could occur at different stages of service provision (first contact, intake, screening and waitlist, service delivery or service completion).
package_name: ca.on.mha.pds
derivation: constraint
name: ServiceTerminationReason
type: Extension
elements:
  extension:
    index: 0
    slicing:
      slices:
        reason:
          match: {}
          schema:
            short: for use when EoC status is completed
            mustSupport: true
            _required: true
            label: Service Termination Reason
            index: 1
            elements:
              url:
                pattern: {type: uri, value: reason}
                type: uri
                index: 2
              value:
                mustSupport: true
                choices: [valueCoding]
                index: 4
              valueCoding: {type: Coding, mustSupport: true, choiceOf: value, index: 5}
              value[x]:
                elements:
                  system: {mustSupport: true, index: 6}
                  code: {mustSupport: true, index: 7}
                  display: {mustSupport: true, index: 8}
                required: [code, display, system]
            required: [value, valueCoding]
        continuity:
          match: {}
          schema:
            label: Service Termination Continuity
            short: for use when service termination reason is provided
            mustSupport: true
            index: 9
            elements:
              url:
                pattern: {type: uri, value: continuity}
                type: uri
                index: 10
              value:
                choices: [valueCoding]
                index: 12
              valueCoding: {type: Coding, choiceOf: value, index: 13}
              value[x]:
                elements:
                  system: {mustSupport: true, index: 14}
                  code: {mustSupport: true, index: 15}
                  display: {mustSupport: true, index: 16}
                required: [code, display, system]
            required: [value, valueCoding]
        outbound-referral-source:
          match: {}
          schema:
            label: Outbound Referral Source
            short: for use when service termination reason is provided
            mustSupport: true
            index: 17
            elements:
              url:
                pattern: {type: uri, value: outbound-referral-source}
                type: uri
                index: 18
              value:
                mustSupport: true
                choices: [valueCoding]
                index: 20
              valueCoding: {type: Coding, mustSupport: true, choiceOf: value, index: 21}
              value[x]:
                elements:
                  system: {mustSupport: true, index: 22}
                  code: {mustSupport: true, index: 23}
                  display: {mustSupport: true, index: 24}
                required: [code, display, system]
            required: [value, valueCoding]
  url:
    pattern: {type: uri, value: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason'}
    type: uri
    index: 25
  value:
    choices: []
    index: 27
package_version: 2.0.0-beta-1
extensions:
  reason:
    url: null
    short: for use when EoC status is completed
    mustSupport: true
    _required: true
    label: Service Termination Reason
    index: 1
    elements:
      url:
        pattern: {type: uri, value: reason}
        type: uri
        index: 2
      value:
        mustSupport: true
        choices: [valueCoding]
        index: 4
      valueCoding: {type: Coding, mustSupport: true, choiceOf: value, index: 5}
      value[x]:
        elements:
          system: {mustSupport: true, index: 6}
          code: {mustSupport: true, index: 7}
          display: {mustSupport: true, index: 8}
        required: [code, display, system]
    required: [value, valueCoding]
  continuity:
    url: null
    label: Service Termination Continuity
    short: for use when service termination reason is provided
    mustSupport: true
    index: 9
    elements:
      url:
        pattern: {type: uri, value: continuity}
        type: uri
        index: 10
      value:
        choices: [valueCoding]
        index: 12
      valueCoding: {type: Coding, choiceOf: value, index: 13}
      value[x]:
        elements:
          system: {mustSupport: true, index: 14}
          code: {mustSupport: true, index: 15}
          display: {mustSupport: true, index: 16}
        required: [code, display, system]
    required: [value, valueCoding]
  outbound-referral-source:
    url: null
    label: Outbound Referral Source
    short: for use when service termination reason is provided
    mustSupport: true
    index: 17
    elements:
      url:
        pattern: {type: uri, value: outbound-referral-source}
        type: uri
        index: 18
      value:
        mustSupport: true
        choices: [valueCoding]
        index: 20
      valueCoding: {type: Coding, mustSupport: true, choiceOf: value, index: 21}
      value[x]:
        elements:
          system: {mustSupport: true, index: 22}
          code: {mustSupport: true, index: 23}
          display: {mustSupport: true, index: 24}
        required: [code, display, system]
    required: [value, valueCoding]
class: extension
kind: complex-type
url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason
base: http://hl7.org/fhir/StructureDefinition/Extension
version: null
required: [extension]