How does a guy even think…

How does a guy even think or decide this is ok? He was caught years later when the patient was being worked on by another doctor.