Gravar-mail: Metrics for Outpatient Portal Use Based on Log File Analysis: Algorithm Development