Sha256: 08794b0e0d77425960ba89e7bc78422b51297b63301c890bf2df150915e49340

Contents?: true

Size: 536 Bytes

Versions: 33

Compression:

Stored size: 536 Bytes

Contents

module QRDA
  module Util
    # General helpers for working with codes and code systems
    class QRDATemplateHelper

      def self.definition_for_template_id(hqmf_template_id, qrda_version = "r5")
        template_id_map(qrda_version)[hqmf_template_id]
      end

      def self.template_id_map(version)
        if @id_map.blank?
          @id_map = {
            'r5_1' => JSON.parse(File.read(File.expand_path('qrdar5_1_template_oid_map.json', __dir__)))
          }
        end
        @id_map[version]
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
cqm-reports-4.1.3 lib/util/qrda_template_helper.rb
cqm-reports-4.1.2 lib/util/qrda_template_helper.rb
cqm-reports-4.1.1 lib/util/qrda_template_helper.rb
cqm-reports-4.1.0 lib/util/qrda_template_helper.rb
cqm-reports-4.0.1 lib/util/qrda_template_helper.rb
cqm-reports-3.1.10 lib/util/qrda_template_helper.rb
cqm-reports-3.1.9 lib/util/qrda_template_helper.rb
cqm-reports-4.0.0 lib/util/qrda_template_helper.rb
cqm-reports-3.1.8 lib/util/qrda_template_helper.rb
cqm-reports-3.1.7 lib/util/qrda_template_helper.rb
cqm-reports-3.1.6 lib/util/qrda_template_helper.rb
cqm-reports-3.1.5 lib/util/qrda_template_helper.rb
cqm-reports-3.1.4 lib/util/qrda_template_helper.rb
cqm-reports-3.1.3 lib/util/qrda_template_helper.rb
cqm-reports-2.1.1 lib/util/qrda_template_helper.rb
cqm-reports-2.1.0 lib/util/qrda_template_helper.rb
cqm-reports-3.1.2 lib/util/qrda_template_helper.rb
cqm-reports-3.1.1 lib/util/qrda_template_helper.rb
cqm-reports-3.1.0 lib/util/qrda_template_helper.rb
cqm-reports-3.0.1 lib/util/qrda_template_helper.rb