How is cloudy amniotic fluid diagnosed?

The diagnosis of cloudy amniotic fluid can only be made after the water has broken, by direct visual observation of the amniotic fluid, but ultrasound cannot diagnose cloudy amniotic fluid, let alone intrauterine hypoxia.