Sha256: fdc3705d4d2f671e12e98e256ac7264235c192e6e95843e88e56b9f7888d70cb

Contents?: true

Size: 730 Bytes

Versions: 6

Compression:

Stored size: 730 Bytes

Contents

module QRDA
  module Cat1
    class ProgramParticipationImporter < SectionImporter
      def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.154']"))
        super(entry_finder)
        @id_xpath = './cda:id'
        @code_xpath = './cda:value'
        @participation_period_xpath = "./cda:effectiveTime"
        @entry_class = QDM::Participation
      end

      def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
        program_participation = super
        program_participation.participationPeriod = extract_interval(entry_element, @participation_period_xpath)
        program_participation
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cqm-reports-4.1.3 lib/qrda-import/data-element-importers/program_participation_importer.rb
cqm-reports-4.1.2 lib/qrda-import/data-element-importers/program_participation_importer.rb
cqm-reports-4.1.1 lib/qrda-import/data-element-importers/program_participation_importer.rb
cqm-reports-4.1.0 lib/qrda-import/data-element-importers/program_participation_importer.rb
cqm-reports-4.0.1 lib/qrda-import/data-element-importers/program_participation_importer.rb
cqm-reports-4.0.0 lib/qrda-import/data-element-importers/program_participation_importer.rb