Parents of ‘miracle’ baby say ‘thanks’ to hospital