Diagnosis, Identity, and the Algorithm