From the medical article:
Punishing or humiliating a child with encopresis will only make matters worse.
The damned teachers and administrators should already this, so heads should roll.
Somebody with a pant load is dropping it in the gym. Most likely they are spreading it everywhere they go, everywhere they sit, everything they touch.
That's a serious health problem for the school, & likely a serious problem for the “pooper”, who has difficulty with self control - possibly a physical problem, & who will suffer greatly from his peers if this problem is not solved.
I have no problem with the school health person, along with another person of appropriate sex & responsibility, to privately inspect every child in that school. If the health department needs to do this inspection, then so be it.
When you have a disease spreading situation in a public school, then checking/testing of the kids is appropriate.
As a parent, which is more important to you: The slight chance that a pedophile might briefly see your child's privates, or your kids come home very sick requiring medical attention? E coli & other fecal borne diseases can kill you & your kids, a little uncomfortable embarrassment cannot.
Regarding the possible embarrassment to the child, we have all been there. I remember as a child how shy I was having to disrobe in front of others. It is something we all have to get over given that we will suffer this minor indignity many times in our life. If we live long enough we will likely suffer the indignity of having someone else bathe us & change our diaper until we die. Get used to it.
TSR has special expertise in child abuse.