Hi Chiara,
Yes, I know these medications. Over here they are called ibuprofen (e.g., Advil, Motrin) & Voltaren Emugel. Used in customary dosages & as directed, both are usually well tolerated. Provided that the meds cause no adverse effects, there is no apparent reason to suspect they should pose a threat to safe scuba. However, this has not been researched.
Of more concern is the issue of risks to safe scuba based on complaints of serious shoulder pain. If such pain distracts the diver, restricts range of motion, could impede the diagnosis of DCS or imposes other troubling features, then these must be carefully considered.
A week's adherence to this medication regimen without diving, especially when scuba on the intervening weekend is out of the question, doesn't seem an undue hardship. This would be the most conservative path.
Given that a diver's discomfort responded well to the treatment, they should be able to safely return to scuba provided that they are otherwise up to it.
This is educational only and does not constitute or imply a doctor-patient relationship. It is not medical advice to you or any other individual, and should not be construed as such. You should contact your physician after completing the prescribed course of treatment to get her opinion.
Best of luck.
DocVikingo