When Bryant Lin, who teaches medicine at Stanford University, was given a terminal diagnosis, he wanted his students to understand the humanity at the core of medicine.