If hyperemesis gravidarum is suspected, urine ketones, thyroid-stimulating hormone, serum electrolytes, blood urea nitrogen (BUN), creatinine, aspartate aminotransferase (AST), alanine aminotransferase (ALT), magnesium, and phosphorus are measured.