There are approved medicines based on marijuana compounds, which include:
Dronabinol: Contains THC and is FDA-approved to treat nausea, vomiting from cancer chemotherapy, and weight loss in AIDS patients.
Nabilone: A synthetic cannabinoid similar to THC used for therapy-induced nausea and vomiting when other treatments fail.
Nabiximols: A mouth spray with THC and CBD, available in Canada and parts of Europe for cancer pain, MS-related muscle spasms, and pain.