We made these changes as a result of rejects from the clearing house. The Off and Return to work dates and the hospitalization dates need to be empty (instead of 00000000) when they are reals dates.
I’ll check your code, the code submitted was written by one of my support team, he’s just starting to learn programming, pretty good for a first try. If others think this is needed we’ll do it for real.
-Tony
Looks good,
I’ll tinker today and test with real billing tomorrow.
Remember, unless the facility is (I think) 21 or 22, there should be no 837 segment for the hospitalization date ( the segment should not be sent AT ALL), and normally no onset date, they can never be the same date in 5010. This needs to be fixed in form_encounter. Too many times, folks put in an onset date because they have a blank spot. Some carriers don’t care, and others will trash your claims as being a HIPPA violation (not sure why they think of it that way). Magellan is one that will trash your claims…the whole batch. Medicaid (in Florida) doesn’t seem to care.
Remember, unless the facility is (I think) 21 or 22, there should be no 837 segment for the hospitalization date ( the segment should not be sent AT ALL), and normally no onset date, they can never be the same date in 5010. This needs to be fixed in form_encounter.
We can also fix this in x12_gen… The program knows when it’s generating the x12 what type of facility has been set. So it has all the information it needs to know to skip inappropriate segments it encounters. The more error checking we can do for the user the better as long as it doesn’t become intrusive.
Availity is saying to skip the date segments completely if the date is blank regardless of POS. Does that jive with your specs Art?
Yep.
All this is pretty well covered on the OEMR forum of 837.
Agree toe-tale-lee.
Just working off of POS 21 isn’t good enough of course. We need some sort of check against all three of the above dates. Our method of gathering data in form_encounter should be less cryptic as well. We can go over the standard for this more carefully.
Tony,
Note though that while the x12 segment it refers to is hospitalization date in your code segment, it is actually using the onset date from the encounter and not the billing option dates.
That’s what it looks like to me also. It really isn’t right.
Anything that is applicable for hcfa as well as 837 should be configured in
the encounter form (if any of it is). If I were consulted, I would also say
it should be labled to reflect that it is billing information (and even the
hcfa box), AND it should display the value that will actually be sent (such
as location code), AND you should be able to VIEW the fee sheet data for the
encounter on form_encounter without going to the fee sheet edit screen if
you are an admin type, or the fee sheet should display the POS etc… that
will be billed, AND the hcfa options should be accessible right through the
same billing sheet. We should integrate everything somehow.
8cd93fa Add date format cleaner for x12 5010 - tmccormi Wrapping onset date - yehster
M library/Claim.class.php
M library/gen_x12_837.inc.php
One function cleans Zero dates making sure they are returned as empty strings, a second allows for validation of “emptyness” (sounds zen-like)
Loops that would be produced with empty onset/hospitalization dates are skipped entirely now. Only dates that were already implemented have been touched. Dates that will be implemented in the future can use the same cleaner function and logic.
Additional change requested:
Currently, BHT03 is hard-coded as ‘0123’ in gen_x12_837.inc.php. Some of the ISA, GS, ST etc. values are changed in the billing_process.php script and I suggest that someone add something like:
if (elems == ‘BHT’) {
$bat_stcount . ‘-’ . $bat_icn // change for BHT03
}
in billing_process.php around line 82 (after the ST adjustments)
e.g. BHT*0019*00*0003-021162972*CCYYMMDD*HHMM*CH~
for claim 3 with batch control # 021162972 (ISA13)
from the CMS 4010 to 5010 spreadsheet: “BHT03 Originator Application Transaction ID AN 1-50 R”
So it appears there are up to 50 characters allowed.
I am learning that the 277 response files refer to BHT03 as our ID number and ‘0123’ does not help.
With my suggestion, we have a unique claim ID and I think we can find the batch file and the included claim without too much difficulty.