From b319cdd4465465cd1975465244f210547110e07f Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Thu, 5 Jan 2012 19:01:49 -0500 Subject: [PATCH] If onset and service date are the same, skip --- library/gen_x12_837.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/gen_x12_837.inc.php b/library/gen_x12_837.inc.php index 22a96822a..c01779b23 100644 --- a/library/gen_x12_837.inc.php +++ b/library/gen_x12_837.inc.php @@ -449,7 +449,7 @@ function gen_x12_837($pid, $encounter, &$log, $encounter_claim=false) { ($CMS_5010 ? "" : "*C") . "~\n"; - if ($claim->onsetDate()) { + if ($claim->onsetDate() && ($claim->onsetDate()!==$claim->serviceDate())) { ++$edicount; $out .= "DTP" . // Date of Onset "*431" . -- 2.11.4.GIT