Gravar-mail: Evaluation of hospital inpatient complications: a planning approach