law: 104. Persons in custodial institutions.-
  (1) If it appears to the person in-charge of a State run custodial institution (including beggars homes, orphanages, women's protection homes and children homes) that any resident of the institution has, or is likely to have, a mental illness, then, he shall take such resident of the institution to the nearest mental health establishment run or funded by the appropriate Government for assessment and treatment, as necessary.
  (2) The medical officer in-charge of a mental health establishment shall be responsible for assessment of the person with mental illness, and the treatment required by such persons shall be decided in accordance with the provisions of this Act.