Sha256: e2156a165db6c331eda907cb6918c812ece086327510b3b42d162219bb553b4c

Contents?: true

Size: 739 Bytes

Versions: 10

Compression:

Stored size: 739 Bytes

Contents

module HealthDataStandards
  module Import
    module Cat1
      class InsuranceProviderImporter < CDA::SectionImporter
      
        def initialize
          super(CDA::EntryFinder.new("//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
          ip
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
health-data-standards-3.4.4 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.4.3 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.4.2 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.4.1 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.4.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.2.12 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.3.0 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.2.11 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.2.10 lib/health-data-standards/import/cat1/insurance_provider_importer.rb
health-data-standards-3.2.8 lib/health-data-standards/import/cat1/insurance_provider_importer.rb