Added constraint for parent_id field in diagnosis_group table.