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.5.0 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.6 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.5 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.4 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.3 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.2 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.1 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.4.0 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.12 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.3.0 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.11 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.10 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.8 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.7 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.6 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.5 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.4 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.3 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.2 lib/health-data-standards/import/cda/entry_finder.rb
health-data-standards-3.2.1 lib/health-data-standards/import/cda/entry_finder.rb