Gravar e-mail: Measuring inpatient and outpatient costs: A cost-function approach