forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: minor refactor x12 insurance eligibility api (openemr#6915)
* feat: minor refactor x12 insurance eligibility api * bump db version * typo
- Loading branch information
1 parent
65b18f2
commit 90bee3b
Showing
11 changed files
with
150 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* @copyright Copyright (c) 2016 Terry Hill <[email protected]> | ||
* @copyright Copyright (c) 2017 Brady Miller <[email protected]> | ||
* @copyright Copyright (c) 2019 Jerry Padgett <[email protected]> | ||
* @copyright Copyright (c) 2019 Stephen Waite <[email protected]> | ||
* @copyright Copyright (c) 2019-2023 Stephen Waite <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
|
@@ -159,7 +159,7 @@ public static function createNM1($row, $nm1Cast, $X12info, $segTer, $compEleSep) | |
$NM1[6] = ""; // Data Element not required. | ||
$NM1[7] = ""; // Data Element not required. | ||
$NM1[8] = "PI"; // 5010 no longer uses "46" | ||
if ($GLOBALS['enable_oa']) { | ||
if ($GLOBALS['enable_eligibility_requests']) { | ||
$payerId = $row['eligibility_id']; | ||
} else { | ||
$payerId = $row['cms_id']; | ||
|
@@ -849,7 +849,7 @@ public static function requestEligibility($partner = '', $x12_270 = '') | |
$response = oeHttp::bodyFormat('body') | ||
//->setDebug('5000')/* @todo uncomment and set proxy port to debug eg Fiddler */ | ||
->usingHeaders($headers) | ||
->post('https://wsd.officeally.com/TransactionSite/rtx.aspx', $mime_body); // @TODO put request urls in x12 partner's for versatility. | ||
->post($X12info['x12_eligibility_endpoint'], $mime_body); | ||
|
||
$formBody = $response->body(); | ||
$contentType = $response->header('Content-Type')[0]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters