Skip to content

Commit

Permalink
fix: x12837 billing 5 or 9 digit zip check (openemr#7760)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Oct 10, 2024
1 parent 4852747 commit 8493cde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Billing/Claim.php
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ public function referrerFirstName()

public function referrerMiddleName()
{
return $this->x12Clean(trim($this->referrer['mname']));
return $this->x12Clean(trim($this->referrer['mname'] ?? ''));
}

public function referrerNPI()
Expand Down
4 changes: 2 additions & 2 deletions src/Billing/X125010837P.php
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ public static function genX12837P(
if (
!(
(strlen($claim->insuredZip($ins)) == 5)
|| (strlen($claim->insuredZip($ins) == 9))
|| (strlen($claim->insuredZip($ins)) == 9)
)
) {
$log .= "*** Other insco insured zip is not 5 or 9 digits.\n";
Expand Down Expand Up @@ -1285,7 +1285,7 @@ public static function genX12837P(
if (
!(
(strlen($claim->payerZip($ins)) == 5)
|| (strlen($claim->payerZip() == 9))
|| (strlen($claim->payerZip($ins)) == 9)
)
) {
$log .= "*** Other payer zip is not 5 or 9 digits.\n";
Expand Down
1 change: 1 addition & 0 deletions src/Services/FormService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function getFormByEncounter(

$res = sqlStatement($sql, $arraySqlBind);

$all = [];
for ($iter = 0; $row = sqlFetchArray($res); $iter++) {
$all[$iter] = $row;
}
Expand Down

0 comments on commit 8493cde

Please sign in to comment.