The District Court has directed that a care order be continued until June 2017 for the baby in the Miss Y case.
At an in camera hearing this afternoon, that lasted over three hours, strict restrictions were imposed on media coverage.
The two-and-a-half year care order was made to allow time to consider Miss Y's health.
Liberty was granted to renter the matter but no scheduled review has been set.
Tusla, the Child and Family Agency, applied for the care order to be for one year.
Caoimhe Haughey, solicitor for Miss Y, did not object to this.
The court heard there was an inability by Miss Y to give instructions to her legal team.
The Guardian ad Litem, representing the baby, had sought a care order up to the age of 18 years.
The judge said that Miss Y was carrying the burden of other proceedings which may relate to other sensitive issues.
Miss Y's legal team argued that this should have no bearing on today's proceedings.
Miss Y came to Ireland late last March.
She said she had been raped in her home country and discovered in April she was pregnant.
She later sought a termination of pregnancy under the Protection of Life During Pregnancy Act.
She was deemed to be suicidal by a medical panel and a termination of pregnancy was carried out by delivering the baby by Caesarean Section at around 26 weeks.
A HSE review of her care was set up and has still to produce a final report.
The review has been paused as Miss Y has been unable to engage with it.