Moving Charlie Gard to a hospice to die would be the best option for the terminally-ill baby, a court has heard.
The 11-month-old's parents had returned to the High Court to seek permission to take him home for "a few days of tranquillity outside the hospital".
But Great Ormond Street Hospital (GOSH) said there were practical problems with that proposal, for example his ventilation equipment would not be able to fit through their front door.
The judge will rule on Wednesday.
Media playback is unsupported on your device
Grant Armstrong, representing Chris Gard and Connie Yates, told Mr Justice Francis that his clients' "last wish is that Charlie dies at home".
He suggested a portable ventilator and oxygen supply could be used but accused GOSH of "putting up obstacles".
Lawyers for the hospital told the judge they "would like to be able to fulfil the parents' wishes...if it is safe and practicable and in Charlie's best interests".
However, Katie Gollop QC, who leads the hospital's legal team, said providing intensive care for Charlie away from a hospital was not simple.
Charlie's condition requires air to be forced into his lungs.She said as far as the hospital was aware invasive ventilation was only provided in a hospital setting.
Ms Gollop said Charlie would need to be "monitored by an ITU trained nurse at all times, with an ITU doctor on call and close at hand".
Such resources "cannot be provided by GOSH to Charlie at his parents' home", she said.Image copyright PA Image caption
Mr Justice Francis said:"If going home can be achieved within reason then I would like to achieve that for them."
But he said hospital bosses had suggested a "hospice option" instead that would give Charlie and his parents the space, privacy and protection they needed.
He said he would make a final decision, about whether Charlie can be taken home, at 14:00 BST on Wednesday.Image copyright PA
Charlie's parents, from Bedfont, west London, said they have been spending their "last precious moments" with their son.
Charlie has encephalomyopathic mitochondrial DNA depletion syndrome.He has brain damage and cannot move his arms or legs.
His parents had asked Mr Justice Francis to rule that their son should be allowed to undergo a trial of nucleoside therapy in New York, a move opposed by medics at GOSH who argued the treatment would be "futile".
The Family Division of the High Court heard on Monday that US neurologist Professor Michio Hirano was no longer willing to offer the experimental therapy after he had seen the results of a new MRI scan.Image copyright Featureworld Image caption
In a statement to the High Court, GOSH said it was "increasingly surprised and disappointed" Professor Michio Hirano "had not read Charlie's contemporaneous medical records or viewed Charlie's brain imaging or read all of the second opinions about Charlie's condition".
The hospital said Professor Hirano had not taken the opportunity to see Charlie until last week, despite being offered the chance to do so by the hospital in January.
Even though the professor gave written evidence at all the court cases, the hospital said it only emerged last week that he had not read the judge's ruling following the first High Court hearing in April.
The hospital added it was concerned to hear the professor state in the witness box at the High Court hearing on 13 July that he had a financial interest in some of the treatment he proposed prescribing for Charlie.
Timeline of legal battle...Image copyright PA
- 3 March 2017:Mr Justice Francis starts to analyse the case at a hearing in the Family Division of the High Court in London.
- 11 April:Mr Justice Francis says doctors can stop providing life-support treatment.
- 3 May:Charlie's parents ask Court of Appeal judges to consider the case.
- 23 May:Three Court of Appeal judges analyse the case.
- 25 May:Court of Appeal judges dismiss the couple's appeal.
- 8 June:Charlie's parents lose fight in the Supreme Court.
- 20 June:Judges in the European Court of Human Rights start to analyse the case after lawyers representing Charlie's parents make written submissions.
- 27 June:Judges in the European Court of Human Rights refuse to intervene.
- 3 July:The Pope and US President Donald Trump offer to intervene.
- 7 July:Great Ormond Street Hospital applies for a fresh hearing at the High Court.
- 24 July:Charlie's parents end their legal fight to take him to the US for treatment.