Fun fact: in reality it turns out that fasting (aka "limited controlled starvation") seems to be better for "healing" your body than the alternatives.
I know and in real life hospital you are not allowed food unless doctor says so. In addition before operation it is not recommended food and not immediately after operation.
Depending on what you have, but if it is bacteria infection (not COVID 19 that is virus) I would guess they can set liquid water to you and antibiotics (can help vs bacteria infection, but not against virus like COVID 19), but food no not unless doctor gives permission.
Personally I got PIGFLUE H1N1 really hard and was taken to hospital care and got oxygen mask. I was not tempted to eat when had oxygen mask. I never need to take pigflue vaccine. I have now got first vaccine shot vs COVID 19 and have been lucky to avoid that. I look forward to the moment when I get my second vaccination vs COVID 19.
I dont give a crap about comments like normal flue kills a lot. Flue usually kills very old and weak people. A Pandemic like H1N1 pigflue or COVID 19 it does not care if you are fit and do sports (I do sports) and it can KILL! In addition there is risk for immediaty follow up of bacteria infections in lungs after those this is a real killer:
https://en.wikipedia.org/wiki/Pneumonia"Each year, pneumonia affects about 450 million people globally (7% of the population) and results in about 4 million deaths."