They usually ask what your pain level is from 1-10 or use the happy face sheet, and use a pain ladder in three steps to treat the pain accordingly. Use what the doctor prescribed to use, and if not working, tell them.
1. Pain..NSAIDS, ancetphotomine, antiinflmatory, non opioids...
2. Mild pain..weak opioids like Percocet, tramadol, codeine...
3. Moderate to severe pain...morphine, methadone, oxycodene, Fentynal....
Some meds in the ladders are cross used up the ladder, and other meds like antidepressants, antiseizure, tranquilizer may also be used. With strong opioids constipation is usually a side effect, so OTC meds are taken to help. There are break through pain meds too, like Fetynal lozenges. Also, there is not much concern with addiction with strong opioids when used for pain in the cancer setting, and doctors use a descending dosage to withdraw when stopping treatment. Sometimes they refer you to see a pain management doctor, and see mine next week.
Salted warm water, if it doesn't burn, with baking soda is a good general rinse, and magic mouthwash is a combination of meds like nyststin, lidocaine, and many other rinses.
Pain meds are to relieve pain, but do not treat the ulcers, which can be a bacterial, fungal or a viral infection, and each may need the appropriate medications to properly treat like antibiotics, anifungal or antiviral medications.
Hope this helps.