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.
* Fixes openemr#7319 ccda extra drug_unit list options This fixes the error in the ccda that was creating tons of entries in the drug_entry list options list. The CCDA was not checking against empty values and would continue to create new list_options for each immunization / prescription drug_unit when the unit was an empty string I also added some debugging instruments on the prescription and immunization process which makes it easy to compare for a ccda what is being parsed and what is being stored in the database. Added a debug flag to all of the ccda commands so that these options are available for people needing to do any debugging of the process. * Exclude 0 values from amount administered checks. We decided that we wanted to exclude recording 0 values so updated the conditions on the immunization and prescription to account for that.
- Loading branch information
Showing
6 changed files
with
255 additions
and
84 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
/** | ||
* Facilitates adding a debug flag and a cli input/output styler useful for debugging commands. | ||
* | ||
* @package OpenEMR | ||
* @link https://www.open-emr.org | ||
* @author Stephen Nielson <[email protected]> | ||
* @copyright Copyright (c) 2024 Discover and Change, Inc. <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
namespace OpenEMR\Common\Command\Trait; | ||
|
||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
|
||
trait CommandLineDebugStylerTrait | ||
{ | ||
/** | ||
* @var SymfonyStyle CLI styler used for debug mode to help in identifying issues during the import process. | ||
*/ | ||
protected SymfonyStyle $styler; | ||
|
||
/** | ||
* @var bool Whether to add additional logging / debug output to the system | ||
*/ | ||
protected bool $cliDebug = false; | ||
|
||
public function setCommandLineStyler(SymfonyStyle $symfonyStyler) | ||
{ | ||
$this->cliDebug = true; | ||
$this->styler = $symfonyStyler; | ||
} | ||
|
||
public function isCliDebug() | ||
{ | ||
return $this->cliDebug; | ||
} | ||
|
||
public function getCommandLineStyler(): SymfonyStyle | ||
{ | ||
return $this->styler; | ||
} | ||
} |
Oops, something went wrong.