fixed sql for painMedication
Merge pull request #120 from kmabey/LocalDev

fixed sql for painMedication