Use of health system data to study morbidity related to pregnancy loss.