Differentiating between acute and chronic pain