No, medical staff is not on duty 24/7 at all jails. And even when they are, they are often minimal medically trained, borderline or outright incompetent and lack even basic empathy for inmates.  They are also always looking for the cheapest alternative, regardless of efficacy.   Add that layer to uncaring guards and you have a perfect storm of factors conducive to in-custody deaths.