I have always prioritised my health. This is very important because if you are not healthy, you can never enjoy what you usually do. In fact, even many other things may never seem appealing to you. So, health is the top priority and in case if you face any kind of emergency at work, then you should definitely go to hospital and your employer has no rights to stop you.
You can not even be able to work to your best ability whenever you are having any kind of health challenges. This is the reason why it is something that should never be compromised as a result of working for any company for any reason whatsoever. The moment your health deteriorates, the company will never see you as an asset for them to stick long with you for a long time. They are going to discard you and employ another person.