Skip to content

Commit

Permalink
fix: bug in service facility logic (openemr#7228)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Feb 17, 2024
1 parent b4fdaef commit a14b20d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Billing/X125010837P.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,9 @@ public static function genX12837P(
}
// End of Loop 2310B

// Loop 2310C is omitted in the case of home visits (POS=12).
if ($claim->facilityPOS() != 12 && ($claim->facilityNPI() != $claim->billingFacilityNPI())) {
// Loop 2310C is omitted in the case of home visits (POS=12)
// and when the service facility is the billing facility
if ($claim->facilityPOS() != 12 && ($claim->billing_facility['id'] != $claim->facility['id'])) {
++$edicount;
$out .= "NM1" . // Loop 2310C Service Location
"*" . "77" .
Expand Down

0 comments on commit a14b20d

Please sign in to comment.