Meanwhile, Dr Iain Kennedy, outgoing chair of the British Medical Association (BMA) Scotland, claimed that Scotland’s NHS was more focused on its reputation than patient safety.

He said clinicians who raised concerns often had their “characters challenged” and their careers had suffered.

He told BBC Radio Scotland: “Sadly there is a culture of cover-up, there’s a culture of trying to keep things hidden and to protect the reputation of health boards and ultimately to protect the government.”

And a scientist involved in the construction of Glasgow’s Queen Elizabeth University Hospital (QEUH) claimed his safety concerns were ignored for 15 years in a late submission to the Scottish Hospitals Inquiry.

Nursing union RCN Scotland welcomed the move to end corridor care, but said the plan “stops short” of setting out how it would be monitored and reported.

Executive director Colin Poolman said: “Too often our members are experiencing the impact hospital overcrowding has on patient safety and dignity, and on their own wellbeing.

“The plan rightly recognises that corridor care is a consequence of pressures across the whole system, but fails to identify and set out investment in the workforce needed to deliver improvements.”