Is it legal to rent out a medical facility's home for a beauty store?

Not legal.

According to the relevant provisions of the "Regulations on the Administration of Medical Institutions", medical institutions will be contracted or rented out to non-medical personnel or other institutions and carry out diagnostic and therapeutic activities in the name of the medical institution, and shall be punished in accordance with the provisions of Article 46 of the Regulations.

The Regulations on the Administration of Medical Institutions are regulations designed to strengthen the management of medical institutions, promote the development of medical and health care, and protect the health of citizens.