Hide dashboard card 2 (#7423)
[openemr.git] / library / billing_sftp_service.php
blobc051fb7eb6f83ecf8c3b27463e5f4e9808b403b2
1 <?php
3 /**
4 * Executes the background service for billing, which sends EDI claims
5 * directly to the x-12 partner (if enabled)
7 * @package OpenEMR
8 * @link http://www.open-emr.org
9 * @author Ken Chapple <ken@mi-squared.com>
10 * @copyright Copyright (c) 2021 Ken Chapple <ken@mi-squared.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 use OpenEMR\Billing\BillingProcessor\X12RemoteTracker;
16 /**
17 * This function is called by background services,
18 * reads the x12_remote_tracker table and sends
19 * files to x12 partners that are in the 'waiting'
20 * status.
22 function start_X12_SFTP()
24 if ($GLOBALS['auto_sftp_claims_to_x12_partner']) {
25 X12RemoteTracker::sftpSendWaitingFiles();