Immigration Act Article 38-1

An alien who falls under any of the following circumstances may be suspended his/her temporary detention:1. Is mentally impaired or physically sick, and the detention could affect treatment or endanger his/her life2. Has been pregnant for five (5) months or longer, or has given birth or had a miscarriage for less than two (2) months3. Children under twelve (12) years old;4. Has contracted an infectious disease indicated in Article 3 of the Communicable Disease Control Act5. Is unable to take care of himself/herself due to senility or physical or mental disability6. Has been prohibited from exiting the State at the request of judicial authoritiesAfter the National Immigration Agency suspends temporary detention pursuant to the preceding Paragraph or terminates temporary detention order or ceases detention pursuant to Paragraph 1 or 2 of Article 38-7, it may impose alternative sanctions to detention order pursuant to Paragraph 2 of the preceding Article as well as notify registered social welfare institutions to provide social welfare, medical resources and shelter.
中文原文 入出國及移民法第38-1條
外國人有下列情形之一者,得不暫予收容:
一、精神障礙或罹患疾病,因收容將影響其治療或有危害生命之虞。
二、懷胎五個月以上或生產、流產未滿二個月。
三、未滿十二歲之兒童。
四、罹患傳染病防治法第三條所定傳染病。
五、衰老或身心障礙致不能自理生活。
六、經司法機關或其他機關通知限制出國。
移民署經依前項規定不暫予收容,或依第三十八條之七第一項或第二項廢止暫予收容處分或停止收容後,得依前條第二項規定為收容替代處分,並得通報相關立案社福機構提供社會福利、醫療資源以及處所。

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