Section 24(1)

24. Medical examination and detention of leprosy patients and
lunatics. (1) Where it appears to the State Government that any beggar
detained in a certified institution under any order of a court is of
unsound mind or suffers from any communicable diseases like leprosy,
tuberculosis, venereal disease etc. the State Government may, by an
order setting forth the grounds of belief that the beggar is of unsound
mind or suffers from leprosy, tuberculosis, venereal disease, etc., order
his removal to a Mental Hospital or a Leper Asylum or other place of
safe custody there to be kept and treated as the State Government
directs during the remainder of the term for which he has been ordered
to be detained or if, on the expiration of that term it is necessary for the
safety of the beggar or of others that he should be further detained
under medical care or treatment, then until he is discharged according
to law.