Class: HealthDataStandards::Import::CCDA::ConditionImporter

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

Instance Attribute Summary

Attributes inherited from HealthDataStandards::Import::CDA::SectionImporter

#check_for_usable, #code_xpath, #status_xpath

Instance Method Summary collapse

Methods inherited from HealthDataStandards::Import::C32::ConditionImporter

#create_entry

Methods inherited from HealthDataStandards::Import::CDA::ConditionImporter

#create_entry

Methods inherited from HealthDataStandards::Import::CDA::SectionImporter

#create_entries, #create_entry

Methods included from HealthDataStandards::Import::CDA::LocatableImportUtils

#import_address, #import_telecom

Constructor Details

#initializeConditionImporter

Returns a new instance of ConditionImporter.



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

def initialize
  super
  @entry_finder = CDA::EntryFinder.new("//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5.1']/cda:entry/cda:act/cda:entryRelationship/cda:observation")
  @status_xpath = "./cda:entryRelationship/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.6']/cda:value"
  
  #optional
  #health status
  #age at onset
end