Our Lady's Children's Hospital in Crumlin has apologised for the shortcomings in care that caused the death of a baby boy.
Eoin Julian was nine months old when he died after being admitted to the emergency department of the Dublin hospital in significant respiratory distress.
His parents, Áine and Seán Julian, from Ballylinan, Co Laois, took a case against the hospital for personal injuries.
Eoin was born in March 2015 with a congenital heart defect but the court heard he was doing very well until he developed a lower respiratory tract infection in December 2015.
He was taken to the emergency department on the morning of 29 December but died the following day.
Today a letter to the couple from the chief executive of the hospital was read out in court.
In it Helen Shortt said: "The hospital unreservedly extends its heartfelt and sincere apology for the shortcomings in the care which caused the death of your baby son Eoin and for the distress and suffering this has caused to you both and your family."
The couple sued the hospital for negligence and breach of care and settled their action today for an undisclosed sum.
In her statement of claim, Áine Julian said she suffered sudden, severe and profound nervous shock, upset and mental distress from the shocking and traumatic circumstances surrounding the unexpected death of her son.
She said they had lived a normal life, going on holidays and there had only been two hospital admissions since his birth.
She continues to suffer flashbacks to when he was in the intensive care unit and can still see her son's "sad eyes".
She recalled as harrowing the memory of his cries getting weaker and weaker as he was deteriorating while in hospital.
She said her son looked so frightened and would not take his eyes off her.
After Eoin's death they took him home for two nights, each night putting him between them in bed.
Mrs Julian said she was initially unable to put him in the coffin and then unable to see him in it.
She said she did not stop crying for four months after his death and her mother-in-law had to look after her other children.
In his statement, Seán Julian said he has frequent panic attacks and feelings of exhaustion.
He added that he feels their son's death could have been avoided if the medical staff had listened to him and his wife.