Sha256: 78aef09ca4ce5858b99618b470dd36ed3a87e7b4158ce0dd69066567e691647e

Contents?: true

Size: 895 Bytes

Versions: 13

Compression:

Stored size: 895 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.export(section_instance, section)
          end
          object
        end
        extend self
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
health-data-standards-2.2.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.2.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.1.4 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.1.3 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.1.2 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.1.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.1.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-2.0.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-1.0.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-1.0.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-0.8.1 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-0.8.0 lib/health-data-standards/export/green_c32/export_generator.rb
health-data-standards-0.7.1 lib/health-data-standards/export/green_c32/export_generator.rb