The High Court has released an 18-year-old girl with psychological problems after it was alleged a judge had refused to grant her bail, to protect her from herself.
The teenager is accused of breaching the peace and of assaulting a care worker in a HSE children's facility in the North East where she resided until last week.
The High Court heard the teenager in court last Thursday and was refused bail by the District Court judge who was told she was abusive, expressed suicidal intentions and allegedly tried to jump out of the squad car during her arrest.
She was described today as having a troubled history and her lawyers claimed her detention at the Dochas Centre in Mountjoy was inappropriate for an 18-year-old with psychological needs.
They also argued the district court judge unlawfully refused bail out of a desire to protect her from herself.
The case has now been resolved after hours of negotiations involving the HSE who have lined up accommodation, three social workers and hope to carry out a psychiatric assessment on the teenager.
Mr Justice Barry White heard she was willing to co-operate and agreed to order her release from detention.