The young patient was “successfully operated on after 525 days of hospitalisation”, the Regina Margherita Hospital in the northwestern city of Turin said.

The hospitalisation period was “a real record with a happy ending”, it said a statement.

The boy is well and was dismissed several days ago, the hospital added.

Originally from Morocco, he arrived in Italy – where his father had moved for work reasons – in the summer of 2019, after developing symptoms of heart failure.

His condition worsened quickly, leading to cardiac arrest.

He survived after doctors put him on a life support machine and implanted him with an artificial heart.

It then took a long time to perform a heart transplant due to the scarcity of organs for children.

During his stay, the boy learnt Italian, while his parents, who stayed with him throughout, had another son.

With ANSA