Sha256: 128012d413645605a36332fe000e3cf2c3b77247ec3203368af5f851d7c2be9f

Contents?: true

Size: 792 Bytes

Versions: 18

Compression:

Stored size: 792 Bytes

Contents

module HealthDataStandards
  module Import
    module Cat1
      class InsuranceProviderImporter < CDA::SectionImporter
      
        def initialize
          super(CDA::EntryFinder.new("./cda:entry/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.55']"))
          @check_for_usable = false # needs to be this way becase InsuranceProvider does not respond
                                    # to usable?
        end

        def create_entry(payer_element, nrh = CDA::NarrativeReferenceHandler.new)
          ip = InsuranceProvider.new
          value_element = payer_element.at_xpath('cda:value')
          ip.codes = { 'SOP' => [value_element['code']] } if value_element
          extract_dates(payer_element, ip)
          ip
        end

      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.3.4 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.3.3 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.3.2 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.3.1 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.3.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.2.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.1.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.6 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.5 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.4 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.3 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.2 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.1 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-4.0.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.7.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.6.1 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.5.3 lib/health-data-standards/import/cat1/insurance_provider_importer.rb