class QRDA::Util::QRDATemplateHelper
General helpers for working with codes and code systems
Public Class Methods
definition_for_template_id(hqmf_template_id, qrda_version = "r5")
click to toggle source
# File lib/util/qrda_template_helper.rb, line 6 def self.definition_for_template_id(hqmf_template_id, qrda_version = "r5") template_id_map(qrda_version)[hqmf_template_id] end
template_id_map(version)
click to toggle source
# File lib/util/qrda_template_helper.rb, line 10 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