Can the medical insurance paid in Xiamen be accumulated when transferred back to Anxi's hometown?

Yes, you can. According to Article 3 of the Interim Measures for the Transfer and Continuation of the Basic Old-age Insurance for Employees in Urban Enterprises, if the insured person is employed across provinces, the social insurance agency where the original insured person is located (hereinafter referred to as the social insurance agency) will issue the insurance payment voucher, and the basic old-age insurance relationship will be transferred to the new insured place. If the insured reaches the conditions for receiving the basic old-age insurance benefits, the payment period of insurance premiums will be calculated together, and the amount of personal account storage (including principal and interest, the same below) will be calculated cumulatively; Before reaching the age of receiving treatment, the basic old-age insurance relationship shall not be terminated, and the procedures for surrender shall be handled; Settle abroad and settle in Hongkong, Macao and Taiwan Province Province, according to the relevant provisions of the state.