forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weno fixes and updates (openemr#7204)
* Weno fixes and updates - Improve pharmacy import by using transactional queries. From 4 minutes to 40 seconds. - improve validation and error reporting. - some code cleanup for warnings and in general - fix frame screen output to use the current theme so user always see content. * - fix block style how nitpicking is this! * - fix all header blocks. * - no clue * php warning * styles * - I was running ci on wrong directory! tsktsk * - don't log thounsands of inserts --------- Co-authored-by: stephen waite <[email protected]>
- Loading branch information
1 parent
8d6dc1c
commit e77ac66
Showing
17 changed files
with
210 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
interface/modules/custom_modules/oe-module-weno/scripts/weno_log_sync.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
* @copyright Copyright (c) 2021 Sherwin Gaddis <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
use OpenEMR\Common\Crypto\CryptoGen; | ||
use OpenEMR\Modules\WenoModule\Services\LogProperties; | ||
use OpenEMR\Modules\WenoModule\Services\WenoPharmaciesJson; | ||
|
2 changes: 1 addition & 1 deletion
2
interface/modules/custom_modules/oe-module-weno/src/Services/Container.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
@@ -38,9 +38,9 @@ public function retrieveDataFile($url, $storelocation) | |
|
||
$result = $this->extractFile($path_to_extract, $storelocation); | ||
if ($result == "Imported") { | ||
return "complete"; | ||
return "Imported"; | ||
} else { | ||
return "failed"; | ||
return $result; | ||
} | ||
} | ||
|
||
|
@@ -74,6 +74,9 @@ public function extractFile($path_to_extract, $storelocation) | |
$result = $import->importPharmacy($csvFile, $files); | ||
if ($result == "Imported") { | ||
$wenolog->insertWenoLog("pharmacy", "Success"); | ||
return $result; | ||
} else { | ||
return $result; | ||
} | ||
|
||
return "Imported"; | ||
|
2 changes: 1 addition & 1 deletion
2
interface/modules/custom_modules/oe-module-weno/src/Services/FacilityProperties.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
2 changes: 1 addition & 1 deletion
2
interface/modules/custom_modules/oe-module-weno/src/Services/LogDataInsert.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
2 changes: 1 addition & 1 deletion
2
interface/modules/custom_modules/oe-module-weno/src/Services/LogImportBuild.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
2 changes: 1 addition & 1 deletion
2
interface/modules/custom_modules/oe-module-weno/src/Services/LogProperties.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
/* | ||
/** | ||
* @package OpenEMR | ||
* @link http://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.