Fixes #7319 ccda extra drug_unit list options (#7321)
commit0b1be289caf76c88392ebb9c84a9189f2908fbfa
authorStephen Nielson <snielson@discoverandchange.com>
Sun, 7 Apr 2024 02:07:37 +0000 (6 22:07 -0400)
committerGitHub <noreply@github.com>
Sun, 7 Apr 2024 02:07:37 +0000 (6 22:07 -0400)
tree3e4728eaec9bba88a82908595e0a62866c79d9ba
parent51b92a5799f586046725777d29ad6de92e03fda2
Fixes #7319 ccda extra drug_unit list options (#7321)

* Fixes #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.
interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Model/CarecoordinationTable.php
src/Common/Command/CcdaImport.php
src/Common/Command/CcdaNewpatient.php
src/Common/Command/CcdaNewpatientImport.php
src/Common/Command/Trait/CommandLineDebugStylerTrait.php [new file with mode: 0644]
src/Services/Cda/CdaTemplateImportDispose.php