law: 27. Admission and detention of mentally ill prisoner.-
  An order under section 30 of the Prisoners Act, 1900 (3 of 1900), or under section 144 of the Air Force Act, 1950 (45 of 1950), or under section 145 of the Army Act, 1950 (46 of 1950), or under section 143 or section 144 of the Navy Act, 1957 (62 of 1957), or under section 330 or section 335 of the Code of Criminal Procedure, 1973 (2 of 1974), directing the reception of a mentally ill prisoner into any psychiatric hospital or psychiatric nursing home, shall be sufficient authority for the admission of such person in such hospital or, as the case may be, such nursing home or any other psychiatric hospital or psychiatric nursing home to which such person may be lawfully transferred for detention therein.