function (doc) {
    // !code util/mvp.js
    if (isPregnancyVisitForm(doc)) {
        var indicators = get_indicators(doc),
            meta = doc.form.meta,
            case_id = get_case_id(doc);

        var visit_date = new Date(meta.timeEnd),
            indicator_emits = {};

        if (indicators.pregnancy_edd && indicators.pregnancy_edd.value) {
            var edd = indicators.pregnancy_edd.value,
                one_month_ms = 30*MS_IN_DAY,
                gestation_ms = 40*7*MS_IN_DAY;

            var edd_date = new Date(edd);
            var difference = edd_date.getTime() - visit_date.getTime();

            if (edd_date >= visit_date && difference <= 120*MS_IN_DAY) {
                indicator_emits["anc_visit_120"] = case_id;
                if (indicators.cur_num_anc) {
                    try {
                        var cur_anc = (indicators.cur_num_anc.value) ? parseInt(indicators) : 0;
                        if (cur_anc === 0) {
                            indicator_emits["no_anc"] = case_id;
                        }
                    } catch (e) {
                        if (indicators.cur_num_anc.value === "" || indicators.cur_num_anc.value === "no") {
                            // handle sauri case
                            indicator_emits["no_anc"] = case_id;
                        }
                    }
                }
            }

            if (edd_date >= visit_date && difference <= one_month_ms && indicators.cur_num_anc) {
                // EDD is happening within one month of this form's visit date.
                indicator_emits["visit"] = case_id;
                var cur_num_anc = (indicators.cur_num_anc.value) ? parseInt(indicators.cur_num_anc.value) : 0;
                if (cur_num_anc > 3) {
                    indicator_emits["anc4"] = case_id;
                }
            }
        }

        emit_special(doc, visit_date, indicator_emits, []);
    }
}

@@ -670,17 +670,17 @@
 nce %3C= 1
-2
+5
 0*MS_IN_

change age for 'Proportion of Pregnant women reporting no Antenatal Care visit by 4 months of gestation this time period' to 150 from 120