The superintendent of a hospital shall discharge any voluntary patient who has recovered or whose detention he determines to be no longer advisable.