How do medical students, like me deal, with a private part examination of the opposite sex or same-sex sometimes?
"And those members of the body which we think to be less honorable, on these we bestow greater honor; and our unpresentable parts have greater modesty, but our presentable parts have no need" (I Corinthians 12:23-24).
Those in medicine have to recognize that nakedness and the exposure of private areas are embarrassing to the person. Extra effort should be made to minimize the exposure. Prior to an examination, the patient should be told what is about to be done, why, and what they might expect. This gives them a chance to mentally prepare.
In addition, another staff member in the room should be in the room when the person examining and the person being examined are of different genders. This provides protection for the examiner that there won't be later claims of improper behavior. Plus knowing that there is an observer minimizes any temptation. The presence of an observer is required in most state regulations in the United States, and I assume it is generally true in other countries as well.