Permalink
Browse files

more organization of autoloaded files (#424)

  • Loading branch information...
1 parent da39bbf commit 5220b634e2f1e28c8ce8204d766ba1cd5cad37ba @bradymiller bradymiller committed on GitHub Jan 9, 2017
Showing with 1,064 additions and 1,172 deletions.
  1. +3 −4 ccr/transmitCCD.php
  2. +2 −1 composer.json
  3. +11 −12 contrib/forms/evaluation/C_FormEvaluation.class.php
  4. +2 −3 contrib/forms/evaluation/report.php
  5. +1 −4 contrib/forms/example/SQL.php
  6. +11 −12 contrib/forms/prosthesis/C_FormProsthesis.class.php
  7. +9 −10 contrib/forms/review_of_systems/C_FormReviewOfSystems.class.php
  8. +0 −2 contrib/util/de_identification_upgrade.php
  9. +0 −1 custom/BillingExport.csv.php
  10. +0 −1 custom/search.php
  11. +0 −1 interface/batchcom/batchcom.php
  12. +1 −2 interface/batchcom/emailnotification.php
  13. +1 −2 interface/batchcom/settingsnotification.php
  14. +1 −2 interface/batchcom/smsnotification.php
  15. +0 −1 interface/billing/edit_payment.php
  16. +5 −6 interface/billing/new_payment.php
  17. +59 −60 interface/de_identification_forms/de_identification_screen1.php
  18. +0 −2 interface/de_identification_forms/de_identification_screen2.php
  19. +7 −8 interface/de_identification_forms/re_identification_input_screen.php
  20. +1 −2 interface/de_identification_forms/re_identification_op_single_patient.php
  21. +0 −1 interface/fax/fax_dispatch_newpid.php
  22. +0 −1 interface/forms/CAMOS/ajax_save.php
  23. +7 −8 interface/forms/CAMOS/content_parser.php
  24. +33 −34 interface/forms/CAMOS/new.php
  25. +21 −22 interface/forms/CAMOS/rx_print.php
  26. +0 −1 interface/forms/CAMOS/save.php
  27. +0 −1 interface/forms/eye_mag/SpectacleRx.php
  28. +0 −1 interface/forms/eye_mag/a_issue.php
  29. +65 −66 interface/forms/eye_mag/help.php
  30. +53 −54 interface/forms/eye_mag/php/Anything_simple.php
  31. +0 −1 interface/forms/eye_mag/report.php
  32. +0 −1 interface/forms/eye_mag/taskman.php
  33. +0 −1 interface/forms/newpatient/save.php
  34. +12 −13 interface/forms_admin/forms_admin.php
  35. +5 −5 interface/globals.php
  36. +3 −4 interface/language/language.php
  37. +0 −1 interface/main/blank.php
  38. +0 −1 interface/main/calendar/new_patient_save.php
  39. +2 −4 interface/main/pwd_expires_alert.php
  40. +0 −1 interface/new/new_comprehensive_save.php
  41. +0 −1 interface/new/new_patient_save.php
  42. +14 −15 interface/orders/lab_exchange_tools.php
  43. +0 −1 interface/patient_file/encounter/blank.php
  44. +0 −2 interface/patient_file/encounter/copay.php
  45. +1 −2 interface/patient_file/encounter/diagnosis.php
  46. +1 −2 interface/patient_file/encounter/other.php
  47. +4 −5 interface/patient_file/encounter/search_code.php
  48. +0 −1 interface/patient_file/encounter/superbill_codes.php
  49. +0 −1 interface/patient_file/encounter/superbill_custom_full.php
  50. +22 −23 interface/patient_file/summary/add_edit_amendments.php
  51. +0 −1 interface/patient_file/summary/advancedirectives.php
  52. +13 −14 interface/patient_file/summary/create_portallogin.php
  53. +5 −6 interface/patient_file/summary/disc_fragment.php
  54. +0 −1 interface/patient_file/summary/disclosure_full.php
  55. +91 −92 interface/patient_file/summary/immunizations.php
  56. +7 −8 interface/patient_file/summary/list_amendments.php
  57. +0 −1 interface/patient_file/summary/patient_picture.php
  58. +4 −5 interface/patient_file/summary/print_amendments.php
  59. +15 −16 interface/patient_file/summary/record_disclosure.php
  60. +34 −35 interface/patient_file/summary/shot_record.php
  61. +47 −48 interface/reports/edi_271.php
  62. +5 −6 interface/reports/index.php
  63. +0 −1 interface/reports/services_by_category.php
  64. +0 −1 interface/usergroup/facilities.php
  65. +0 −1 interface/usergroup/facilities_add.php
  66. +0 −1 interface/usergroup/facility_admin.php
  67. +4 −5 interface/usergroup/facility_user.php
  68. +5 −6 interface/usergroup/facility_user_admin.php
  69. +23 −25 interface/usergroup/ssl_certificates_admin.php
  70. +0 −1 interface/usergroup/user_admin.php
  71. +0 −1 interface/usergroup/user_info.php
  72. +0 −1 interface/usergroup/usergroup_admin.php
  73. +0 −1 interface/usergroup/usergroup_admin_add.php
  74. +0 −1 ippf_upgrade.php
  75. +8 −9 library/ESign/ESign.php
  76. +4 −5 library/ajax/addlistitem.php
  77. +9 −10 library/ajax/execute_background_services.php
  78. +0 −1 library/ajax/facility_ajax_code.php
  79. +1 −2 library/ajax/find_patients.php
  80. +4 −5 library/ajax/payment_ajax.php
  81. +1 −2 library/ajax/prescription_drugname_lookup.php
  82. +5 −6 library/api.inc
  83. +11 −12 library/auth.inc
  84. +0 −2 library/billing.inc
  85. +9 −10 library/billrep.inc
  86. +7 −8 library/classes/ORDataObject.class.php
  87. +36 −38 library/classes/Prescription.class.php
  88. +21 −22 library/direct_message_check.inc
  89. +4 −5 library/forms.inc
  90. +4 −6 library/log.inc
  91. +57 −58 library/patient.inc
  92. +18 −20 library/pnotes.inc
  93. +5 −6 library/registry.inc
  94. +5 −6 library/report.inc
  95. +3 −4 library/smarty/plugins/function.xl.php
  96. +8 −8 library/sql.inc
  97. +0 −1 library/transactions.inc
  98. +0 −1 library/translation.inc.php
  99. +11 −12 library/user.inc
  100. +205 −206 myportal/soap_service/server_side.php
  101. +2 −0 patients/get_patient_info.php
  102. +14 −16 sql_patch.php
  103. +0 −1 sql_upgrade.php
  104. +0 −2 tests/unit/BaseHarness.class.php
  105. +1 −0 vendor/composer/autoload_files.php
  106. +1 −0 vendor/composer/autoload_static.php
View
@@ -25,14 +25,13 @@
*/
require_once(dirname(__FILE__) . "/../library/log.inc");
-require_once(dirname(__FILE__) . "/../library/sql.inc");
require_once(dirname(__FILE__) . "/../library/patient.inc");
require_once(dirname(__FILE__) . "/../library/direct_message_check.inc");
/*
* Connect to a phiMail Direct Messaging server and transmit
* a CCD document to the specified recipient. If the message is accepted by the
- * server, the script will return "SUCCESS", otherwise it will return an error msg.
+ * server, the script will return "SUCCESS", otherwise it will return an error msg.
* @param DOMDocument ccd the xml data to transmit, a CCDA document is assumed
* @param string recipient the Direct Address of the recipient
* @param string requested_by user | patient
@@ -69,7 +68,7 @@ function transmitCCD($ccd,$recipient,$requested_by,$xml_type="CCD") {
$ret = phimail_write_expect_OK($fp,"TO $recipient\n");
if($ret!==TRUE) return( xl("Delivery is not allowed to the specified Direct Address.") );
-
+
$ret=fgets($fp,1024); //ignore extra server data
if($requested_by=="patient")
@@ -129,7 +128,7 @@ function transmitCCD($ccd,$recipient,$requested_by,$xml_type="CCD") {
/**
* If we get here, the message was successfully sent and the return
* value $ret is of the form "QUEUED recipient message-id" which
- * is suitable for logging.
+ * is suitable for logging.
*/
$msg_id=explode(" ",trim($ret),4);
if($msg_id[0]!="QUEUED" || !isset($msg_id[2])) { //unexpected response
View
@@ -36,7 +36,8 @@
"library/formdata.inc.php",
"library/sanitize.inc.php",
"library/date_functions.php",
- "library/validation/validate_core.php"
+ "library/validation/validate_core.php",
+ "library/translation.inc.php"
]
},
"config": {
@@ -2,13 +2,12 @@
require_once ($GLOBALS['fileroot'] . "/library/classes/Controller.class.php");
require_once ($GLOBALS['fileroot'] . "/library/forms.inc");
-require_once ($GLOBALS['fileroot'] . "/library/sql.inc");
require_once("FormEvaluation.class.php");
class C_FormEvaluation extends Controller {
var $template_dir;
-
+
function C_FormEvaluation($template_mod = "general") {
parent::Controller();
$this->template_mod = $template_mod;
@@ -17,14 +16,14 @@ function C_FormEvaluation($template_mod = "general") {
$this->assign("DONT_SAVE_LINK", $GLOBALS['form_exit_url']);
$this->assign("STYLE", $GLOBALS['style']);
}
-
+
function default_action() {
$evaluation = new FormEvaluation();
$this->assign("checks",$evaluation->_form_layout());
$this->assign("evaluation",$evaluation);
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function view_action($form_id) {
if (is_numeric($form_id)) {
$evaluation = new FormEvaluation($form_id);
@@ -38,35 +37,35 @@ function view_action($form_id) {
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function default_action_process() {
if ($_POST['process'] != "true")
return;
$this->evaluation = new FormEvaluation($_POST['id']);
parent::populate_object($this->evaluation);
-
+
$this->evaluation->persist();
if ($GLOBALS['encounter'] == "") {
$GLOBALS['encounter'] = date("Ymd");
}
addForm($GLOBALS['encounter'], "Evaluation Form", $this->evaluation->id, "evaluation", $GLOBALS['pid'], $_SESSION['userauthorized']);
-
+
if (!empty($_POST['cpt_code'])) {
$sql = "select * from codes where code ='" . add_escape_custom($_POST['cpt_code']) . "' order by id";
-
+
$results = sqlQ($sql);
-
+
$row = sqlFetchArray($results);
if (!empty($row)) {
addBilling( date("Ymd"), 'CPT4', $row['code'], $row['code_text'], $_SESSION['pid'], $_SESSION['userauthorized'], $_SESSION['authUserID'],$row['modifier'],$row['units'],$row['fee']);
}
-
+
}
-
+
$_POST['process'] = "";
return;
}
-
+
}
@@ -2,7 +2,6 @@
//------------Forms generated from formsWiz
include_once("../../globals.php");
include_once($GLOBALS["srcdir"]."/api.inc");
-include_once($GLOBALS["srcdir"]."/sql.inc");
function evaluation_report( $pid, $encounter, $cols, $id) {
$count = 0;
$data = formFetch("form_evaluation", $id);
@@ -22,7 +21,7 @@ function evaluation_report( $pid, $encounter, $cols, $id) {
if ($value == "on") {
$value = "yes";
}
-
+
$key=ucwords(str_replace("_"," ",$key));
if (is_numeric($key)){
$key = "check";
@@ -37,4 +36,4 @@ function evaluation_report( $pid, $encounter, $cols, $id) {
}
print "</tr></table>";
}
-?>
+?>
@@ -4,7 +4,6 @@
echo "Building Statement<br>";
flush();
-$sqlLibPath = "../../../library/sql.inc";
$tablename = "example";
//our first six columns are NEEDED for operation of the suite
$create = "
@@ -19,11 +18,9 @@
`cats` longtext
) ENGINE=InnoDB
";
-
+
echo "Connecting To SQL<br>";
flush();
-if (!include_once($sqlLibPath))
- die("failed!");
echo "Creating Tables<br>";
flush();
@@ -2,13 +2,12 @@
require_once ($GLOBALS['fileroot'] . "/library/classes/Controller.class.php");
require_once ($GLOBALS['fileroot'] . "/library/forms.inc");
-require_once ($GLOBALS['fileroot'] . "/library/sql.inc");
require_once("FormProsthesis.class.php");
class C_FormProsthesis extends Controller {
var $template_dir;
-
+
function C_FormProsthesis($template_mod = "general") {
parent::Controller();
$this->template_mod = $template_mod;
@@ -17,13 +16,13 @@ function C_FormProsthesis($template_mod = "general") {
$this->assign("DONT_SAVE_LINK", $GLOBALS['form_exit_url']);
$this->assign("STYLE", $GLOBALS['style']);
}
-
+
function default_action() {
$prosthesis = new FormProsthesis();
$this->assign("prosthesis",$prosthesis);
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function view_action($form_id) {
if (is_numeric($form_id)) {
$prosthesis = new FormProsthesis($form_id);
@@ -36,35 +35,35 @@ function view_action($form_id) {
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function default_action_process() {
if ($_POST['process'] != "true")
return;
$this->prosthesis = new FormProsthesis($_POST['id']);
parent::populate_object($this->prosthesis);
-
+
$this->prosthesis->persist();
if ($GLOBALS['encounter'] == "") {
$GLOBALS['encounter'] = date("Ymd");
}
addForm($GLOBALS['encounter'], "Prosthesis & Orthotics Form", $this->prosthesis->id, "prosthesis", $GLOBALS['pid'], $_SESSION['userauthorized']);
-
+
if (!empty($_POST['cpt_code'])) {
$sql = "select * from codes where code ='" . add_escape_custom($_POST['cpt_code']) . "' order by id";
-
+
$results = sqlQ($sql);
-
+
$row = sqlFetchArray($results);
if (!empty($row)) {
addBilling( date("Ymd"), 'CPT4', $row['code'], $row['code_text'], $_SESSION['pid'], $_SESSION['userauthorized'], $_SESSION['authUserID'],$row['modifier'],$row['units'],$row['fee']);
}
-
+
}
-
+
$_POST['process'] = "";
return;
}
-
+
}
?>
@@ -2,13 +2,12 @@
require_once ($GLOBALS['fileroot'] . "/library/classes/Controller.class.php");
require_once ($GLOBALS['fileroot'] . "/library/forms.inc");
-require_once ($GLOBALS['fileroot'] . "/library/sql.inc");
require_once("FormReviewOfSystems.class.php");
class C_FormReviewOfSystems extends Controller {
var $template_dir;
-
+
function C_FormReviewOfSystems($template_mod = "general") {
parent::Controller();
$this->template_mod = $template_mod;
@@ -17,14 +16,14 @@ function C_FormReviewOfSystems($template_mod = "general") {
$this->assign("DONT_SAVE_LINK", $GLOBALS['form_exit_url']);
$this->assign("STYLE", $GLOBALS['style']);
}
-
+
function default_action() {
$review_of_systems = new FormReviewOfSystems();
$this->assign("review_of_systems",$review_of_systems);
$this->assign("checks",$review_of_systems->_form_layout());
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function view_action($form_id) {
if (is_numeric($form_id)) {
$review_of_systems = new FormReviewOfSystems($form_id);
@@ -38,7 +37,7 @@ function view_action($form_id) {
return $this->fetch($this->template_dir . $this->template_mod . "_new.html");
}
-
+
function default_action_process() {
if ($_POST['process'] != "true")
return;
@@ -49,21 +48,21 @@ function default_action_process() {
$GLOBALS['encounter'] = date("Ymd");
}
addForm($GLOBALS['encounter'], "Review Of Systems", $this->review_of_systems->id, "review_of_systems", $GLOBALS['pid'], $_SESSION['userauthorized']);
-
+
if (!empty($_POST['cpt_code'])) {
$sql = "select * from codes where code ='" . add_escape_custom($_POST['cpt_code']) . "' order by id";
-
+
$results = sqlQ($sql);
-
+
$row = sqlFetchArray($results);
if (!empty($row)) {
addBilling( date("Ymd"), 'CPT4', $row['code'], $row['code_text'], $_SESSION['pid'], $_SESSION['userauthorized'], $_SESSION['authUserID'],$row['modifier'],$row['units'],$row['fee']);
}
-
+
}
$_POST['process'] = "";
return;
}
-
+
}
?>
@@ -26,8 +26,6 @@
$de_identification_config = 0;
require_once('../../interface/globals.php');
-require_once('../../library/sql.inc');
-require_once('../../library/sqlconf.php');
function tableExists_de($tblname) {
$row = sqlQuery("SHOW TABLES LIKE '$tblname'");
@@ -14,7 +14,6 @@
//
// To implement this feature, rename this file to BillingExport.php.
-require_once (dirname(__FILE__) . "/../library/sql.inc");
class BillingExport {
View
@@ -15,7 +15,6 @@
//
require_once("../interface/globals.php");
-require_once("$srcdir/sql.inc");
?>
<html>
<head>
@@ -21,7 +21,6 @@
//INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
include_once("../globals.php");
include_once("$srcdir/registry.inc");
-include_once("$srcdir/sql.inc");
include_once("../../library/acl.inc");
include_once("batchcom.inc.php");
@@ -2,7 +2,6 @@
//INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
include_once("../globals.php");
include_once("$srcdir/registry.inc");
-include_once("$srcdir/sql.inc");
include_once("../../library/acl.inc");
include_once("batchcom.inc.php");
@@ -106,7 +105,7 @@
<?php xl('Email Subject','e')?> :
<INPUT TYPE="text" NAME="email_subject" size="60" value="<?php echo $email_subject?>">
<br>
-
+
<?php xl('Name of Provider','e')?> :
<INPUT TYPE="text" NAME="provider_name" size="40" value="<?php echo $provider_name?>">
<br>
@@ -2,7 +2,6 @@
//INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
include_once("../globals.php");
include_once("$srcdir/registry.inc");
-include_once("$srcdir/sql.inc");
include_once("../../library/acl.inc");
include_once("batchcom.inc.php");
@@ -94,7 +93,7 @@
<br>
<?php xl('SMS Gateway API key','e')?> :
<INPUT TYPE="text" NAME="SMS_gateway_apikey" size="40" value="<?php $SMS_gateway_apikey?>">
-
+
<br><br>
<INPUT TYPE="submit" name="form_action" value="Save">
</div>
@@ -2,7 +2,6 @@
//INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
include_once("../globals.php");
include_once("$srcdir/registry.inc");
-include_once("$srcdir/sql.inc");
include_once("../../library/acl.inc");
include_once("batchcom.inc.php");
@@ -105,7 +104,7 @@
<?php }?>
</SELECT>
<br>
-
+
<?php xl('Name of Provider','e')?> :
<INPUT TYPE="text" NAME="provider_name" size="40" value="<?php echo $provider_name?>">
<br>
Oops, something went wrong.

0 comments on commit 5220b63

Please sign in to comment.