How to add a constraint to a table using a partial index?
You can't define a unique (or primary key) constraint based on a partial index.

However, to enforce uniqueness of the lan column for all non-deleted rows, the partial unique index you already have is enough. 

There is no need to add a constraint.