Skip to content

Commit

Permalink
support spaces and colons as modifier separators, as suggest by yehster
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 7, 2011
1 parent 76158cb commit 85f7d13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interface/forms/fee_sheet/new.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function echoLine($lino, $codetype, $code, $modifier, $ndc_info='',
if ($codetype != 'COPAY' && ($code_types[$codetype]['mod'] || $modifier)) {
echo " <td class='billcell'><input type='text' name='bill[$lino][mod]' " .
"value='$modifier' " .
"title='" . xl("Multiple modifiers are separated by colons, maximum of 4 (M1:M2:M3:M4)") . "' " .
"title='" . xl("Multiple modifiers can be separated by colons or spaces, maximum of 4 (M1:M2:M3:M4)") . "' " .
"value='$modifier' size='" . $code_types[$codetype]['mod'] . "'></td>\n";
} else {
echo " <td class='billcell'>&nbsp;</td>\n";
Expand Down
5 changes: 3 additions & 2 deletions library/Claim.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -916,13 +916,14 @@ function cptCode($prockey) {
}

function cptModifier($prockey) {
// Split on the colon and clean each modifier
// Split on the colon or space and clean each modifier
$mods = array();
$cln_mods = array();
$mods = split(':',trim($this->procs[$prockey]['modifier']));
$mods = preg_split("/[: ]/",trim($this->procs[$prockey]['modifier']));
foreach ($mods as $mod) {
array_push($cln_mods, x12clean($mod));
}
error_log(implode (':', $cln_mods)); //DEBUG
return (implode (':', $cln_mods));
}

Expand Down

0 comments on commit 85f7d13

Please sign in to comment.