Class: HealthDataStandards::Import::CCDA::ImmunizationImporter

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

Instance Attribute Summary

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

#check_for_usable

Instance Method Summary collapse

Methods inherited from HealthDataStandards::Import::C32::ImmunizationImporter

#create_entries

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

#create_entries, #create_entry, #lookup_tag

Constructor Details

#initializeImmunizationImporter

Returns a new instance of ImmunizationImporter.



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

def initialize
  @entry_xpath = "//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.2' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.2.1']/cda:entry/cda:substanceAdministration"
  @code_xpath = "./cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code"
  @description_xpath = "./cda:consumable/cda:manufacturedProduct/cda:manufacturedMaterial/cda:code/cda:originalText/cda:reference[@value]"
  @refusal_reason_xpath = "./cda:entryRelationship[@typeCode='MFST']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.9']/cda:value"
end