class HealthDataStandards::Import::C32::ImmunizationImporter
Public Class Methods
new(entry_finder=CDA::EntryFinder.new("//cda:section[cda:templateId/@root='2.16.840.1.113883.3.88.11.83.117']/cda:entry/cda:substanceAdministration"))
click to toggle source
Calls superclass method
# File lib/health-data-standards/import/c32/immunization_importer.rb, line 6 def initialize(entry_finder=CDA::EntryFinder.new("//cda:section[cda:templateId/@root='2.16.840.1.113883.3.88.11.83.117']/cda:entry/cda:substanceAdministration")) super(entry_finder) @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]" @entry_class = Immunization end
Public Instance Methods
create_entry(entry_element, nrh = CDA::NarrativeReferenceHandler.new)
click to toggle source
Calls superclass method
# File lib/health-data-standards/import/c32/immunization_importer.rb, line 13 def create_entry(entry_element, nrh = CDA::NarrativeReferenceHandler.new) immunization = super extract_reason_or_negation(entry_element, immunization) extract_performer(entry_element, immunization) immunization end
Private Instance Methods
extract_performer(parent_element, immunization)
click to toggle source
# File lib/health-data-standards/import/c32/immunization_importer.rb, line 22 def extract_performer(parent_element, immunization) performer_element = parent_element.at_xpath("./cda:performer") immunization.performer = import_actor(performer_element) if performer_element end