Referral to a specialist is warranted when a GP identifies a condition that requires advanced care or specialized knowledge. Conditions like congenital heart defects, severe prematurity, or complex metabolic disorders often necessitate involvement from pediatric specialists or neonatologists.