The military is critically short of Arabic translators but that hasn't stopped them from discharging some under "don't ask/don't tell". One doctor, more or less, isn't going to bring the war to a halt, and if the military decides that another example needs to be made then they'll do it. I doubt Captain Rhodes will serve out her obligation, if she has any remaining.
I did say might. Although, I do think it's highly unlikely that they won't get her ob time from her. I could be wrong, but I've seen plenty of officers get administratively separated, immediately after their obligated time has expired.
That of course is predicated on the fact that she shows up and shuts up - a big if.