Record numbers of people are experiencing long waits in emergency departments because hospital beds are full and doctors are struggling to get patients out.
Edinburgh Royal Infirmary (ERI), one of the busiest hospitals in Scotland, is a prime example of the problems facing the NHS.
It has 876 beds but on the day we visited 137 were occupied by patients who were clinically ready to be discharged.
That is almost one in six beds taken up by someone who could be sent home or moved to care elsewhere if suitable support was available.
Data suggests the picture is similar across the country with about 1,800 of Scotland’s hospital beds occupied by patients who could be discharged.