Is Diclegis safe to use??

Puja
Ok so I have been having nauseating and vomiting like crazy for the past 3 weeks. Basically I am throwing up after eating anything. Finally I went to see my doctor today and she did a dehydration test. The test was ok and I wasn't dehydrated but she told me that I was losing weight and needed to eat more. She prescribed me Diclegis 4 times a day. I know this medicine was taken off the market due to several law suits for the past 30 years but recently was approved by FDA as class "A" drug. Just want to ask fellow moms if it's safe to take or not.