Sha256: de411391988b805499ab47a2e1d66b422bbec393242c6f1ab36ca1cb4b7ff430

Contents?: true

Size: 899 Bytes

Versions: 30

Compression:

Stored size: 899 Bytes

Contents

module HealthDataStandards
  module Export
    module GreenC32
      # Module that will create objects that can be used to export GreenCDA sections
      module ExportGenerator
        # Creates an object that can be used to export objects into GreenCDA.
        # @example Creating an results exporter
        #   exporter = ExportGenerator.create_exporter_for(:result)
        #   exporter.export(result) # => Returns GreenCDA XML in a String
        # @param [Symbol] section the section to create the exporter for
        # @return [Object] that has an export method
        def create_exporter_for(section)
          object = Object.new
          object.define_singleton_method(:export) do |section_instance|
            HealthDataStandards::Export::GreenC32::Entry.new.export(section_instance, section)
          end
          object
        end
        extend self
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
health-data-standards-3.5.3 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.5.2 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.5.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.5.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.6 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.5 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.4 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.3 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.2 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.4.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.12 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.3.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.11 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.10 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.8 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.7 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.6 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.5 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-3.2.4 lib/health-data-standards/export/green_c32/export_generator.rb