Weno fixes and validations (#7209)
commite670aa3d8961ccaa78e8c1e682db83f9b1c41bfb
authorJerry Padgett <sjpadgett@gmail.com>
Thu, 22 Feb 2024 17:43:35 +0000 (22 12:43 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Feb 2024 17:43:35 +0000 (22 12:43 -0500)
tree40aa0c6261a636dda981b389df49eb08bef164e7
parentdfd3a220cd6da029b941cf57349f65e6bfa916ae
Weno fixes and validations (#7209)

* Weno fixes and validations
- numerous warnings

* - remove Config weno setup.
- new service class.
- add new Weno Module setup
- add logic to prevent module event listeners unless admin credentials are set up.
- add logic to show unregister and config icons if not credentials.
- add Module Manager call to listener class on pre action events using pre prefix to action i.e. preeneble
- using mod_ui_active flag from modules table to qualify some ui actions in module manager
- many translations and warnings

* - add encrypt and decrypt to globals

* - added new manager feature that allows a flag `mod_ui_active` that when set indicates custom styles for buttons.
- added a refresh if action listener return an error after alert is closed.
- Restyled buttons with font awesome.
- Fixed module config container to be responsive and follow themes.
- table install fixes
- more general code clean up.

* - fix sync alert
- refactor some BootService methods to static
- more general code cleanup.

* - change widget title
- clean up widget action buttons

* - Added an error panel to widget
- validations refactors
- code cleanup

* - new validations for warnings in widget to notify but error level still allows work to proceed.
- much error formatting

* - Simplfy and refactor checkErrors() method.
- Refactor errorWithDie() to echoError() method

* - add icon and button to open dialog to render form to fix error item
- more restylaes

* - add help to setup
- fix and restyle Weno Management.

* - fix some missteps for url compose for errors
- fix vitals eval
- refactor cipher
- prep to remove Container class

* - fix lots of warnings
- setup downloads logging
- add weno prov id to user settings for back up
- restyle choices pharmacy seletions and fix seach for zip
- group city looku in UI to be unique
- factored away Container class! deleted

* - revamped pharmacy search to simplify
- fix style color to themes

* - add pharmacy download status in widget and choices
- test download for fail status the reset anf reattemp
- varius warnings

* - rename the ModuleManagerAfterActionListener since it now listens for other events othe than after actions.

* - add new alerts to widget
- replace encounter with auth user to track user to prescription round trip
- new age and phone format methods

* - send responsible party if under 19 yo

* - conditional wrong for guardian

* - restyles and minor bug fixes

* - add a return to demographics to weno eRx frame.

* - add a secondary backup weno admin

* - scrape return html errors within downloaded zip and csv files!

* - add alerts from scraping weno download files since they don't send say a 401 or 403 status with response holding error. always a 200 regardless.

* - move manage modules tab to admins tab  currently opens to patient tab which is needed to be in view for editing.

* - put back weno enable in globals Config

* - logging changes
- ensure we have a user id for prescriptions.
39 files changed:
interface/main/tabs/menu/menus/standard.json
interface/modules/custom_modules/oe-module-faxsms/ModuleManagerActionListener.php [deleted file]
interface/modules/custom_modules/oe-module-faxsms/ModuleManagerListener.php [moved from interface/modules/custom_modules/oe-module-faxsms/ModuleManagerAfterActionListener.php with 95% similarity]
interface/modules/custom_modules/oe-module-weno/ModuleManagerListener.php [moved from interface/modules/custom_modules/oe-module-weno/ModuleManagerAfterActionListener.php with 81% similarity]
interface/modules/custom_modules/oe-module-weno/info.txt
interface/modules/custom_modules/oe-module-weno/moduleConfig.php
interface/modules/custom_modules/oe-module-weno/openemr.bootstrap.php
interface/modules/custom_modules/oe-module-weno/public/assets/js/synch.js
interface/modules/custom_modules/oe-module-weno/scripts/file_download.php
interface/modules/custom_modules/oe-module-weno/scripts/weno_log_sync.php
interface/modules/custom_modules/oe-module-weno/scripts/weno_pharmacy_search.php
interface/modules/custom_modules/oe-module-weno/sql/table.sql
interface/modules/custom_modules/oe-module-weno/src/Bootstrap.php
interface/modules/custom_modules/oe-module-weno/src/Services/Container.php [deleted file]
interface/modules/custom_modules/oe-module-weno/src/Services/DownloadWenoPharmacies.php
interface/modules/custom_modules/oe-module-weno/src/Services/LogDataInsert.php
interface/modules/custom_modules/oe-module-weno/src/Services/LogImportBuild.php
interface/modules/custom_modules/oe-module-weno/src/Services/LogProperties.php
interface/modules/custom_modules/oe-module-weno/src/Services/ModuleService.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/TransmitProperties.php
interface/modules/custom_modules/oe-module-weno/src/Services/WenoLogService.php
interface/modules/custom_modules/oe-module-weno/src/Services/WenoPharmaciesImport.php
interface/modules/custom_modules/oe-module-weno/src/Services/WenoPharmaciesJson.php
interface/modules/custom_modules/oe-module-weno/src/WenoGlobalConfig.php
interface/modules/custom_modules/oe-module-weno/templates/facilities.php
interface/modules/custom_modules/oe-module-weno/templates/indexrx.php
interface/modules/custom_modules/oe-module-weno/templates/pharmacy_list_display.php
interface/modules/custom_modules/oe-module-weno/templates/pharmacy_list_form.php
interface/modules/custom_modules/oe-module-weno/templates/synch.php
interface/modules/custom_modules/oe-module-weno/templates/weno_fragment.php
interface/modules/custom_modules/oe-module-weno/templates/weno_setup.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/version.php
interface/modules/zend_modules/module/Installer/src/Installer/Controller/InstallerController.php
interface/modules/zend_modules/module/Installer/src/Installer/Model/InstModuleTable.php
interface/modules/zend_modules/module/Installer/view/installer/installer/configure.phtml
interface/modules/zend_modules/module/Installer/view/installer/installer/index.phtml
interface/modules/zend_modules/module/Installer/view/layout/layout.phtml
interface/modules/zend_modules/public/js/installer/action.js
sites/default/documents/custom_menus/Custom.json