Cofnod E-bost: Measuring inpatient and outpatient costs: A cost-function approach