Sha256: 9f8b5d9691cff915935e2048fcae1294678029bd8e9e2d52f0552eb919304ad2

Contents?: true

Size: 466 Bytes

Versions: 47

Compression:

Stored size: 466 Bytes

Contents

module HealthDataStandards
  module Import
    module CDA
      class EntryFinder
        def initialize(entry_xpath)
          @entry_xpath = entry_xpath
        end

        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
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
health-data-standards-3.2.0 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.1.1 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.1.0 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.0.6 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.0.5 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.0.4 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.0.3 lib/health-data-standards/import/cda/entry_finder.rb