I know for fact there is a legal form of medical marijuana on pill called Marinol,I heard has some similar effects but is less stronger ,also is a control drug level 3 ,still prescription needed but legal In the USA,not sure if available in other countiries,I actually came to know one of the chemist professors who helped to create the compound form.
He added the marinol has similar effects but not 100% as the real cannabis,only bad side effect he found on the pill was weight gain,but did help with the insomnia,he is a rsd patient in remission!he still doesn't know how that happened !neither his drs.
Ask your physician about it,I'm sure your pain management dr know the effects the pros and cons.
Good luck to all from Jesika .

Ps,I did not tried ,I was a pharmacy tech,that's why I know for sure the drug exist,also,many patients that suffer of terminal cancer,leukemia or aids had it,I dispensed myself,that's why I came to know the use for the specific medication.