Fix date casting issue in the patient_pregnant_ma table.