A generalized psychiatric information-processing system