A man at the centre of a fatal stabbing in a flat was discharged to his family's care without a face-to-face handover by doctors treating his "delusional" behaviour.
Record Drugs Deaths In Scotland
Drug-related deaths reached a record high last year, new figures have shown.
The number of drug deaths registered in 2014 was 613, up by 16% on 2013, according to the National Records of Scotland.
Males accounted for almost three-quarters of the deaths while more than a third occurred in the 35-44 age group.
Over 90% of the deaths involved a combination of drugs, with heroin and/or morphine implicated in half of them.
Methadone, prescribed to addicts on the NHS, was implicated in, or potentially contributed to, just over a third of the deaths.
Community safety minister Paul Wheelhouse said: "The figures published today highlight that while there has been some progress in tackling problem drug use, Scotland still faces a huge challenge in tackling the damaging effects of long-term drug use among an ageing cohort of individuals in Scotland.
"This group of individuals often have long-term, chronic health problems as a result of sustained and, in many cases, increasingly chaotic drug-use issues.
"Pin-pointing a cause of death is never easy but is typically complex.
"We are undertaking work to better understand the needs of particular sub-groups and to better understand what role the purity, or strength, of illicit drugs is playing in increasing fatalities.''
He added that it was "extremely important'' for younger drug users to take stock of the statistics.
"They should act as a vital wake-up call around the danger of using illegal drugs,'' he said.
"I am realistic about the fact there is no one-size-fits-all approach to treating individuals with problem drug use, but I know that by working with our NHS and our partner organisations we will continue to build on the good progress made and look for ways to improve how we tackle the damaging impact of drugs in Scotland.''
The Scottish Government is also working with the UK Government on new legislation to tackle new psychoactive substances (NPS), or "legal highs".
An NPS was implicated in or potentially contributed to 62 deaths in 2014, largely unchanged from the previous year.
Two men and a woman have been arrested after police seized drugs worth an estimated £58,000.
Stefano Brizzi was found hanged in his cell around a month after being taken off suicide watch, an inquest heard.
iona McMaster, 41, was reported missing having last been seen outside Marks and Spencer in Morningside Road in Edinburgh at around 4.40pm on August 8.
Most Viewed Pictures On Heart
Recently Played Tracks
To listen live, choose your preferred station:
Now playing: The best feel good music
Deposit £10 to get a £40 Welcome Bonus - That's £50 to play bingo, slots and more!*
Over 50 tracks to make you feel-good. New album out now...
Find your local four day weather report here.
Find out more about some of the companies advertising on Heart Scotland- East.