// This constructs a list of the names of those fields. $mflist = ""; $mfres = sqlStatement("SELECT * FROM layout_options " . "WHERE form_id = 'DEM' AND uor > 0 AND field_id != '' AND " . "edit_options LIKE '%D%' " . "ORDER BY group_name, seq"); while ($mfrow = sqlFetchArray($mfres)) { $field_id = $mfrow['field_id']; if (strpos($field_id, 'em_') === 0) { continue; } if (!empty($mflist)) { $mflist .= ","; } $mflist .= "'" . htmlentities($field_id) . "'"; } ?> <?php if ($GLOBALS['full_new_patient_form'] == '4' && checkIfPatientValidationHookIsActive()) { ?> // Use zend module patient validation hook to open the controller and send the dup-checker fields. var url ='<?php echo $GLOBALS['web_root'] . "/interface/modules/zend_modules/public/patientvalidation"; ?> '; <?php } else { ?> // Build and invoke the URL to create the dup-checker dialog. var url = 'new_search_popup.php'; <?php } ?>
var skipArray = [ <?php echo $condition_str; ?> ]; checkSkipConditions(); $("input").change(function() { checkSkipConditions(); }); $("select").change(function() { checkSkipConditions(); }); //This code deals with demographics before save action - <?php if ($GLOBALS['gbl_edit_patient_form'] == '1' && checkIfPatientValidationHookIsActive()) { ?> //Use the Zend patient validation hook. //TODO - get the edit part of patient validation hook to work smoothly and then // remove the closeBeforeOpening=1 in the url below. var f = $("form"); // Use hook to open the controller and get the new patient validation . // when no params are sent this window will be closed from the zend controller. var url ='<?php echo $GLOBALS['web_root'] . "/interface/modules/zend_modules/public/patientvalidation"; ?> '; $("#submit_btn").attr("type","button");