If it is a foreign household registration, it must not be reimbursed. If you are registered in Shanghai, you have paid social security with maternity insurance before, and you have given birth to a baby in line with the family planning policy, you can still receive maternity insurance.