fixed bug for not showing diagnoses rows

was counting procedures instead of diagnoses