Mental Health Act Article 46

If correctional authorities, rehabilitation disposition facilities, and other institutions or facilities intended for detention and reformation have a patient or a person suspected of having the condition specified in Subparagraph 1 of Paragraph 1 of Article 3, the said authorities, institutions, or facilities shall provide medical care or escort and assist them in seeking medical care and carry out the measures in a compulsory manner if necessary.In cases where there are persons specified in the preceding Paragraph staying in the social welfare institutions and other institutions or facilities that shelter or place people for long-term living and residence, the institutions or facilities shall assist them in accessing medical care.
中文原文 精神衛生法第46條
矯正機關、保安處分處所及其他以拘禁、感化為目的之機構或場所,其有病人或有第三條第一項第一款所定狀態之人,應由該機關、機構或場所提供醫療,或護送協助其就醫,必要時得強制為之。
社會福利機構及其他收容或安置民眾長期生活居住之機構或場所,有前項之人者,應由該機構或場所協助其就醫。

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