Screening RDS can be anticipated prenatally using tests of fetal lung maturity, which are done on amniotic fluid obtained by amniocentesis or collected from the vagina (if membranes have ruptured) and which can help determine the optimal timing of delivery.