MedAdapter: Efficient Test-Time Adaptation of Large Language Models towards Medical Reasoning