def definition_for_nil_entry
      reference = @entry.at_xpath('./*/cda:outboundRelationship/cda:criteriaReference', HQMF2::Document::NAMESPACES)
      ref_id = nil
      unless reference.nil?
        ref_id = "#{HQMF2::Utilities.attr_val(reference, 'cda:id/@extension')}_#{HQMF2::Utilities.attr_val(reference, 'cda:id/@root')}"
      end
      reference_criteria = @data_criteria_references[strip_tokens(ref_id)] unless ref_id.nil?
      if reference_criteria
        # we only want to copy the reference criteria definition, status, and code_list_id if this is this is not a grouping criteria (i.e., there are no children)
        if @children_criteria.blank?
          @definition = reference_criteria.definition
          @status = reference_criteria.status
          if @specific_occurrence
            @title = reference_criteria.title
            @description = reference_criteria.description
            @code_list_id = reference_criteria.code_list_id
          end
        else
          # if this is a grouping data criteria (has children) mark it as derived and only pull title and description from the reference criteria
          @definition = 'derived'
          if @specific_occurrence
            @title = reference_criteria.title
            @description = reference_criteria.description
          end
        end
      else
        puts "MISSING_DC_REF: #{ref_id}" unless @variable
        @definition = 'variable'
      end
    end
def definition_for_nil_entry
      reference = @entry.at_xpath('./*/cda:outboundRelationship/cda:criteriaReference', HQMF2::Document::NAMESPACES)
      ref_id = nil
      unless reference.nil?
        ref_id = "#{HQMF2::Utilities.attr_val(reference, 'cda:id/@extension')}_#{HQMF2::Utilities.attr_val(reference, 'cda:id/@root')}"
      end
      reference_criteria = @data_criteria_references[strip_tokens(ref_id)] unless ref_id.nil?
      if reference_criteria
        # we only want to copy the reference criteria definition, status, and code_list_id if this is this is not a grouping criteria (i.e., there are no children)
        if @children_criteria.blank?
          @definition = reference_criteria.definition
          @status = reference_criteria.status
          if @specific_occurrence
            @title = reference_criteria.title
            @description = reference_criteria.description
            @code_list_id = reference_criteria.code_list_id
          end
        else
          # if this is a grouping data criteria (has children) mark it as derived and only pull title and description from the reference criteria
          @definition = 'derived'
          if @specific_occurrence
            @title = reference_criteria.title
            @description = reference_criteria.description
          end
        end
      else
        puts "MISSING_DC_REF: #{ref_id}" unless @variable
        @definition = 'variable'
      end
    end
If there is no entry type, extract the entry type from what it references, and extract additional information for
 specific occurrences. If there are no outbound references, print an error and mark it as variable.