Patient adherence and pain tracking