forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patient Summary Screen Modifications:
1) Created mechanism (using ajax and specific user entries in the users table) to make the expand/collapse selections in the patient summary persistent (even when logout/login) for each user. 2) Clarified buttons (edit buttons for each entry) 3) Migrated prescription link (removed rx from top and put with the Presciption entry on right) 4) Removed modul from the document link (the modul for this specific screen is currently not useful)
- Loading branch information
bradymiller
committed
Aug 5, 2010
1 parent
5f1866c
commit dcff0e1
Showing
6 changed files
with
212 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
// Copyright (C) 2010 Brady Miller <[email protected]> | ||
// | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License | ||
// as published by the Free Software Foundation; either version 2 | ||
// of the License, or (at your option) any later version. | ||
// | ||
// | ||
// This file contains functions that manage custom user | ||
// settings | ||
// | ||
|
||
//SANITIZE ALL ESCAPES | ||
$sanitize_all_escapes=true; | ||
// | ||
|
||
//STOP FAKE REGISTER GLOBALS | ||
$fake_register_globals=false; | ||
// | ||
|
||
require_once(dirname(__FILE__) . "/../../interface/globals.php"); | ||
require_once(dirname(__FILE__) . "/../user.inc"); | ||
|
||
//If 'mode' is either a 1 or 0 and 'target' is set | ||
// Then will update the appropriate user flag | ||
if (($_POST['mode'] == 1 || $_POST['mode'] == 0) && isset($_POST['target'])) { | ||
|
||
//Set the demographics expand setting in the patient summary screen | ||
if ($_POST['target'] == "#DEM") { | ||
setUserSetting("dem_expand", $_POST['mode'], $_SESSION['authUserID']); | ||
} | ||
|
||
//Set the insurance expand setting in the patient summary screen | ||
if ($_POST['target'] == "#INSURANCE") { | ||
setUserSetting("ins_expand", $_POST['mode'], $_SESSION['authUserID']); | ||
} | ||
|
||
//Set the patient notes expand setting in the patient summary screen | ||
if ($_POST['target'] == "#notes_div") { | ||
setUserSetting("not_expand", $_POST['mode'], $_SESSION['authUserID']); | ||
} | ||
|
||
//Set the disclosures expand setting in the patient summary screen | ||
if ($_POST['target'] == "#disc_div") { | ||
setUserSetting("dis_expand", $_POST['mode'], $_SESSION['authUserID']); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
// This program is free software; you can redistribute it and/or | ||
// modify it under the terms of the GNU General Public License | ||
// as published by the Free Software Foundation; either version 2 | ||
// of the License, or (at your option) any later version. | ||
|
||
require_once(dirname(__FILE__) . "/sql.inc"); | ||
require_once(dirname(__FILE__) . "/formdata.inc.php"); | ||
|
||
//This will return the user settings from the 'users' table. | ||
// $id is the user id number in the 'users' table | ||
function getUserSettings($id) { | ||
$row = sqlQuery("SELECT dem_expand, ins_expand, not_expand, " . | ||
"dis_expand FROM users WHERE id=?", array($id) ); | ||
return $row; | ||
} | ||
|
||
//This will set a user setting | ||
// $name is the setting name in the 'users' table | ||
// $value is the setting value to be set in the 'users' table | ||
// $id is the user id number in the 'users' table | ||
function setUserSetting($name, $value, $id) { | ||
sqlStatement("UPDATE users SET " . add_escape_custom($name) . | ||
"=? WHERE id=?", array($value, $id) ); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters