A writer's false medical history was the basis of a 2019 episode of the long-running medical drama