Longer shifts does not mean that doctors can't have longer sleep that 4 hours. Let doctors have 16 or even 18-hour long shifts interleaved with days without shifts at all, for sleeping and some [light] paperwork.
This is, I believe, how firefighters work: long shifts of oncall where they live in the firehouse, separated by longer periods of non-work (rest, sleep, whatever).