Female Muslims are allowed to pursue medical fields. However, Islamic etiquettes must be upheld at all times during services or works.
Your situation: this is definitely not permissible under normal circumstance. Try to avoid it as much as possible. However, there is no harm in doing it if it’s completely beyond your control and it’s per the medical practice country wide.