Identifying clinical diagnoses in treatment