In France in the last 60's or 70's, there was still mandatory physical examinations for each student and every year of university or great school.
it was performed generally by a female doctor assisted by one female nurse and sometimes a female nursing student or a medical secretary in a medical center designed by the university or an hospital or for a great school more generally at the medical office inside the locations of the school.
You were summoned in group of male students but examined one by one at university, and on the reverse of great schools generally ( there could be exceptions of course) you had not to undress in group to wait your turn to be examined but you could not skip the examinations, it was necessary to be present and checked to be allowed to follow your studies and obtain your graduation, it was always checked at the end of the year.
Normally you were examined in briefs, but it was a rather thorough examination especially at great schools like at middle or high school, and you had to remove or pull down your brief for at least the last part of examination, depending on female doctors if you might strip completely immediaty, even for questions, weigh-in and eyes test for instance, or only after and for a short time, and if she left you dress again at the end of her examination before talking to you or left you stayed undressed, sitting on a chair in just briefs or even stark naked before talking to you and signing the medical form after filling it .
Anyway you had always a genitals examination, a hernia test and more seldom but it occured to me a visual examination of anus area and a long inspection of the spine ( for me it was important for the doctors because I had a small lordosis, so I might walk forwards and back in the nude in the room, bend over and touch my ankles at a short distance and then again just back close to the doctor and the nurse, with a long exposure of my naked butts while her fingers were running or sliding down my back until the cleft of my butts..)
At great school, you were summoned for a complete physical examination for the entrance, it was part of the admission process, and it was more thorough than at university.
When the Pe and swimming lessons were mandatory during the year study like it was at some great schools to be graduated , you might also come to the medical office for a physical examination for sport, which could be very embarrassing.
In my case, we were summoned by group of 15 or 20 boy's students of over 18 to 21 age, instructed by a Pe teacher to undress in a small locker room in briefs only ( no socks nor watches allowed ) and then to wait our turn to be called inside by the Pe teacher.
Inside it was a little like at the french draft board commission because thre was three Pe teachers, a doctor and a nurse, and you might come first in front of the three Pe teacherrs sitting behind a table desk, then after a short visual look by them frontally and back and the two sides, you were instructed to go to the scale near the doctor, to remove your brief and put it on a stool and you were weighted and the nurse took also your chest size and hips size and from that while you were examined stark naked by the doctor who listened to your heart and lungs frontally and by back especially and checked your reflexes and did a quick examination of genitals and asked a lot of questions about your health, and then to come back in your birthdaysuit in front of the three Pe teachers to answer to their questions about your practice of sport, to do some exercices like lift up one leg after an other, to squat several times, and to bend over and touch your feet before doing it again but with your legs and feet spread apart ( I did not know why because they did not give me an explanation with the instruction, I presume that they wanted to have a better view on my crack ,? just for the fun or it was a kind of humiliated exam to make me know that they had the power on male students ? or they had a good reason may be because of my small lordosis which required such a view ,? anyway they had rather rude manners and were acting with us like tough guys as did most of the non commissioners officers in the army, obviously they were middle aged men believing in "old school " manners with students ) and to walk some steps on the left and on the right and bend over again .. it was supposed to let them and the doctor check your gait and your spine ( as I have said already I had a small lordosis)
Eventually they had declared me fit for sport and I was classified in a group with all male students of similar muscular body for the future Pe lessons.
I had this rather humiliating sport examination only the first year.