The Princess of Wales thanked the public and medical staff for their support.