A few months ago, our healthcare clinics began using the SFTP Submission that @ken created to automatically submit our claims to Trizetto after they were generated and everything was working perfectly well (thanks again Ken, for helping me gain an understanding of how to set that feature up). A few weeks ago though, a large majority of the claims that were created, failed to send, all listing the same error:
Could not open local claim file: /var/www/localhost/htdocs/openemr/sites/default/documents/edi/[Date and such here]-batch.txt
I have checked multiple sources in the codebase to see if there may have been an error when changing any fields (there weren’t) and I tried changing where the local directory was a few times to see if anything changed (none). So I am a bit perplexed on the next step, as it isn’t entirely not working as some claims are still being sent and previously all were being sent. So I wonder if anyone has any thoughts or if anyone else that is using this feature ran into this issue and was able to resolve it. Any help would be appreciated.
The main thought I have been having is that the issue scales to the point of the file: X12RemoteTracker.php. On lines 72 - 83, it is searching for the claim file locally first, and if it can’t find it there, it looked in the
$GLOBALS['OE_SITE_DIR'] . "/documents/edi/" I think it is possible that it is unable to find the local directory for the SFTP files all of a sudden (SFTP Local Directory file in the second image), and is going through an alternative file path due to apache, though I am unable to find this file path and I can’t explain why the claims stopped being stored locally then.
The company is using the Standard OpenEMR setup from AWS.
Image of the Claim File Tracker with Errors:
Image of X12 Partner’s current file path, this was the original that was working initially.