AutoMedEval: Harnessing Language Models for Automatic Medical Capability Evaluation