A 97-year-old man was told he would die within days via a robot that rolled into his intensive care unit during the night at a hospital in California.

Ernesto Quintana was given the terminal diagnosis by a doctor who appeared on a video screen on the robot after he was admitted to Kaiser Permanente Medical Centre in San Francisco on Sunday.

His family said they were “shocked” the news Mr Quintana would die from his chronic lung disease was communicated via the robot.

Mr Quintana’s daughter Catherine said: “If you’re coming to tell us normal news, that’s fine, but if you’re coming to tell us there’s no lung left and we want to put you on a morphine drip until you die, it should be done by a human being and not a machine.”

The grandfather died on Tuesday, two days after he was admitted to hospital.

Ageing Japan: Robots' role in future of elderly care Show all 15 1 /15 Ageing Japan: Robots' role in future of elderly care Ageing Japan: Robots' role in future of elderly care Residents follow moves made by humanoid robot 'Pepper' during an afternoon exercise routine at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care Funabashi Hiroshi from A Fun, repairs broken'AIBO's, pet dog robots, at his office in Kasama. Reuters Ageing Japan: Robots' role in future of elderly care A caretaker wearing a 'HAL for care support' robot suit pushes a wheelchair at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care Residents follow moves made by humanoid robot 'Pepper' during an afternoon exercise routine at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care Yoichi Suzuki spends time with 'AIBO', a pet dog robot, which his father used for his rehabilitation at his house in Takahag.i Reuters Ageing Japan: Robots' role in future of elderly care A resident approaches humanoid robot 'Pepper' to pat its head during an afternoon exercise routine at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care A caretaker, wearing walking rehabilitation equipment 'Tree', helps a resident with his walking training at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care Yoichi Suzuki shows 'AIBO', a pet dog robot, to his bed-ridden mother at his house. Reuters Ageing Japan: Robots' role in future of elderly care A broken'AIBO', a pet dog robot, waits for repair in A Fun's office in Kasama, Ibaraki Prefecture, Japan. Reuters Ageing Japan: Robots' role in future of elderly care A resident touches 'AIBO', a pet dog robot, at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care A resident touches robot seal 'PARO' at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care Yoichi Suzuki and his wife take care of his bed-ridden mother as 'AIBO', a pet dog robot walks around at his house in Takahagi. Reuters Ageing Japan: Robots' role in future of elderly care A caretaker wearing a motion assist equipment 'Muscle Suit' carries a resident from a bed to a wheelchair at Shin-tomi nursing home in Tokyo. Reuters Ageing Japan: Robots' role in future of elderly care 'AIBO', a pet dog robot, which Yoichi Suzuki's father used for his rehabilitation, is seen at Suzuki's house in Takahagi. Reuters Ageing Japan: Robots' role in future of elderly care A resident claps to call 'AIBO', a pet dog robot at Shin-tomi nursing home in Tokyo. Reuters

Michelle Gaskill-Hames, senior vice president of the Kaiser Permanente medical centre in Fremont, described the situation as “highly unusual” and said officials “regret falling short” of the patient’s expectations.

However, the hospital also defended the use of “tele-visits” and said its policy is to have a nurse or doctor in the room at the time of remote consultations.

Ms Gaskill-Hames added: “The evening video tele-visit was a follow-up to earlier physician visits.”

“It did not replace previous conversations with patient and family members and was not used in the delivery of the initial diagnosis.”

Steve Pantilat, chief of the palliative medicine division at University of California, said that robot technology has “done wonders for patients and their families, some of whom are too far away for in-person visits”. He added he did not know the specific details of Mr Quintana’s case.

Annalisia Wilharm, Mr Quintana’s granddaughter, said she was alone with him when a nurse came into the ward to tell them a doctor would be making his rounds.

It was then the robot rolled into the room and a doctor appeared on the video screen, she said.

Ms Wilharm said she was “astonished” by what the doctor started saying.

“This guy cannot breathe, and he’s got this robot trying to talk to him,” she said.

Support free-thinking journalism and attend Independent events

“Meanwhile, this guy is telling him, ‘So we’ve got your results back, and there’s no lung left. There’s no lung to work with.”

Ms Wilharm added that she had to repeat what the doctor on the screen was saying to her grandfather who has hearing problems in one ear.

She said that the robot could not get round to the other side of the bed where Mr Quintana could hear more clearly.

The use of telepresence robots that interact with people via screens is becoming more popular in hospitals around the world.

The Japanese government even supports introducing these type of robots in care homes to address the country’s ageing population problem.