fix: querying empty npi in AllergyIntoleranceService (#6931)
commitfa49e60d9764d77d6b0d42b58d16e0e86c991bc8
authorstephen waite <stephen.waite@cmsvt.com>
Thu, 9 Nov 2023 13:17:23 +0000 (9 08:17 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2023 13:17:23 +0000 (9 08:17 -0500)
treeb67bbee1ec116810388a1694cb89e037344dea04
parent598ad3e9c5c6db2e94a3204cfb753d87fcf522a5
fix: querying empty npi in AllergyIntoleranceService (#6931)

* fix: add string search field checking for empty user

* add comment

* adjust phpunit config

* add a user to the allergy intolerance json fixture

* select authorized users to match on allergy

* sty

* upgrade all allergies with an empty user field

* ensure active user

* fix allergy conundrum

* clean up from review

* remove unnecc changes to sql upgrade
12 files changed:
phpunit.xml
sql/7_0_1-to-7_0_2_upgrade.sql
src/Services/AllergyIntoleranceService.php
src/Services/FHIR/FhirAllergyIntoleranceService.php
src/Services/FHIR/FhirAppointmentService.php
src/Services/FHIR/FhirDiagnosticReportService.php
src/Services/FHIR/FhirPatientService.php
src/Services/FHIR/Organization/FhirOrganizationFacilityService.php
src/Services/FHIR/Organization/FhirOrganizationInsuranceService.php
src/Services/FHIR/UtilsService.php
tests/Tests/Fixtures/allergy-intolerance.json
tests/Tests/Services/FHIR/FhirAllergyIntoleranceServiceQueryTest.php