PackagesCanonicalsLogsProblems
    Packages
    OntarioacCDRFHIRImplementationGuide@0.10.00-0.1.0
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter
description: null
package_name: OntarioacCDRFHIRImplementationGuide
derivation: constraint
name: CDREncounter
type: Encounter
elements:
  diagnosis:
    mustSupport: true
    index: 33
    elements:
      condition:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-Condition']
        index: 34
        elements:
          reference: {mustSupport: true, index: 35}
        required: [reference]
      use: {mustSupport: true, index: 36}
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter'}
        index: 1
    required: [profile]
  serviceProvider:
    type: Reference
    short: The organization (facility) responsible for this encounter. For virtual visit, this is the solution
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Organization']
    index: 40
    elements:
      identifier: {mustSupport: true, index: 41}
      display: {mustSupport: true, index: 42}
  reasonCode:
    mustSupport: true
    index: 25
    elements:
      coding:
        mustSupport: true
        index: 26
        elements:
          system: {mustSupport: true, index: 27}
          code: {index: 28}
          display: {index: 29}
        required: [display, system, code]
      text: {mustSupport: true, index: 30}
    required: [coding]
  type:
    mustSupport: true
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: this, type: pattern}
      min: null
      max: 1
      slices:
        VirtualVisitModalities:
          match: {this: null}
          schema:
            binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/encountertypecode'}
            mustSupport: true
            index: 9
          max: 1
        AACAdmitCategories:
          match: {this: null}
          schema:
            binding: {strength: preferred, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-admit-category'}
            mustSupport: true
            index: 10
          max: 1
  participant:
    mustSupport: true
    index: 15
    elements:
      type: {mustSupport: true, index: 16}
      individual:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-practitioner']
        index: 17
        elements:
          reference: {index: 18}
        required: [reference]
    required: [individual, type]
  serviceType:
    binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/practitionerspecialty'}
    mustSupport: true
    index: 11
    elements:
      coding: {index: 12}
    required: [coding]
  contained: {mustSupport: true, index: 2}
  priority:
    binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/acCDR-encounter-priority'}
    mustSupport: true
    index: 13
  status: {mustSupport: true, index: 6}
  class:
    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/acCDR-encounter-class'}
    constraint:
      elem-2: {human: Virtual Encounter class must have modality value, source: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter', severity: error}
    mustSupport: true
    index: 7
  length:
    mustSupport: true
    index: 22
    elements:
      value: {mustSupport: true, index: 23}
      unit: {mustSupport: true, index: 24}
    required: [value, unit]
  identifier:
    mustSupport: true
    index: 3
    elements:
      system: {mustSupport: true, index: 4}
      value: {mustSupport: true, index: 5}
    required: [value, system]
  hospitalization:
    elements:
      dischargeDisposition: {mustSupport: true, index: 37}
  period:
    mustSupport: true
    index: 19
    elements:
      start: {mustSupport: true, index: 20}
      end: {mustSupport: true, index: 21}
  location:
    index: 38
    elements:
      location:
        elements:
          reference: {mustSupport: true, index: 39}
        required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Patient']
    index: 14
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-Condition']
    index: 31
    elements:
      reference: {mustSupport: true, index: 32}
    required: [reference]
package_version: 0.10.00-0.1.0
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-accdr-profile-Encounter
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: null
required: [identifier, subject]