PackagesCanonicalsLogsProblems
    Packages
    ca.on.mha.pds@2.0.0-snapshot1
    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}
                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: [display, system, code]
            required: [valueCoding, value]
        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}
                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: [display, system, code]
            required: [valueCoding, value]
        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}
                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: [display, system, code]
            required: [valueCoding, value]
  url:
    pattern: {type: Uri, value: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason'}
    index: 25
  value:
    choices: []
    index: 27
package_version: 2.0.0-snapshot1
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}
        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: [display, system, code]
    required: [valueCoding, value]
  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}
        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: [display, system, code]
    required: [valueCoding, value]
  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}
        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: [display, system, code]
    required: [valueCoding, value]
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]