I've had medical students in the room when doctors do all kinds of checks. I somehow didn't have any reservations about that either.
Medical students are covered by rafts of privacy laws that will end their careers if violated.
The modern tech industry runs on privacy violation.
The two are not comparable.
Can't find it with a quick search, but the point of the essay was that making the notes by hand reinforced the essentials of each case in the doctor's mind, so they were there for the next appointment two weeks later.