Spending on hospitals, physicians, and prescriptions has grown at varying rates