class HealthDataStandards::Import::CDA::EntryFinder
Public Class Methods
new(entry_xpath)
click to toggle source
# File lib/health-data-standards/import/cda/entry_finder.rb, line 5 def initialize(entry_xpath) @entry_xpath = entry_xpath end
Public Instance Methods
entries(doc) { |entry_element| ... }
click to toggle source
# File lib/health-data-standards/import/cda/entry_finder.rb, line 9 def entries(doc) entry_elements = doc.xpath(@entry_xpath) if block_given? entry_elements.each do |entry_element| yield entry_element end else entry_elements end end