As OpenEMR is distributed, CMS 1500 forms and X12 will generate without a Justify, which means without the clinician’s “release” since that is a good way to allow rapid recording of process/service (CPT) and any associated ICD codes via the fee sheet, but prevent release until all documentation is completed. But we need to list them so we can see when they need the justify done. You can modify near line 704 in …/billing/billing_report.php to include '&& strlen($justify) > 2 ’ within the conditional test so that only encounters with justifications done will be billable. That should reduce returns & errors, by preventing the display of a checkbox unless the justify code is greater than two characters long.
The justify function can be performed in the fee sheet or in the receipt/invoice area.
I also modified the header label near line 201 to indicate need for selecting “Fit-To-Page” when printing 1500’s, as the pdf generated will not match the forms on many printers without doing so. If you have the ability, I suggest a dedicated printer, or at least create another printer and make its setup that, so you can easily select the proper settings every time.
An odd quirk was discovered which prevented properly justified claims from having their billable checkbox with the "no justify exclusion" in place if there was a copay from the Fee Sheet, simply because the spelling for COPAY lists it before CPT4. Silly as that is, my programming skills have been unable to find a workaround because both CPT4 and COPAY have logical tests elsewhere which make fixing it nightmarish. Therefore, best advice is to make certain to have the Justify prompt in use with the Encounters and Documents view (shown elsewhere in the OpenEMR forums)and advise users to enter copays in the Billing - EOB process or in Transactions - Billing (though that will not actually be reflected in the accounting). At worst with the addition of the code below inserted between the current if statement and the else statement near line 712 in …/billing/billing_report.php only those with copays from the fee sheet will potentially be billed before they have been justified, which is still better than the as-distributed situation: