Sha256: 2036f6633172bdb7d1bce7cfd864d9111d19d42c4b73cefb7f3050f1f02b29b1

Contents?: true

Size: 722 Bytes

Versions: 10

Compression:

Stored size: 722 Bytes

Contents

module HealthDataStandards
  module Import
    module CCDA
      class ConditionImporter < C32::ConditionImporter
        
        def initialize
          @entry_xpath = "//cda:section[cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5' or cda:templateId/@root='2.16.840.1.113883.10.20.22.2.5.1']/cda:entry/cda:act/cda:entryRelationship/cda:observation"
          @status_xpath = "./cda:entryRelationship/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.22.4.6']/cda:value"
          @description_xpath = "./cda:text/cda:reference[@value]"
          @code_xpath = "./cda:value"
          
          #optional
          #health status
          #age at onset
        end
        
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
health-data-standards-2.2.1 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.2.0 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.1.4 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.1.3 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.1.2 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.1.1 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.1.0 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-2.0.0 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-1.0.1 lib/health-data-standards/import/ccda/condition_importer.rb
health-data-standards-1.0.0 lib/health-data-standards/import/ccda/condition_importer.rb