Pope Francis is "not out of danger" but his condition is not life-threatening, a doctor treating him has said.