Goals are set based on the specific needs and prognosis of the newborn. For example, in cases of respiratory distress syndrome, short-term goals may include stabilizing breathing and oxygen levels, while long-term goals might focus on improving lung function and preventing chronic lung disease.