def extract_definition_from_template_id
      found = false

      @template_ids.each do |template_id|
        defs = HQMF::DataCriteria.definition_for_template_id(template_id, 'r2')
        if defs
          @definition = defs['definition']
          @status = defs['status'].length > 0 ? defs['status'] : nil
          found ||= true
        else
          found ||= handle_known_template_id(template_id)
        end
      end

      found
    end
def extract_definition_from_template_id
      found = false

      @template_ids.each do |template_id|
        defs = HQMF::DataCriteria.definition_for_template_id(template_id, 'r2')
        if defs
          @definition = defs['definition']
          @status = defs['status'].length > 0 ? defs['status'] : nil
          found ||= true
        else
          found ||= handle_known_template_id(template_id)
        end
      end

      found
    end
Given a template id, derive (if available) the definition for the template.
  The definitions are stored in hqmf-model/data_criteria.json.