PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha.pds@2.0.0-alpha-preview-0.1
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-EpisodeOfCare
description: null
package_name: ca.on.oh.mha.pds
derivation: constraint
name: EpisodeOfCareV2Draft
type: EpisodeOfCare
elements:
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient']
    index: 15
    elements:
      reference: {mustSupport: true, index: 16}
    required: [reference]
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-EpisodeOfCare'}
        index: 1
    required: [profile]
  managingOrganization:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-organization']
    index: 17
    elements:
      reference: {mustSupport: true, index: 18}
    required: [reference]
  account: {index: 24}
  referralRequest:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest']
    index: 22
    elements:
      reference: {mustSupport: true, index: 23}
    required: [reference]
  extension:
    type: Extension
    mustSupport: true
    url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-FirstContactDate
    index: 2
    slicing:
      slices:
        FirstContactDate:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-FirstContactDate', index: 2}
          max: 1
        EligibilityScreeningDate:
          match: {}
          schema:
            type: Extension
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-eligibilityScreeningDate
            index: 3
            elements:
              value:
                mustSupport: true
                choices: []
                index: 5
        ServiceInitiationDate:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate', index: 6}
        InitialAssessmentDate:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-InitialAssessmentDate
            index: 7
            elements:
              value:
                choices: []
                index: 9
  status:
    constraint:
      status-key-1: {human: Service Termination Reason must be provided if EOC status is "finished", severity: error, expression: value='finished' implies extension.exists()}
    mustSupport: true
    index: 13
    extensions:
      serviceTerminationReason: {url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 14}
    elements:
      extension:
        type: Extension
        isModifier: false
        mustSupport: true
        url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason
        index: 14
        slicing:
          slices:
            serviceTerminationReason:
              match: {}
              schema: {type: Extension, isModifier: false, mustSupport: true, url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceTerminationReason', index: 14}
              max: 1
  identifier:
    mustSupport: true
    index: 10
    elements:
      system:
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/EpisodeOfCare-identifier-system'}
        mustSupport: true
        index: 11
      value: {mustSupport: true, index: 12}
    required: [value, system]
  period:
    mustSupport: true
    index: 19
    elements:
      start: {mustSupport: true, index: 20}
      end: {mustSupport: true, index: 21}
package_version: 2.0.0-alpha-preview-0.1
extensions:
  FirstContactDate: {url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-FirstContactDate', max: 1, type: Extension, mustSupport: true, index: 2}
  EligibilityScreeningDate:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-eligibilityScreeningDate
    type: Extension
    index: 3
    elements:
      value:
        mustSupport: true
        choices: []
        index: 5
  ServiceInitiationDate: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-ServiceInitiationDate', type: Extension, mustSupport: true, index: 6}
  InitialAssessmentDate:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-InitialAssessmentDate
    type: Extension
    mustSupport: true
    index: 7
    elements:
      value:
        choices: []
        index: 9
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-EpisodeOfCare
base: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
version: 2.0.0
required: [managingOrganization, identifier, meta]