We are barely able to give up pure leisure and convenience when faced with doomsday scenarios. You're under the impression the first thing that would go in such a scenario would be the life-saving stuff?
Production of eg. healthcare would absolutely be affected but that would just mean it would be more expensive for governments. Good example: your vaccine is free because governments invested collectively trillions of dollars into their production. It's free despite being one of the most expensive things we've done lately.