Some finishing touches (#7306)
commit5c5001f8f7fba8e883edc70617acaab85f016ef4
authorJerry Padgett <sjpadgett@gmail.com>
Tue, 16 Apr 2024 15:25:32 +0000 (16 11:25 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 15:25:32 +0000 (16 11:25 -0400)
tree26150bf3f9ebc489d2afddec20335e4fe1b285d7
parent9be12b810b88fb7e4d046bb7ec7d172bcd4ca7fa
Some finishing touches (#7306)

* Weno fixup and credential API
- change fa font size
- prevent old styles loading

* - add acl to setup
- validate vitals for under age
- fix popup error for invalid action
- add validation and default to change events
- better validate setting requirements

* - New WenoValidate class to verift keys and user credentials
- verify and reset encryption key if needed for phamacy downloads.
- temporally chang testing URL to weno dev server until new api goes online.
- setup weno module for using upgrade in pre for auto upgrade feature.

* - update code stamdards and do a little cleanup of our utility.js
- numerous validation additions.
- add all weno required settings (weno user id, facility location id and admin credentials validation) to module setup page.

* - moved the custom modules to top of managers list. appears I have a bias!
- add a simple but useful help panel to top of list table.
- color coded module name for clarity if laminas or custom.

* - had to create a separate setup_facilities script for setup so can use when module isn't enabled.
- add a help button to MM and help_requested event listener
- refactor controller for readability
- add some security

* - fix pathing problems
- refactor reloads to replace page with new version

* - too full of myself. utility Cleanup failed.
- add new dowdlog log viewer
- fix download create directory

* - fix download won't break on duplicate key
- auto save weno id in facilities section.
- some setup refactor

* - prevent resave of demographics on dialog close

* - prevent demos from throwing warning in upgrade for old weno table population. v5.0.1 I believe.
- files clean out
- remove a chance for a race condition in background tasks

* - change and move help
- refactor to use the online api from dev api

* - refactor and consoladate weno menu from Other to Weno eRx Tools
- add Module setup and new Dowmload log viewer for admin to manage
- add traps for internet off line.
- remove unused class methods and cleanup WenoValidate class for readability.

* - combine the download facility download viewer page

* Some finishing touches
- don't expose sensitive data
- change datepicker option. though it would work in US not so muct Europe's day/m/Y

* - refactor weno_log_sync for better readability and separation of concerns. This script was driving me crazy!
- reformat various errors
- ensure we have valid credentials and encryp key for downloads. If not reset so we can complete the important initial downloads at least.
- added new info to download manager
- I don't know take a look...

* Remove unused code
Add link to modules wiki

* a couple log errors

* review

* module manager help method

* Fix log escaping

* Add exception to decryptStandard so we can tell where the heck error occurs

* no message

* Resubmit for missing yag that is not missing!

* missing return in format function. Things are disappearing in my local!

* add test pharmacies
finish coredecrypt exceptions
error messages refactors

* Main fix here is adding logic for weno test pahramcies
refactors of phamacy search and bud fix
add logic to keep weno provider ids upto date and validated.
escaping and xlating some js

* Trying out updated linting
- more global management for the module
- escaping
- pharmacy search alerts
- add additional ease of setup options to setup. User Setting for logged in admin
- had to refactor provider username to provider_email for weno legacy
- add Brady's fix in core encryption service for dynamic properties. One less thing to worry about!. clean up comments

* - more clean up. This is a very nice class.

* - move validate actions up in form.
- more fiddling around.

* - add new action for listener reset_module active when the register icon is clicked. I used to remove all DB.
- contiueing project messages and search fine tuning.
- crypto updates

* - fix edit_globals magins and padding
- more runtime safety
- review note

* Update ModuleService.php

* - reset back to dev server for testing
- format messages

* - refactor to online production API domain.
- Add new items for setup and a complete module reset
- refactore MM to separate cust and laminas section lists.
29 files changed:
interface/modules/custom_modules/oe-module-weno/ModuleManagerListener.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/src/Bootstrap.php
interface/modules/custom_modules/oe-module-weno/src/Services/DownloadWenoPharmacies.php
interface/modules/custom_modules/oe-module-weno/src/Services/LogProperties.php
interface/modules/custom_modules/oe-module-weno/src/Services/ModuleService.php
interface/modules/custom_modules/oe-module-weno/src/Services/PharmacyService.php
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/WenoValidate.php
interface/modules/custom_modules/oe-module-weno/src/WenoGlobalConfig.php
interface/modules/custom_modules/oe-module-weno/table.sql
interface/modules/custom_modules/oe-module-weno/templates/download_log_viewer.php
interface/modules/custom_modules/oe-module-weno/templates/indexrx.php
interface/modules/custom_modules/oe-module-weno/templates/pharmacy_list_form.php
interface/modules/custom_modules/oe-module-weno/templates/setup_facilities.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
interface/modules/custom_modules/oe-module-weno/templates/weno_users.php
interface/modules/zend_modules/module/Installer/src/Installer/Controller/InstallerController.php
interface/modules/zend_modules/module/Installer/view/installer/installer/index.phtml
interface/modules/zend_modules/public/js/installer/action.js
interface/super/edit_globals.php
src/Common/Crypto/CryptoGen.php