If you go through the MEB and get retirement, you will be retired at your current, officer rank.
If you go through regular retirement, then yes, you would need to stay in 4 more years.
You will be evaluated based on your medical condition, not your years of service.