Yeah and there are different risk calculations for different mental illnesses, symptoms & levels of severity. But it's fairly common for postpartum women to experience intrusive thoughts about hurting their kids, and the vast majority won't follow through and will be okay with outpatient treatment.

ex-Lethality Jane

This Scrubs scene from 20 freaking years ago talks about how the characters with postpartum depression had intrusive thoughts about wanting to throw their babies out the window when they wouldn't stop crying.