updated pregnancy registration filter and tests with errors property.
fixed bug so mother_patient_id appears in outgoing messages.