Sha256: 180990a5c4303397f5180dbcfe14973d567db654217a02db08cfd8d46ae77bf7

Contents?: true

Size: 1001 Bytes

Versions: 16

Compression:

Stored size: 1001 Bytes

Contents

module HealthDataStandards
  module Import
    module Cat1
      class DiagnosisActiveImporter < CDA::ConditionImporter

        def initialize(entry_finder=CDA::EntryFinder.new("//cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.11']"))
          super(entry_finder)
          @status_xpath = nil # We'll hardcode this to active in create entry because this is from the 
                              # diagnosis active template
          @severity_xpath = "./cda:entryRelationship/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.8']/cda:value"                    
          @laterality_xpath = "./cda:value/cda:qualifier[cda:name/@code='182353008']/cda:value"
        end

        def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
          condition = super(entry_element,nrh)
          extract_severity(entry_element,condition)
          extract_laterality(entry_element,condition)
          condition
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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