Class: HealthDataStandards::Import::CCDA::EncounterImporter

Inherits:
HealthDataStandards::Import::C32::EncounterImporter show all
Defined in:
lib/health-data-standards/import/ccda/encounter_importer.rb

Overview

TODO Extract Discharge Disposition

Instance Attribute Summary

Attributes inherited from HealthDataStandards::Import::C32::SectionImporter

#check_for_usable

Instance Method Summary collapse

Methods inherited from HealthDataStandards::Import::C32::EncounterImporter

#create_entries, #create_entry

Methods inherited from HealthDataStandards::Import::C32::SectionImporter

#create_entries, #create_entry, #lookup_tag

Constructor Details

#initializeEncounterImporter

Returns a new instance of EncounterImporter.



7
8
9
10
11
12
13
# File 'lib/health-data-standards/import/ccda/encounter_importer.rb', line 7

def initialize
  @entry_xpath = "//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.22' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.22.1']/cda:entry/cda:encounter"
  @code_xpath = "./cda:code"
  @status_xpath = "./cda:statusCode"
  @description_xpath = "./cda:code/cda:originalText/cda:reference[@value] | ./cda:text/cda:reference[@value] "
  @reason_xpath = "./cda:entryRelationship[@typeCode='RSON']/cda:observation"
end