Under Medicare's Inpatient Prospective Payment System (IPPS), what is the primary basis for determining hospital reimbursement?