PackagesCanonicalsLogsProblems
    Packages
    ca.on.iar.r4@1.0.0-ballot1
    http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-encounter
description: An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
package_name: ca.on.iar.r4
derivation: constraint
name: EncounterIAR
type: Encounter
elements:
  serviceProvider:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-organization']
    index: 49
    elements:
      reference: {mustSupport: true, index: 50}
    required: [reference]
  reasonCode:
    mustSupport: false
    index: 21
    elements:
      coding:
        elements:
          display:
            extensions:
              translation:
                url: null
                index: 22
                elements:
                  url:
                    pattern: {type: Uri, value: translation}
                    index: 23
            elements:
              extension:
                index: 22
                slicing:
                  slices:
                    translation:
                      match: {}
                      schema:
                        index: 22
                        elements:
                          url:
                            pattern: {type: Uri, value: translation}
                            index: 23
  type:
    type: CodeableConcept
    binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/iar/ValueSet/program-type'}
    mustSupport: true
    index: 13
    elements:
      coding:
        elements:
          display:
            extensions:
              translation:
                url: null
                index: 14
                extensions: {}
                elements:
                  extension: {array: true, min: 2, index: 15}
            elements:
              extension:
                index: 14
                slicing:
                  slices:
                    translation:
                      match: {}
                      schema:
                        index: 14
                        extensions: {}
                        elements:
                          extension: {array: true, min: 2, index: 15}
  account:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-account']
    index: 24
    elements:
      reference: {mustSupport: true, index: 25}
    required: [reference]
  contained:
    constraint:
      dom-2: {human: 'If the resource is contained in another resource, it SHALL NOT contain nested Resources', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.contained.empty()}
      dom-4: {human: 'If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()}
      dom-3: {human: 'If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: 'contained.where(((''#''+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = ''#'').exists() or descendants().where(as(canonical) = ''#'').exists() or descendants().where(as(canonical) = ''#'').exists()).not()).trace(''unmatched'', id).empty()'}
      dom-6: {human: A resource should have narrative for robust management, source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: warning, expression: text.`div`.exists()}
      dom-5: {human: 'If a resource is contained in another resource, it SHALL NOT have a security label', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.security.empty()}
    short: Tracks balance, charges, for patient or cost center
    type: Resource
    mustSupport: true
    index: 0
  status: {mustSupport: true, index: 9}
  class:
    type: Coding
    binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/encounter-class'}
    mustSupport: true
    index: 10
    elements:
      display:
        extensions:
          translation:
            url: null
            index: 11
            extensions: {}
            elements:
              extension: {array: true, min: 2, index: 12}
        elements:
          extension:
            index: 11
            slicing:
              slices:
                translation:
                  match: {}
                  schema:
                    index: 11
                    extensions: {}
                    elements:
                      extension: {array: true, min: 2, index: 12}
  identifier:
    mustSupport: true
    index: 1
    elements:
      type:
        binding: {strength: extensible, valueSet: 'http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type'}
        mustSupport: true
        index: 2
        elements:
          coding:
            mustSupport: true
            index: 3
            elements:
              system: {mustSupport: true, index: 4}
              code: {mustSupport: true, index: 5}
              display: {mustSupport: true, index: 6}
            required: [display, system, code]
        required: [coding]
      system: {mustSupport: true, index: 7}
      value: {mustSupport: true, index: 8}
    required: [value, type, system]
  hospitalization:
    mustSupport: true
    index: 26
    elements:
      origin:
        mustSupport: true
        index: 27
        elements:
          reference: {mustSupport: true, index: 28}
      admitSource:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-admit-source'}
        mustSupport: true
        index: 29
        elements:
          coding:
            index: 30
            elements:
              system:
                pattern: {type: Uri, value: 'http://cihi.ca/fhir/CodeSystem/aac-admit-source'}
                index: 31
              display:
                extensions:
                  translation:
                    url: null
                    index: 32
                    extensions: {}
                    elements:
                      extension: {array: true, min: 2, index: 33}
                elements:
                  extension:
                    index: 32
                    slicing:
                      slices:
                        translation:
                          match: {}
                          schema:
                            index: 32
                            extensions: {}
                            elements:
                              extension: {array: true, min: 2, index: 33}
        required: [coding]
      reAdmission:
        mustSupport: true
        index: 34
        elements:
          coding:
            type: Coding
            mustSupport: true
            index: 35
            elements:
              display:
                extensions:
                  translation:
                    url: null
                    index: 36
                    extensions: {}
                    elements:
                      extension: {array: true, min: 2, index: 37}
                elements:
                  extension:
                    index: 36
                    slicing:
                      slices:
                        translation:
                          match: {}
                          schema:
                            index: 36
                            extensions: {}
                            elements:
                              extension: {array: true, min: 2, index: 37}
      destination:
        mustSupport: true
        index: 38
        elements:
          reference: {mustSupport: true, index: 39}
      dischargeDisposition:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'http://cihi.ca/fhir/ValueSet/aac-discharge-disposition'}
        mustSupport: true
        index: 40
        elements:
          coding:
            elements:
              display:
                extensions:
                  translation:
                    url: null
                    index: 41
                    extensions: {}
                    elements:
                      extension: {array: true, min: 2, index: 42}
                elements:
                  extension:
                    index: 41
                    slicing:
                      slices:
                        translation:
                          match: {}
                          schema:
                            index: 41
                            extensions: {}
                            elements:
                              extension: {array: true, min: 2, index: 42}
  period:
    isSummary: true
    mustSupport: true
    index: 18
    elements:
      start: {mustSupport: true, index: 19}
      end: {mustSupport: true, index: 20}
    required: [start]
  partOf:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-encounter']
    index: 51
    elements:
      reference: {mustSupport: true, index: 52}
    required: [reference]
  location:
    mustSupport: true
    index: 43
    elements:
      location:
        type: Reference
        mustSupport: true
        refers: ['http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-location']
        index: 44
        elements:
          reference: {mustSupport: true, index: 45}
        required: [reference]
      period:
        mustSupport: true
        index: 46
        elements:
          start: {mustSupport: true, index: 47}
          end: {mustSupport: true, index: 48}
        required: [start]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-patient']
    index: 16
    elements:
      reference: {mustSupport: true, index: 17}
    required: [reference]
package_version: 1.0.0-ballot1
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/iar/StructureDefinition/profile-encounter
base: http://hl7.org/fhir/StructureDefinition/Encounter
version: 1.0.0
required: [serviceProvider, subject, period]