Improving postpartum hemorrhage risk prediction using longitudinal electronic medical records