Patients in B.C. hospitals are having more complex medical needs, study finds