From: Rod Roark Date: Tue, 12 Mar 2013 03:38:08 +0000 (-0700) Subject: Moved diagnoses from orders to individual procedures. X-Git-Tag: whats-been-changed~377 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/f85b01d6b539bf191f7a2236ad2173419db492e6 Moved diagnoses from orders to individual procedures. --- diff --git a/interface/forms/procedure_order/new.php b/interface/forms/procedure_order/new.php index f2b2b3014..3b2d25c8f 100644 --- a/interface/forms/procedure_order/new.php +++ b/interface/forms/procedure_order/new.php @@ -75,7 +75,6 @@ if ($_POST['bn_save'] || $_POST['bn_xmit']) { "date_collected = " . QuotedOrNull(formData('form_date_collected')) . ", " . "order_priority = '" . formData('form_order_priority') . "', " . "order_status = '" . formData('form_order_status') . "', " . - "diagnoses = '" . formData('form_diagnoses') . "', " . "patient_instructions = '" . formData('form_patient_instructions') . "', " . "patient_id = '" . $pid . "', " . "encounter_id = '" . $encounter . "'"; @@ -112,9 +111,10 @@ if ($_POST['bn_save'] || $_POST['bn_xmit']) { $poseq = sqlInsert("INSERT INTO procedure_order_code SET ". "procedure_order_id = ?, " . + "diagnoses = ?, " . "procedure_code = (SELECT procedure_code FROM procedure_type WHERE procedure_type_id = ?), " . "procedure_name = (SELECT name FROM procedure_type WHERE procedure_type_id = ?)", - array($formid, $ptid, $ptid)); + array($formid, strip_escape_custom($_POST['form_proc_type_diag'][$i]), $ptid, $ptid)); $qres = sqlStatement("SELECT " . "q.procedure_code, q.question_code, q.options, q.fldtype " . @@ -292,6 +292,12 @@ function addProcLine() { " title=''" + " style='width:100%;cursor:pointer;cursor:hand' readonly />" + " " + + "
: " + + "'" + + " onfocus='this.blur()'" + + " style='cursor:pointer;cursor:hand' readonly />" + "
"; sel_proc_type(i); return false; @@ -424,17 +430,6 @@ generate_form_field(array('data_type'=>1,'field_id'=>'order_status', - : - - ' onclick='sel_related(this.name)' - title='' - onfocus='this.blur()' - style='width:100%;cursor:pointer;cursor:hand' readonly /> - - - - :