Sha256: d8e6e236782ea36a287eb1c1d8a6220f4a1852ad88897f0ed281e3e61a034135

Contents?: true

Size: 941 Bytes

Versions: 14

Compression:

Stored size: 941 Bytes

Contents

module QRDA
  module Cat1
    class FamilyHistoryImporter < SectionImporter
      def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:organizer[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.12']"))
        super(entry_finder)
        @id_xpath = './cda:id'
        @code_xpath = "./cda:component/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.112']/cda:value"
        @author_datetime_xpath = "./cda:component/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.112']/cda:author/cda:time"
        @relationship_xpath = './cda:subject/cda:relatedSubject/cda:code'
        @entry_class = QDM::FamilyHistory
      end

      def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
        family_history = super
        family_history.relationship = code_if_present(entry_element.at_xpath(@relationship_xpath))
        family_history
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cqm-reports-2.1.1 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.1.0 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.8 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.7 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.6 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.5 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-3.0.0.pre.alpha.2 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.4 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.3 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-3.0.0.pre.alpha.1 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.2 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.1 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-2.0.0 lib/qrda-import/data-element-importers/family_history_importer.rb
cqm-reports-1.0.0.0 lib/qrda-import/data-element-importers/family_history_importer.rb