Class: HealthDataStandards::Import::Cat1::DiagnosisImporter

Inherits:
DiagnosisActiveImporter show all
Defined in:
lib/health-data-standards/import/cat1/diagnosis_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 DiagnosisActiveImporter

#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

#initializeDiagnosisImporter

Returns a new instance of DiagnosisImporter.



6
7
8
9
10
11
# File 'lib/health-data-standards/import/cat1/diagnosis_importer.rb', line 6

def initialize
  super(CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.135']"))
  @status_xpath = nil # We'll hardcode this to active in create entry because this is from the 
                      # diagnosis active template
  @laterality_xpath = "./cda:targetSiteCode"
end