Implement JSON registerPregnancies.