Legal proceeding in a court or a judicial contest to determine a dereliction from professional duty or a failure to exercise an accepted degree of professional skill or learning by one rendering professional services that results in injury, loss, or damage.