ERA files

gutiersa wrote on Tuesday, May 12, 2009:

Help!

I’m trying to troubleshoot ERA uploading.

This is the error message I get:

Warning: rename(/tmp/phpAd63rj,/usr/local/www/data/openemr/era/.edi) [function.rename]: Operation not permitted in /usr/local/www/data/openemr/interface/billing/sl_eob_search.php on line 525

If I try to upload the same file a second time I get:

Unknown or unexpected segment ID Warning: Set  was already uploaded but not yet processed.

Any help is truly appreciated!

thanks.

In case its useful, this is the first few lines of one of my era files:

ISA*00*          *00*          *01*123456789      *12*123456789      *123456*1735*U*00401*000001234*0*P*:~
GS*HP*123456789*111111111*20080520*1735*4583*X*004010X091A1~
ST*835*0429~

gutiersa wrote on Sunday, May 24, 2009:

Now its working, possible solution:

change the following line:

$segid = $seg[0];

to

$segid = trim($seg[0]);

on or about line 90.

Clarification:

  $delimiter1  should be the segment delimeter
  $delimiter2  should be the element delimeter
  $delimiter3  should be the subelement delimeter