Weno ez integration (#6648)
commit2fece8e630c866c52011a96c771334bc8c4409f4
authoromegasystemsgroup <112465339+omegasystemsgroup@users.noreply.github.com>
Sat, 27 Jan 2024 17:37:51 +0000 (27 17:37 +0000)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 17:37:51 +0000 (27 12:37 -0500)
treee6f6acbd203f55bb08280b1908f141c1e00cbd32
parent174fb4bcc5d486645dfa1a05dfb837c73f0b700d
Weno ez integration (#6648)

* vehr remmediation

* Weno Pharmacy Service

Handles all Pharmacy related queries for weno ez integration

* Weno Pharmacy Ajax Request

File handles all the pharmacy search using the Weno Pharmacy Selector

* WenoFragment

Display a fragment below Vitals Fragment to show list of only Weno Rx.

* Weno Pharmacy Selector Interface

pharmacy_list_form: Form that allows weno primary and alternate pharmacy selection.
pharmacy_list_display: displays the selected pharmacies

* saving weno pharmacy on update demographics_save.php

* create new weno pharmacies new_comprehensive_save.php

* include Weno Pharmacy form and display pages options.inc.php

* Include weno installation instructions globals.inc.php

* Added truncate table before importing weno pharmacies LogDataInsert.php

* include download pharmacies to Weno Management tab

* Download Weno Zipped File file_download.php

* Updated TransmitProperties.php

Validates patient data, provider data before consuming weno api

* weno fix globals, broken download link, clearing insurance data

* remove vehr items

* modularize weno and refactor

* resolve import

* removed old weno & unused files, refactoring

* refactoring

remove custom css files, animations, unused files, sql refactoring

* refactoring

* sql refactoring 2

* Delete FacilityController.php

* restore claim rev menu item

* change prescription log download from 24hrs to 30mins

* Update table.sql

* Included encounter ID to prescriptions

LogDataInsert.php
LogImportBuild.php
TransmitProperties.php

* Update LogDataInsert.php

date added field is added field default to current datetime

* Update LogDataInsert.php

* Create version.php

Included version file

* introduced services

introduced services, move files around and resolved imports

* Further fixes sql structure, removed unused code

* php styling, weno log background service

* - resolve and refactor old weno_provider_username and weno_provider_password  that at some point was changed to weno_admin_username and weno_admin_password
- fix pathings
- fix table global update where weno_provider_username and weno_admin_username values are wrongly swapped
- remove unused weno_fragment from core directory tree
- remove unnecessary global $GLOBALS statements
- run module through CS
- add conditional test if pharmacy download directory exist and create if not

* - fix event classes style for CS

* - more CS

* - fix docblock unsure why my code sniffer didn't fix!

* - fix menu build where misplace breaks was prevent full menu scan.
- patched out location header for Weno eRx render. Header was overriding the tabs iFrame html and title was missing for tab. One or the other but safer using tab.
- fix translations in TransmitProperties class. Show an example of at least ensuring user can see error messages regardless of theme. i.e a dark theme will appear as a reverse white screen.
- Remove unused global $GLOBALS
- IMPORTANT! the user setting required for several work flows wasn't being set in globals because it is required that a companion global be available. I fixed in another PR.

* - crypto not decrypt weno properties because misspelled property
- escaping

* - add button role to sync
- move section before event to actual top i.e. above Billing.
- render module at top of demographics center column. Below prescriptions.

---------

Co-authored-by: dataengr <98280242+dataengr@users.noreply.github.com>
Co-authored-by: Jerry Padgett <sjpadgett@gmail.com>
53 files changed:
interface/main/tabs/menu/menus/standard.json
interface/modules/custom_modules/README [deleted file]
interface/modules/custom_modules/README.md [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/LICENSE [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/README.md [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/cleanup.sql [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/composer.json [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/info.txt [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/moduleConfig.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/openemr.bootstrap.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/public/assets/js/synch.js [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/scripts/file_download.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/scripts/weno_log_sync.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/scripts/weno_pharmacy_search.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/sql/table.sql [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Bootstrap.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/Container.php [moved from src/Rx/Weno/Container.php with 96% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/DownloadWenoPharmacies.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/FacilityProperties.php [moved from src/Rx/Weno/FacilityProperties.php with 95% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/LogDataInsert.php [moved from src/Rx/Weno/LogDataInsert.php with 55% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/LogImportBuild.php [moved from src/Rx/Weno/LogImportBuild.php with 88% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/LogProperties.php [moved from src/Rx/Weno/LogProperties.php with 64% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/PharmacyService.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/SelectedPatientPharmacy.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/TransmitProperties.php [moved from src/Rx/Weno/TransmitProperties.php with 50% similarity]
interface/modules/custom_modules/oe-module-weno/src/Services/WenoLogService.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/WenoPharmaciesJson.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/Services/wenoPharmaciesImport.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/src/WenoGlobalConfig.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/facilities.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/indexrx.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/pharmacy_list_display.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/pharmacy_list_form.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/rxlogmanager.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/synch.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/templates/weno_fragment.php [new file with mode: 0644]
interface/modules/custom_modules/oe-module-weno/version.php [new file with mode: 0644]
interface/new/new_comprehensive_save.php
interface/patient_file/summary/demographics.php
interface/patient_file/summary/demographics_save.php
interface/super/edit_globals.php
interface/weno/facilities.php [deleted file]
interface/weno/indexrx.php [deleted file]
interface/weno/rxlogmanager.php [deleted file]
interface/weno/weno.js [deleted file]
interface/weno/wenoconnected.php [deleted file]
library/globals.inc.php
library/options.inc.php
library/weno_log_sync.php [deleted file]
src/Events/Patient/PatientBeforeCreatedAuxEvent.php [new file with mode: 0644]
src/Events/Patient/PatientUpdatedEventAux.php [new file with mode: 0644]
src/Events/PatientDemographics/RenderPharmacySectionEvent.php [new file with mode: 0644]
src/Rx/Weno/wenoPharmaciesImport.php [deleted file]