In cases where over-the-counter options are ineffective, a physician may prescribe medications such as ondansetron, which is commonly used to treat nausea and vomiting from various causes. Always follow the dosage and administration instructions provided by the healthcare provider.