Skip to content

Commit

Permalink
Audit and ATNA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
visolve-selvi committed Mar 8, 2010
1 parent 1c102c3 commit eab2811
Show file tree
Hide file tree
Showing 19 changed files with 957 additions and 121 deletions.
2 changes: 1 addition & 1 deletion contrib/util/dupecheck/mergerecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
if ($commitchanges == true) addPnote($masterPID, $notetext);

// add a log entry regarding the merged data
if ($commitchanges == true) newEvent("data_merge", $_SESSION['authUser'], "Default", "Merged PID ".$otherPID." data into master PID ".$masterPID);
if ($commitchanges == true) newEvent("data_merge", $_SESSION['authUser'], "Default", 1, "Merged PID ".$otherPID." data into master PID ".$masterPID);
echo "<li>Added entry to log</li>";

echo "<br><br>";
Expand Down
31 changes: 31 additions & 0 deletions interface/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
$GLOBALS['mysql_bin_dir_linux'] = "/usr/bin";
$GLOBALS['perl_bin_dir_linux'] = "/usr/bin";
$GLOBALS['temporary_files_dir_linux'] = "/tmp";
// Event log backup directory
$GLOBALS['backup_log_dir']="/tmp";
//
// Print command for spooling to printers, used by statements.inc.php
// This is the command to be used for printing (without the filename).
Expand Down Expand Up @@ -634,4 +636,33 @@ function strterm($string,$length) {
// turn off PHP compatibility warnings
ini_set("session.bug_compat_warn","off");

///////////////////////// AUDIT LOGGING CONFIG ////////////////
//$GLOBALS["enable_auditlog"]=0 is to off the logging feature in openemr
//$GLOBALS["enable_auditlog"]=1 is to on the logging feature in openemr
//patient-record:- set 1 (0 to off) to log the patient related activites like creation of new patient, encounters, history//etc.
//scheduling:- set 1 (0 to off) to log the patient related scheduling like Appointments.
//query:- set 1 (0 to off) to log all SQL SELECT queries.
//order:- set 1 (0 to off) to log an orders like medical service or medical item (like a prescription).
//security-administration:- set 1 to (0 to off) to log events such as creating/updating users/facility etc.
//backup:- set 1 (0 to off) to log backup related activites.
$GLOBALS["enable_auditlog"]=1;
$GLOBALS["audit_events"]=array("patient-record"=>1,
"scheduling"=>1,
"query"=>0,
"order"=>1,
"security-administration"=>1,
"backup"=>1,
);

// Configure the settings below to enable Audit Trail and Node Authentication (ATNA).
// See RFC 3881, RFC 5424, RFC 5425 for details.
// atna_audit_host = The hostname of the audit repository machine
// atna_audit_port = Listening port of the RFC 5425 TLS syslog server
// atna_audit_localcert - Certificate to send to RFC 5425 TLS syslog server
// atna_audit_cacert - CA Certificate for verifying the RFC 5425 TLS syslog server
$GLOBALS['atna_audit_host'] = '';
$GLOBALS['atna_audit_port'] = 6514;
$GLOBALS['atna_audit_localcert'] = '';
$GLOBALS['atna_audit_cacert'] = '';
//////////////////////////////////////////////////////////////////
?>
Loading

0 comments on commit eab2811

Please sign in to comment.