The baby can leave the hospital when the pediatrician signs the release, typically 24-48 hours post birth.