From 9829bf4e0b86d382730e992e40bf2c16ba9d081c Mon Sep 17 00:00:00 2001 From: Jerry Padgett Date: Wed, 27 Sep 2017 04:36:34 -0400 Subject: [PATCH] New Patient Registration/signup for Patient Portal Two (#1090) * Patient registration/signup added to patient portal two. * Email username and password after successful register. *Send message to patient provider of registering. *Addition to allow patients to reset their patient portal two credentials. * Add global to turn off/on credential rest. --- library/globals.inc.php | 23 +- .../jquery-datetimepicker-2-5-4-alternate.js.php | 4 + portal/_header.php | 8 +- portal/account/account.lib.php | 214 ++++++++ portal/account/account.php | 74 +++ portal/account/register.php | 554 +++++++++++++++++++++ portal/assets/css/base.css | 15 +- portal/assets/css/register.css | 73 +++ portal/get_patient_info.php | 447 +++++++++-------- portal/home.php | 17 +- portal/index.php | 389 ++++++++++----- .../patient/libs/Controller/PatientController.php | 14 +- portal/patient/libs/Reporter/PatientReporter.php | 10 +- portal/patient/scripts/app/patientdata.js | 45 +- portal/patient/scripts/model.js | 8 +- portal/patient/styles/style.css | 40 +- portal/patient/templates/PatientListView.tpl.php | 272 +++++----- portal/patient/templates/_modalFormHeader.tpl.php | 10 +- 18 files changed, 1699 insertions(+), 518 deletions(-) create mode 100644 portal/account/account.lib.php create mode 100644 portal/account/account.php create mode 100644 portal/account/register.php create mode 100644 portal/assets/css/register.css rewrite portal/get_patient_info.php (64%) diff --git a/library/globals.inc.php b/library/globals.inc.php index 17d090ff9..5fddc8cd7 100644 --- a/library/globals.inc.php +++ b/library/globals.inc.php @@ -2421,6 +2421,27 @@ $GLOBALS_METADATA = array( xl('Website link for the Version 2 Onsite Patient Portal.') ), + 'portal_onsite_two_register' => array( + xl('Allow Version 2 Onsite New Patient Registration Widget'), + 'bool', // data type + '1', + xl('Enable Version 2 Onsite Patient Portal new patient to self register.') + ), + + 'portal_two_payments' => array( + xl('Allow Version 2 Onsite Online Payments'), + 'bool', // data type + '0', + xl('Allow Version 2 Onsite Patient to make payments online.') + ), + + 'portal_two_pass_reset' => array( + xl('Allow Version 2 Patients to Reset Credentials'), + 'bool', // data type + '0', + xl('Patient may change their logon from portal login dialog.') + ), + 'portal_onsite_enable' => array( xl('Enable Version 1 Onsite Patient Portal'), 'bool', // data type @@ -2636,7 +2657,7 @@ $GLOBALS_METADATA = array( xl('Log all NewCrop eRx Requests and / or Responses.'), ), - 'weno_rx_enable' => array( + 'weno_rx_enable' => array( xl('Enable Weno eRx Service'), 'bool', '0', diff --git a/library/js/xl/jquery-datetimepicker-2-5-4-alternate.js.php b/library/js/xl/jquery-datetimepicker-2-5-4-alternate.js.php index 3be222117..bc4cb9970 100644 --- a/library/js/xl/jquery-datetimepicker-2-5-4-alternate.js.php +++ b/library/js/xl/jquery-datetimepicker-2-5-4-alternate.js.php @@ -67,6 +67,8 @@ var datepicker_xlDayofwk= ["", "; var datepicker_yearStart = '1900'; var datepicker_format = 'Y-m-d'; +var datepicker_scrollInput = false; +var datepicker_scrollMonth = false; //datetimepicker elements var datetimepicker_xlMonths = ["","", "", "", "", "", "", "", "", "", "", ""]; @@ -76,3 +78,5 @@ var datetimepicker_rtl = - + +
  • +
  • +