From 25bd87e5a10646984b0e9928ebc114e47e8a0387 Mon Sep 17 00:00:00 2001 From: tony Date: Tue, 6 Dec 2011 21:42:55 -0800 Subject: [PATCH] support spaces and colons as modifier separators, as suggest by yehster --- interface/forms/fee_sheet/new.php | 2 +- library/Claim.class.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/forms/fee_sheet/new.php b/interface/forms/fee_sheet/new.php index 8851c255b..5b5509c2f 100644 --- a/interface/forms/fee_sheet/new.php +++ b/interface/forms/fee_sheet/new.php @@ -171,7 +171,7 @@ function echoLine($lino, $codetype, $code, $modifier, $ndc_info='', if ($codetype != 'COPAY' && ($code_types[$codetype]['mod'] || $modifier)) { echo " \n"; } else { echo "  \n"; diff --git a/library/Claim.class.php b/library/Claim.class.php index 9288ceb97..7491cb7da 100644 --- a/library/Claim.class.php +++ b/library/Claim.class.php @@ -916,13 +916,14 @@ class Claim { } 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)); } -- 2.11.4.GIT