A digital health company with an app for monitoring maternal health is receiving nearly $1 million to add an algorithm for detecting a dangerous pregnancy complication.