Case based pain treatment