Confused about authorizations/patient notes

tekknogenius wrote on Monday, March 27, 2006:

Using the lastest openemr.
Clicking authorizations doesn’t seem to do anything now, the authorizaion still shows up on the page. Also, the notes seem to remain. I’m assuming that the chart notes show all of the days notes?

I’ve read the thread on transactions and messaging, but still not clear on what should be happening in this section. I believe that before once an authorized user clicked to authorize an entry it went away. Is that not what should happen?

tekknogenius wrote on Monday, March 27, 2006:

Side note: Looking at the <openemr root>/interface/main/authorizations/authorizations.php it seems to authorize everyting (like it says) for a patient, but shouldn’t it be on a transaction basis, not everything. The way it’s coded it will authorize every billing/form/transaction/pnote item for that pid (whether it has already been authorized or not). What if more than one unauthorized person entered some data and the authorized user didn’t want to authorize all of the entries. What then? I’m sure I must be missing something along the way here.

I think it would be more effecient if (at the very minimum) these statements would only authorize what wasn’t already authorized (ie, adding where authorized != 1 to the update statements).

// This authorizes everything for the specified patient.
if (isset($_GET[“mode”]) && $_GET[“mode”] == “authorize” && $imauthorized) {
  $retVal = getProviderId($_SESSION[‘authUser’]);   
  newEvent(“view”, $_SESSION[“authUser”], $_SESSION[“authProvider”], $_GET[“pid”]);
  sqlStatement(“update billing set authorized=1, provider_id = '” .
    mysql_real_escape_string($retVal[0][‘id’]) .
    “’ where pid=’” . $_GET[“pid”] . “’”);
  sqlStatement(“update forms set authorized=1 where pid=’” . $_GET[“pid”] . “’”);
  sqlStatement(“update pnotes set authorized=1 where pid=’” . $_GET[“pid”] . “’”);
  sqlStatement(“update transactions set authorized=1 where pid=’” . $_GET[“pid”] . “’”);
}

tekknogenius wrote on Thursday, March 30, 2006:

I found a bug in the authorizations.php source. It lists the billing data even when there are no unauthorized billing entries. I’ll submit the fix in CVS once I figure out the issue with the Patient notes always showing up.