Right now Ethereum smart contracts don't have access to real world data from outside the Ethereum virtual machine. This is why most contracts are financial in nature.
There are projects attempting to fix that but so far nothing has materialized yet.
I believe Civic is working on a sort of identity verification blockchain integration but I haven't heard much come out of the space as of yet. In fact, I think it might dissuade people who don't want their identity linked to their crypto transactions.
There are projects attempting to fix that but so far nothing has materialized yet.