If you get seriously ill you are helicoptered off, same with mental issues
You can't always get someone off a submarine promptly even if they are ill - all depends on where they are any what they are doing. Submariners know this is one of the risks before they sign up for the gig. Mission and safety of boat always come first. If it's not safe to surface, then you don't risk the boat and entire crew, end of.
So yes, you might have to be treated down there and kept from dying until it is possible to get you off
It's one of the reasons why they resisted female submariners for so long - it's really too risky to be pregnant down there. With a young male healthy crew, you are looking at trauma injuries from workplace incidents, dental emergencies and appendicitis (all of which can be managed by knocking out patient out with ketamine, so can be done with one MO and a med tech)
With women you have to add the risks of pregnancy, in particular that from ectopic pregnancy (immediate and to long term reproductive health) is unpleasantly high, and people do have surprise pregnancies or could start on on board (which is not meant to happen because of strict 'no touching' rules, but who knows)
How often are silent times? I'd cry if I went 6 months without any music of my own choosing!
Whenever it's operationally necessary, and for as long as required