Fixed error in Diagnosis element on trying to get patient_id