Shanghai is trying to identify anyone who came into contact with a coronavirus patient who arrived in the city from Iran, the local government said on Thursday.