PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha-pds@0.9.0-alpha-1.9.7.26
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter
description: Proposed constraints and extensions on the Encounter Resource
package_name: ca.on.oh.mha-pds
derivation: constraint
name: Encounter
type: Encounter
elements:
  appointment:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-Appointment']
    index: 27
    elements:
      reference: {mustSupport: true, index: 28}
    required: [reference]
  diagnosis:
    elements:
      rank: {mustSupport: true, index: 31}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter'}
        index: 1
    required: [profile]
  episodeOfCare:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-EpisodeOfCare']
    index: 24
  type:
    binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/EncounterTypeCode'}
    mustSupport: true
    index: 17
    elements:
      coding:
        mustSupport: true
        index: 18
        elements:
          system: {mustSupport: true, index: 19}
          code: {mustSupport: true, index: 20}
          display: {mustSupport: true, index: 21}
        required: [display, system, code]
    required: [coding]
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        directMinutes:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes
            index: 3
            elements:
              value:
                mustSupport: true
                choices: []
                index: 5
        indirectMinutes:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes
            index: 6
            elements:
              value:
                mustSupport: true
                choices: []
                index: 8
  status: {mustSupport: true, index: 12}
  class:
    mustSupport: true
    index: 13
    elements:
      system:
        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
        mustSupport: true
        index: 14
      code: {mustSupport: true, index: 15}
      display: {mustSupport: true, index: 16}
    required: [display, system, code]
  identifier:
    mustSupport: true
    array: true
    min: 1
    max: 2
    index: 9
    elements:
      system:
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/Encounter-identifier-system'}
        mustSupport: true
        index: 10
      value: {mustSupport: true, index: 11}
    required: [value, system]
  hospitalization:
    elements:
      dischargeDisposition:
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/encounterdischargedisposition'}
        index: 32
  period:
    mustSupport: true
    index: 29
    elements:
      start: {mustSupport: true, index: 30}
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest']
    index: 25
    elements:
      reference: {mustSupport: true, index: 26}
  location:
    mustSupport: true
    index: 33
    elements:
      location:
        type: Reference
        refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location']
        index: 34
  subject:
    type: Reference
    short: The patient present at the encounter
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient']
    index: 22
    elements:
      reference: {mustSupport: true, index: 23}
    required: [reference]
package_version: 0.9.0-alpha-1.9.7.26
extensions:
  directMinutes:
    url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-directminutes
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        mustSupport: true
        choices: []
        index: 5
  indirectMinutes:
    url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-indirectminutes
    type: Extension
    mustSupport: true
    index: 6
    elements:
      value:
        mustSupport: true
        choices: []
        index: 8
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 0.1.0
required: [identifier, subject, meta]