law: Part II 
  Discharge
  40. Order of discharge by medical officer in charge.-
  (1) Notwithstanding anything contained in Chapter IV, the medical officer in charge of a psychiatric hospital or psychiatric nursing home may, on the recommendation of two medical practitioners one of whom shall preferably by a psychiatrist, by order in writing, direct the discharge of any person, other than a voluntary patient detained or undergoing treatment therein as an inpatient, and such person shall thereupon be discharged from the psychiatric hospital or psychiatric nursing home: Provided that no order under this sub-section shall be made in respect of a mentally ill prisoner otherwise than as provided in section 30 of the Prisoners Act, 1990 (3 of 1990) or in any other relevant law.
  (2) Where any order of discharge is made under sub-section (1) in respect of a person who has been detained or is undergoing treatment as inpatient in pursuance of an order of any authority, a copy of such order shall be immediately forwarded to that authority by the medical officer in charge.