Preoperative medical testing for cataract surgery