Development and validation of claims-based algorithms for estimating gestational age of spontaneous abortion and termination | Synapse