This case is based on a "pearl" article in UpToDate.
A 25 year old previously healthy G1P0 at 30 weeks gestational age presents with uterine contractions. She was admitted to the hospital and started on terbutaline, a beta-2 agonist, for premature labor. The contractions stopped for 12 hours, but resumed 12 hours later, and she had a normal spontaneous vaginal delivery. The following day, the patient develops cough, dyspnea, and pink frothy sputum. She is transfered to the intensive care unit for mechanical ventilation. Her exam showed tachypnea, sinus tachycardia, no JVD, no murmurs, rubs, or gallops, and diffuse crackles. ABG is 7.50/ 30/60 on 40% FiO2. CXR is shown below.

Challenge: What is the diagnosis and the cause?
Image shown under Creative Commons Attribution-Share-Alike 3.0