Narcotics Hazard Prevention Act Article 21

Persons committing the offenses as stipulated in Article 10 may voluntarily request treatment from a medical institution designated by the Ministry of Health and Welfare prior to the conduct being discovered. The medical institution shall not report the offender seeking medical treatment to the court or an investigation agency.If the accused or a juvenile offender, undergoing treatment as described in the provisions of the preceding Article is discovered by the authorities, the prosecutor should issue a non-prosecution order, or the juvenile court (juvenile court of a district court) should enter a not-to-be-tried judgment. However, such action is applicable only once.
中文原文 毒品危害防制條例第21條
犯第十條之罪者,於犯罪未發覺前,自動向衛生福利部指定之醫療機構請求治療,醫療機構免將請求治療者送法院或檢察機關。
依前項規定治療中經查獲之被告或少年,應由檢察官為不起訴之處分或由少年法院(地方法院少年法庭)為不付審理之裁定。
但以一次為限。

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