Child and Juvenile Welfare and Rights Protection Act Article 22

The competent authority shall, in conjunction with the household registration and immigration competent authorities, assist children and juveniles who have not registered their household, are stateless, or have not obtained residency or permanent residency permits to handle relevant household registration, naturalization, residency, or permanent residency matters in accordance with the law.Before the completion of household registration or before obtaining residency or permanent residency permits for the children and juveniles mentioned in the preceding paragraph, their social welfare services, medical care, and right to education shall be guaranteed in accordance with the law.
中文原文 兒童及少年福利與權益保障法第22條
主管機關應會同戶政、移民主管機關協助未辦理戶籍登記、無國籍或未取得居留、定居許可之兒童、少年依法辦理有關戶籍登記、歸化、居留或定居等相關事項。
前項兒童、少年於戶籍登記完成前或未取得居留、定居許可前,其社會福利服務、醫療照顧、就學權益等事項,應依法予以保障。

English translation for reference only; the Chinese text prevails. Not legal advice.