Serum glucose, sodium, calcium, magnesium, and phosphorus and liver and kidney function tests are done to rule out metabolic disorders especially if the history includes recent vomiting, diarrhea, or impaired fluid intake; if there are signs of dehydration or edema; or if a complex febrile seizure occurs.