From b7ca8b89324dee48d932c2c1682da931896e1c27 Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Thu, 1 Aug 2013 12:58:29 -0400 Subject: [PATCH] Problem management fix for Fee Sheet Justify Search and syntax error fix in code_set_search --- custom/code_types.inc.php | 2 +- interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom/code_types.inc.php b/custom/code_types.inc.php index f647b6753..2ba0f229a 100644 --- a/custom/code_types.inc.php +++ b/custom/code_types.inc.php @@ -431,7 +431,7 @@ function code_set_search($form_code_type,$search_term="",$count=false,$active=tr $common_columns=" codes.id, codes.code_type, codes.modifier, codes.units, codes.fee, " . "codes.superbill, codes.related_code, codes.taxrates, codes.cyp_factor, " . "codes.active, codes.reportable, codes.financial_reporting, "; - $columns .= $common_columns . "'" . add_escape_custom($form_code_type) . "' as code_type_name "; + $columns = $common_columns . "'" . add_escape_custom($form_code_type) . "' as code_type_name "; $active_query = ''; if ($active) { diff --git a/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js b/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js index 27a26f6da..19a2d332c 100644 --- a/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js +++ b/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js @@ -86,7 +86,8 @@ function choose_search_diag(data,event,parent) var new_justify=justify_entry({code: data.code, code_type:data.code_type, description:data.description, selected:true}); new_justify.source='search'; new_justify.source_idx=99999; - new_justify.create_problem(true); + new_justify.create_problem(data.allowed_to_create_problem_from_diagnosis); + new_justify.allowed_to_create_problem_from_diagnosis(data.allowed_to_create_problem_from_diagnosis); parent.diagnosis_options.push(new_justify); parent.added_keys[code_key]=new_justify; update_diagnosis_options(parent.diagnosis_options,new_justify); -- 2.11.4.GIT