I'm a junior hospital doctor in the UK (currently working in the emergency department, but have worked in quite a few different depts in the same hospital). Our shifts in the ED are mostly 9-10 hours, which with the intensity of the work is about all I can manage (I usually start to flake out a bit after about 8 hours, so I tend to take slightly longer sorting out each patient at the end of my shifts than I would do at the beginning).
Several of my other rotations had 12-hour or even 13-hour on-calls (not every day - the standard workday was probably 9-10 hours, with a longer on-call shift a couple of times a week on average), and those could really drag sometimes, especially if you had several in a row. Fortunately those were mostly jobs where the shifts weren't quite as intense as in the ED. My average work week has varied from about 40 hours (ED - but most of them evening/weekend/night) to nearly 60 hours on average in some of my jobs last year.
I don't think I've ever *quite* got to the stage of being completely unsafe to work due to tiredness - although I do sometimes wonder at the end of a nightshift, as I start to hallucinate on my way home and can't work out which key to open my front door with! I'm sure I'm not as good a doctor at the end of a long shift as I am at the beginning though. The recent reforms of doctors' working patterns in the UK have been a big improvement from that point of view - these days nobody is expected to do a full workday, be on call overnight, and still do a full workday the next day.
I suppose it's probably easier in some ways to maintain attention and 'productivity' over a prolonged period in a job like medicine than it is in your average office job, because you're talking to people and problem-solving rather than staring at a computer screen - but it still gets quite mentally (and physically) fatiguing after a while.