tablets on 5 months old baby?

Brought my baby to the er coz of severe vomiting and diarrhea..so the nurse gave here 1mg zofran but cut if into four and said put it under the tongue and she wil coming back after 10mins but the nurse came back after 20mins and my baby jusr throw it up, then my baby gave her the other half and the nurse smashed it and she put some vanilla pudding and i told the nurse that my baby is not on solid food yet but she said its okay..
My question is the tablet okay? Coz i asked the nurse if the doctor did not order syrup coz my baby is freaking 5 months old!