Most employers, don't typically conduct MH screening nor pull medical records. With children, it's easier to return to work, simply stating that you were attending to your family.
To lose custody, typically, it's about bringing harm to children, not anxiety nor depression.