Skip to content

Commit

Permalink
Procedure Order delete handled in procedure form
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaleela-visolve authored and bradymiller committed Aug 22, 2015
1 parent 6af4e74 commit 81e6bf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interface/orders/orders_results.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ function validate(f) {
if ($review_status == "received") continue;
}

$query_test=sqlFetchArray(sqlStatement("select deleted from forms where form_id=? and formdir='procedure_order'",array($order_id)));
// skip the procedure that has been deleted from the encounter form
if($query_test['deleted']==1) continue;

$selects = "pt2.procedure_type, pt2.procedure_code, pt2.units AS pt2_units, " .
"pt2.range AS pt2_range, pt2.procedure_type_id AS procedure_type_id, " .
"pt2.name AS name, pt2.description, pt2.seq AS seq, " .
Expand Down

0 comments on commit 81e6bf0

Please sign in to comment.