Overview

Namespaces

  • Azalea
    • Selenium
      • App
        • Charts
        • Components
        • Encounters
        • Home
        • Login
        • Main
        • Messages
        • Patients
        • Scheduler
      • Core
      • EHR
        • UI
          • Charts
          • Documents
          • Encounters
          • Home
          • Messaging
            • Folders
          • Patients
          • Payments
          • Precerts
          • Reports
          • Scheduler
          • Settings
            • General
              • Locations
              • Roles
              • Users
        • User
      • Login
        • UI
      • PHR
        • UI
        • User
      • Toolkit
        • Exception
        • Validation
    • Util
  • None
  • tests
    • integration
      • barebones
        • controllers
          • charts
          • patients
          • system
        • models
          • billing
          • encounters
          • examples
          • messaging
          • rcm
          • system
    • unit
      • barebones
        • lib
        • utilities
          • calculations

Classes

  • AddPatientTest
  • Azalea\Selenium\App\ApplicationTestCase
  • Azalea\Selenium\App\Charts\Chart
  • Azalea\Selenium\App\Charts\ChartAssessment
  • Azalea\Selenium\App\Charts\ChartDiagnosisCodes
  • Azalea\Selenium\App\Charts\ChartListControls
  • Azalea\Selenium\App\Charts\ChartObjective
  • Azalea\Selenium\App\Charts\ChartProcedureCodes
  • Azalea\Selenium\App\Charts\Charts
  • Azalea\Selenium\App\Charts\ChartSubjective
  • Azalea\Selenium\App\Components\CodeLookup
  • Azalea\Selenium\App\Components\CollectionGrid
  • Azalea\Selenium\App\Components\Popup
  • Azalea\Selenium\App\Customers
  • Azalea\Selenium\App\Encounters\Encounter
  • Azalea\Selenium\App\Encounters\EncounterDiagnosisCodes
  • Azalea\Selenium\App\Encounters\EncounterLedger
  • Azalea\Selenium\App\Encounters\EncounterProcedureCodes
  • Azalea\Selenium\App\Encounters\Encounters
  • Azalea\Selenium\App\Home\Home
  • Azalea\Selenium\App\Login\LoginPage
  • Azalea\Selenium\App\Main\MainSearch
  • Azalea\Selenium\App\Messages\Messages
  • Azalea\Selenium\App\Patients
  • Azalea\Selenium\App\Patients\Patient
  • Azalea\Selenium\App\Patients\PatientCharts
  • Azalea\Selenium\App\Patients\PatientEditDemographicsForm
  • Azalea\Selenium\App\Patients\PatientEncounters
  • Azalea\Selenium\App\Patients\PatientFaker
  • Azalea\Selenium\App\Patients\PatientList
  • Azalea\Selenium\App\Patients\PatientListFilters
  • Azalea\Selenium\App\Patients\Patients
  • Azalea\Selenium\App\Providers
  • Azalea\Selenium\App\Scheduler\AppointmentPopup
  • Azalea\Selenium\App\Scheduler\Scheduler
  • Azalea\Selenium\App\Users
  • Azalea\Selenium\Core\BaseTestCase
  • Azalea\Selenium\Core\Browser
  • Azalea\Selenium\Core\Page
  • Azalea\Selenium\Core\User
  • Azalea\Selenium\Core\View
  • Azalea\Selenium\Core\WebDriver
  • Azalea\Selenium\EHR\Application
  • Azalea\Selenium\EHR\EHR
  • Azalea\Selenium\EHR\EHRTestCase
  • Azalea\Selenium\EHR\EMR
  • Azalea\Selenium\EHR\PM
  • Azalea\Selenium\EHR\UI\Charts\ChartsList
  • Azalea\Selenium\EHR\UI\Charts\ChartsListRow
  • Azalea\Selenium\EHR\UI\Charts\ChartsListTab
  • Azalea\Selenium\EHR\UI\CheckboxGrid
  • Azalea\Selenium\EHR\UI\Documents\Documents
  • Azalea\Selenium\EHR\UI\Documents\DocumentsTab
  • Azalea\Selenium\EHR\UI\Encounters\Encounters
  • Azalea\Selenium\EHR\UI\Encounters\EncountersTab
  • Azalea\Selenium\EHR\UI\Grid
  • Azalea\Selenium\EHR\UI\GridRow
  • Azalea\Selenium\EHR\UI\Heading
  • Azalea\Selenium\EHR\UI\Home\Home
  • Azalea\Selenium\EHR\UI\Home\OfficeOverview
  • Azalea\Selenium\EHR\UI\LockScreen
  • Azalea\Selenium\EHR\UI\MainMenu
  • Azalea\Selenium\EHR\UI\MainSearch
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingAllMail
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingInbox
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingSentMail
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingStarred
  • Azalea\Selenium\EHR\UI\Messaging\Folders\MessagingTrashed
  • Azalea\Selenium\EHR\UI\Messaging\Messaging
  • Azalea\Selenium\EHR\UI\Messaging\MessagingCompose
  • Azalea\Selenium\EHR\UI\Messaging\MessagingFolder
  • Azalea\Selenium\EHR\UI\Messaging\MessagingMenu
  • Azalea\Selenium\EHR\UI\Messaging\MessagingReply
  • Azalea\Selenium\EHR\UI\Messaging\MessagingTab
  • Azalea\Selenium\EHR\UI\Messaging\MessagingViewMessage
  • Azalea\Selenium\EHR\UI\Module
  • Azalea\Selenium\EHR\UI\Notifications
  • Azalea\Selenium\EHR\UI\Patients\ChartsListRow
  • Azalea\Selenium\EHR\UI\Patients\ChartsTab
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergies
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergyEditPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientAllergySearchPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientAppointments
  • Azalea\Selenium\EHR\UI\Patients\PatientAssembly
  • Azalea\Selenium\EHR\UI\Patients\PatientCharts
  • Azalea\Selenium\EHR\UI\Patients\PatientChartsList
  • Azalea\Selenium\EHR\UI\Patients\PatientComments
  • Azalea\Selenium\EHR\UI\Patients\PatientDashboard
  • Azalea\Selenium\EHR\UI\Patients\PatientDemographics
  • Azalea\Selenium\EHR\UI\Patients\PatientDemographicsPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientDocuments
  • Azalea\Selenium\EHR\UI\Patients\PatientDocumentsList
  • Azalea\Selenium\EHR\UI\Patients\PatientEncounters
  • Azalea\Selenium\EHR\UI\Patients\PatientEncountersAddPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientHandouts
  • Azalea\Selenium\EHR\UI\Patients\PatientInsurance
  • Azalea\Selenium\EHR\UI\Patients\PatientLabOrders
  • Azalea\Selenium\EHR\UI\Patients\PatientLabOrdersAddView
  • Azalea\Selenium\EHR\UI\Patients\PatientMedications
  • Azalea\Selenium\EHR\UI\Patients\PatientPortal
  • Azalea\Selenium\EHR\UI\Patients\PatientRecalls
  • Azalea\Selenium\EHR\UI\Patients\Patients
  • Azalea\Selenium\EHR\UI\Patients\PatientSearchPopup
  • Azalea\Selenium\EHR\UI\Patients\PatientSection
  • Azalea\Selenium\EHR\UI\Patients\PatientSidebar
  • Azalea\Selenium\EHR\UI\Patients\PatientsList
  • Azalea\Selenium\EHR\UI\Patients\PatientsListRow
  • Azalea\Selenium\EHR\UI\Patients\PatientsListTab
  • Azalea\Selenium\EHR\UI\Patients\PatientsTab
  • Azalea\Selenium\EHR\UI\Patients\PatientTab
  • Azalea\Selenium\EHR\UI\Patients\PatientTasks
  • Azalea\Selenium\EHR\UI\Patients\PatientVitals
  • Azalea\Selenium\EHR\UI\Patients\PatientVitalsAddPopup
  • Azalea\Selenium\EHR\UI\Payments\EDIRemitsTab
  • Azalea\Selenium\EHR\UI\Payments\Payments
  • Azalea\Selenium\EHR\UI\Payments\PaymentsTab
  • Azalea\Selenium\EHR\UI\Payments\UnappliedPaymentsTab
  • Azalea\Selenium\EHR\UI\Popup
  • Azalea\Selenium\EHR\UI\PopupConfirm
  • Azalea\Selenium\EHR\UI\PopupError
  • Azalea\Selenium\EHR\UI\Precerts\Precerts
  • Azalea\Selenium\EHR\UI\Precerts\PrecertsTab
  • Azalea\Selenium\EHR\UI\Reports\AuditLogTab
  • Azalea\Selenium\EHR\UI\Reports\ClinicalQualityMeasuresTab
  • Azalea\Selenium\EHR\UI\Reports\ClinicalQualityMeasuresValueSetsTab
  • Azalea\Selenium\EHR\UI\Reports\MeaningfulUseTab
  • Azalea\Selenium\EHR\UI\Reports\PatientStatementsTab
  • Azalea\Selenium\EHR\UI\Reports\RecordsTab
  • Azalea\Selenium\EHR\UI\Reports\Reports
  • Azalea\Selenium\EHR\UI\Reports\ReportsQueueTab
  • Azalea\Selenium\EHR\UI\Reports\ReportsTab
  • Azalea\Selenium\EHR\UI\Reports\SystemStatisticsTab
  • Azalea\Selenium\EHR\UI\Scheduler\AppointmentsRequestsTab
  • Azalea\Selenium\EHR\UI\Scheduler\AppointmentsTab
  • Azalea\Selenium\EHR\UI\Scheduler\RecallsTab
  • Azalea\Selenium\EHR\UI\Scheduler\Scheduler
  • Azalea\Selenium\EHR\UI\Scheduler\SchedulerTab
  • Azalea\Selenium\EHR\UI\SelectDropdown
  • Azalea\Selenium\EHR\UI\Settings\BillingTab
  • Azalea\Selenium\EHR\UI\Settings\General\GroupsSection
  • Azalea\Selenium\EHR\UI\Settings\General\HandoutsSection
  • Azalea\Selenium\EHR\UI\Settings\General\InsurancesSection
  • Azalea\Selenium\EHR\UI\Settings\General\Locations\LocationRow
  • Azalea\Selenium\EHR\UI\Settings\General\Locations\LocationsList
  • Azalea\Selenium\EHR\UI\Settings\General\LocationsSection
  • Azalea\Selenium\EHR\UI\Settings\General\ProvidersSection
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RoleCreatePopup
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RoleRow
  • Azalea\Selenium\EHR\UI\Settings\General\Roles\RolesList
  • Azalea\Selenium\EHR\UI\Settings\General\RolesSection
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UserDetails
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UserRow
  • Azalea\Selenium\EHR\UI\Settings\General\Users\UsersList
  • Azalea\Selenium\EHR\UI\Settings\General\UsersSection
  • Azalea\Selenium\EHR\UI\Settings\GeneralTab
  • Azalea\Selenium\EHR\UI\Settings\InventoryTab
  • Azalea\Selenium\EHR\UI\Settings\MedicalTab
  • Azalea\Selenium\EHR\UI\Settings\PatientTab
  • Azalea\Selenium\EHR\UI\Settings\SchedulerTab
  • Azalea\Selenium\EHR\UI\Settings\Settings
  • Azalea\Selenium\EHR\UI\TabContainer
  • Azalea\Selenium\EHR\UI\TabPanel
  • Azalea\Selenium\EHR\UI\UserAccountMenu
  • Azalea\Selenium\EHR\User\EHRAdminTestingUser
  • Azalea\Selenium\EHR\User\EMRAdminTestingUser
  • Azalea\Selenium\EHR\User\PMAdminTestingUser
  • Azalea\Selenium\Login\LoginPage
  • Azalea\Selenium\Login\LoginTestCase
  • Azalea\Selenium\Login\ResetPasswordPage
  • Azalea\Selenium\Login\UI\LoginForm
  • Azalea\Selenium\Login\UI\ResetPasswordForm
  • Azalea\Selenium\PHR\Application
  • Azalea\Selenium\PHR\PHR
  • Azalea\Selenium\PHR\PHRTestCase
  • Azalea\Selenium\PHR\UI\PopupError
  • Azalea\Selenium\PHR\User\PHRTestingUser
  • Azalea\Selenium\Toolkit\Dom
  • Azalea\Selenium\Toolkit\NestedHashMap
  • Azalea\Selenium\Toolkit\ResourceLoader
  • Azalea\Selenium\Toolkit\SauceLabsTestCase
  • Azalea\Selenium\Toolkit\SeleniumTestCase
  • Azalea\Selenium\Toolkit\TestCase
  • Azalea\Selenium\Toolkit\Validation\ElementExists
  • Azalea\Selenium\Toolkit\Validation\ElementHasText
  • Azalea\Selenium\Toolkit\Validation\ElementVisible
  • Azalea\Selenium\Toolkit\Validation\PageTitle
  • Azalea\Selenium\Toolkit\Validation\ValidationRule
  • Azalea\Selenium\Toolkit\Validation\ViewExists
  • Azalea\Selenium\Toolkit\Validation\WebDriverValidator
  • Azalea\Selenium\Toolkit\View
  • Azalea\Util\Config
  • Azalea\Util\Debug
  • Azalea_Sniffs_WhiteSpace_ScopeClosingBraceSniff
  • BaseModelTestCase
  • ChartAssessmentTest
  • ChartCustomFieldBehaviorsTest
  • ChartDiagnosisTest
  • ChartEncounterDiagnosisTest
  • ChartEncounterProceduresTest
  • ChartInventoryTest
  • ChartObjectiveTest
  • ChartProblemHistoryTest
  • ChartProceduresTest
  • ChartProviderAccessTest
  • ChartSigningTest
  • ChartsListProviderAccessTest
  • ChartSmokingStatusTest
  • ChartSubjectiveTest
  • ConfigTest
  • EncounterClaimsTest
  • EncounterDemographicsTest
  • EncounterDiagnosisTest
  • EncounterGuarantorTest
  • EncounterLedgerTest
  • EncounterProceduresTest
  • ExampleTestCase
  • MessagesLabelsTest
  • PageTest
  • PatentsListTest
  • PathManagerTest
  • PatientAccountSummaryTest
  • PatientBillingActionsTest
  • PatientCommentsTest
  • PatientDashboardAlertsTest
  • PatientDashboardLinkedPatientsTest
  • PatientDemographicsEditTest
  • PatientDocumentsTest
  • PatientPopupCommentsTest
  • PatientProviderAccessTest
  • PatientsListProviderAccessTest
  • PermissionsTest
  • PopupTest
  • SchedulerBlocksTest
  • SchedulerInsuranceBlocksTest
  • SimpePage
  • SimpleView
  • SimpleViewWithArgs
  • SimpleViewWithNoHash
  • TestCase
  • tests\integration\barebones\BarebonesConstants
  • tests\integration\barebones\BarebonesTestCase
  • tests\integration\barebones\controllers\charts\ChartsControllerTest
  • tests\integration\barebones\controllers\patients\PatientsPopupAlertsControllerTest
  • tests\integration\barebones\controllers\system\ClientsControllerTest
  • tests\integration\barebones\models\billing\ClientsFeeSchedulesMapModelTest
  • tests\integration\barebones\models\encounters\AppointmentModelTest
  • tests\integration\barebones\models\encounters\CollectionTest
  • tests\integration\barebones\models\encounters\ConcurrentCollectionTest
  • tests\integration\barebones\models\encounters\EncounterModelTest
  • tests\integration\barebones\models\encounters\EncountersIncompleteReasonModelTest
  • tests\integration\barebones\models\encounters\ModelQueryBuilderTest
  • tests\integration\barebones\models\examples\ExampleModelBasicsTest
  • tests\integration\barebones\models\examples\ExamplesGenericControllerTest
  • tests\integration\barebones\models\messaging\MessageModelTest
  • tests\integration\barebones\models\rcm\RCMStatsGeneralControllerTests
  • tests\integration\barebones\models\system\ClientModelTest
  • tests\unit\barebones\lib\BarebonesTestCase
  • tests\unit\barebones\utilities\ArraysTest
  • tests\unit\barebones\utilities\calculations\PovertyLineTest
  • tests\unit\barebones\utilities\MathTest
  • UrlManagerTest
  • VariantRulesTest
  • VariantsManagerTest
  • ViewTest
  • WebDriverMock

Exceptions

  • Azalea\Selenium\Toolkit\Exception\ElementNotFoundException
  • Azalea\Selenium\Toolkit\Exception\InvalidPageException
  • Azalea\Selenium\Toolkit\Exception\TimeoutException
  • Overview
  • Namespace
  • Class
  1: <?php
  2: use Azalea\Selenium\App\ApplicationTestCase;
  3: use Azalea\Selenium\App\Customers;
  4: use Azalea\Selenium\App\Patients;
  5: use Azalea\Selenium\App\Providers;
  6: use Azalea\Selenium\App\Users;
  7: 
  8: class PatientsListProviderAccessTest extends ApplicationTestCase
  9: {
 10:     public function supportsCustomer($cus_id)
 11:     {
 12:         // Azalea EHR customer only
 13:         return (Customers::isEhrCustomer($cus_id));
 14:     }
 15: 
 16:     /**
 17:      * Summary:
 18:      * An administrator user with all patient provider access can see all
 19:      * patients in the patient list and search for patients belonging to
 20:      * each provider.
 21:      */
 22:     public function testAdminWithAccessToAllProviders()
 23:     {
 24:         $app = $this->login(Users::RUTH_BELL, Users::PASSWORD);
 25: 
 26:         // Go the to the patients list
 27:         $app->patients->navigate()->verifyAndWait();
 28:         $patientsList = $app->patients->list;
 29:         $this->waitForAjax();
 30: 
 31:         /**
 32:          * Expected results:
 33:          *  a. There are 10 pateints in the list.
 34:          */
 35:         $this->spinWait(function () use ($patientsList) {
 36:             $this->assertEquals(10, $patientsList->grid->count());
 37:             return true;
 38:         });
 39: 
 40:         // Search for Clement Bradtke
 41:         $app->patients->search->searchFor("Clement Bradtke");
 42: 
 43:         /**
 44:          * Expected results:
 45:          *  a. Patient appears in the list.
 46:          */
 47:         $app->patients->list->grid->waitForModelId(265891);
 48: 
 49:         // Reset filters
 50:         $this->resetPatientFilters($app);
 51: 
 52:         // Search for Rashawn Crist
 53:         $app->patients->search->searchFor("Rashawn Crist");
 54: 
 55:         /**
 56:          * Expected results:
 57:          *  a. Patient appears in the list.
 58:          */
 59:         $app->patients->list->grid->waitForModelId(265900);
 60: 
 61:         // Reset filters
 62:         $this->resetPatientFilters($app);
 63: 
 64:         // Search for Pearline Gottlieb
 65:         $app->patients->search->searchFor("Pearline Gottlieb");
 66: 
 67:         /**
 68:          * Expected results:
 69:          *  a. Patient appears in the list.
 70:          */
 71:         $app->patients->list->grid->waitForModelId(265896);
 72: 
 73:         // Reset filters
 74:         $this->resetPatientFilters($app);
 75: 
 76:         // Search for Agnes Schimmel
 77:         $app->patients->search->searchFor("Agnes Schimmel");
 78: 
 79:         /**
 80:          * Expected results:
 81:          *  a. Patient appears in the list.
 82:          */
 83:         $app->patients->list->grid->waitForModelId(265892);
 84: 
 85:         // Reset filters
 86:         $this->resetPatientFilters($app);
 87: 
 88:         $this->assertNoErrorPopups();
 89:     }
 90: 
 91:     /**
 92:      * Summary:
 93:      * A user with patient provider access to a single provider can see only
 94:      * those patients in the patient list that have that rendering provider
 95:      * and can only search for those patients.
 96:      */
 97:     public function testUserWithAccessToOneProvider()
 98:     {
 99:         $app = $this->login(Users::THEO_FIFIELD, Users::PASSWORD);
100: 
101:         // Go the to the patients list
102:         $app->patients->navigate()->verifyAndWait();
103:         $patientsList = $app->patients->list;
104:         $this->waitForAjax();
105: 
106:         /**
107:          * Expected results:
108:          *  a. There are 5 pateints in the list.
109:          *  b. All 5 patients have Berry Carter, D.D.S. as their provider.
110:          */
111:         $this->spinWait(function () use ($patientsList) {
112:             $this->assertEquals(5, $patientsList->grid->count());
113:             $patientsList->grid->assertCanSee("Berry Carter");
114:             $patientsList->grid->assertCanNotSee("Lacey McClure");
115:             $patientsList->grid->assertCanNotSee("Cordelia Wolff");
116:             $patientsList->grid->assertCanNotSee("Roma Wilkinson");
117:             return true;
118:         });
119: 
120:         // Search for Crist, Rashawn
121:         $app->patients->search->searchFor("Crist, Rashawn");
122: 
123:         /**
124:          * Expected results:
125:          *  a. Patient appears in the list.
126:          */
127:         $app->patients->list->grid->waitForModelId(265900);
128: 
129:         // Reset filters
130:         $this->resetPatientFilters($app);
131: 
132:         // Search for Agnes Schimmel
133:         $app->patients->search->searchFor("Agnes Schimmel");
134: 
135:         /**
136:          * Expected results:
137:          *  a. No results appear in the patient list.
138:          */
139:         $app->patients->list->grid->waitForRowCount(0);
140: 
141:         // Reset filters
142:         $this->resetPatientFilters($app);
143: 
144:         // Search for Patience Jaskolski
145:         $app->patients->search->searchFor("Patience Jaskolski");
146: 
147:         /**
148:          * Expected results:
149:          *  a. No results appear in the patient list.
150:          */
151:         $app->patients->list->grid->waitForRowCount(0);
152: 
153:         // Reset filters
154:         $this->resetPatientFilters($app);
155: 
156:         // Search for Pearline Gottlieb
157:         $app->patients->search->searchFor("Pearline Gottlieb");
158: 
159:         /**
160:          * Expected results:
161:          *  a. No results appear in the patient list.
162:          */
163:         $app->patients->list->grid->waitForRowCount(0);
164: 
165:         // Reset filters
166:         $this->resetPatientFilters($app);
167: 
168:         // Search for Clement Bradtke
169:         $app->patients->search->searchFor("Clement Bradtke");
170: 
171:         /**
172:          * Expected results:
173:          *  a. No results appear in the patient list.
174:          */
175:         $app->patients->list->grid->waitForRowCount(0);
176: 
177:         // Reset filters
178:         $this->resetPatientFilters($app);
179: 
180:         // Filter by Provider Berry Carter
181:         $app->patients->list->filters->byRenderingProvider(3567)->go();
182: 
183:         /**
184:          * Expected results:
185:          *  a. Patient list shows 5 patients with Rendering Provider
186:          *     Berry Carter.
187:          */
188:         $this->spinWait(function () use ($patientsList) {
189:             $this->assertEquals(5, $patientsList->grid->count());
190:             $patientsList->grid->assertCanSee("Berry Carter");
191:             $patientsList->grid->assertCanNotSee("Lacey McClure");
192:             $patientsList->grid->assertCanNotSee("Cordelia Wolff");
193:             $patientsList->grid->assertCanNotSee("Roma Wilkinson");
194:             return true;
195:         });
196: 
197:         $this->assertNoErrorPopups();
198:     }
199: 
200:     /**
201:      * Summary:
202:      * A user with patient provider access to multiple providers can see only
203:      * those patients in the patient list that have those rendering providers
204:      * and can only search for those patients.
205:      */
206:     public function testUserWithAccessToMultipleProviders()
207:     {
208:         $app = $this->login(Users::KATHERINE_IZZO, Users::PASSWORD);
209: 
210:         // Go the to the patients list
211:         $app->patients->navigate()->verifyAndWait();
212:         $patientsList = $app->patients->list;
213:         $this->waitForAjax();
214: 
215:         /**
216:          * Expected results:
217:          *  a. There are 3 pateints in the list.
218:          *  b. The patients have either Cordelia Wolff or Roma Wilkinson
219:          *     as their Rendering Provider.
220:          */
221:         $this->spinWait(function () use ($patientsList) {
222:             $this->assertEquals(3, $patientsList->grid->count());
223:             $patientsList->grid->assertCanNotSee("Berry Carter");
224:             $patientsList->grid->assertCanNotSee("Lacey McClure");
225:             $patientsList->grid->assertCanSee("Cordelia Wolff");
226:             $patientsList->grid->assertCanSee("Roma Wilkinson");
227:             return true;
228:         });
229: 
230:         // Search for Pearline Gottlieb
231:         $app->patients->search->searchFor("Pearline Gottlieb");
232: 
233:         /**
234:          * Expected results:
235:          *  a. Patient appears in the list.
236:          */
237:         $app->patients->list->grid->waitForModelId(265896);
238: 
239:         // Reset filters
240:         $this->resetPatientFilters($app);
241: 
242: 
243:         // Search for Agnes Schimmel
244:         $app->patients->search->searchFor("Agnes Schimmel");
245: 
246:         /**
247:          * Expected results:
248:          *  a. Patient appears in the list.
249:          */
250:         $app->patients->list->grid->waitForModelId(265892);
251: 
252:         // Reset filters
253:         $this->resetPatientFilters($app);
254: 
255:         // Search for Clement Bradtke
256:         $app->patients->search->searchFor("Clement Bradtke");
257: 
258:         /**
259:          * Expected results:
260:          *  a. No results appear in the patient list.
261:          */
262:         $app->patients->list->grid->waitForRowCount(0);
263: 
264:         // Reset filters
265:         $this->resetPatientFilters($app);
266: 
267:         // Search for Rashawn Crist
268:         $app->patients->search->searchFor("Rashawn Crist");
269: 
270:         /**
271:          * Expected results:
272:          *  a. No results appear in the patient list.
273:          */
274:         $app->patients->list->grid->waitForRowCount(0);
275: 
276:         // Reset filters
277:         $this->resetPatientFilters($app);
278: 
279:         // Filter by Provider Roma Wilkinson
280:         $app->patients->list->filters->byRenderingProvider(3568)->go();
281: 
282:         /**
283:          * Expected results:
284:          *  a. Patient list shows 2 patients with Rendering Provider
285:          *     Roma Wilkinson.
286:          */
287:         $this->spinWait(function () use ($patientsList) {
288:             $this->assertEquals(2, $patientsList->grid->count());
289:             $patientsList->grid->assertCanNotSee("Berry Carter");
290:             $patientsList->grid->assertCanNotSee("Lacey McClure");
291:             $patientsList->grid->assertCanNotSee("Cordelia Wolff");
292:             $patientsList->grid->assertCanSee("Roma Wilkinson");
293:             return true;
294:         });
295: 
296:         // Filter by Provider Cordelia Wolff
297:         $app->patients->list->filters->byRenderingProvider(3570)->go();
298: 
299:         /**
300:          * Expected results:
301:          *  a. Patient list shows 1 patient with Rendering Provider
302:          *     Cordelia Wolff.
303:          */
304:         $this->spinWait(function () use ($patientsList) {
305:             $this->assertEquals(1, $patientsList->grid->count());
306:             $patientsList->grid->assertCanNotSee("Berry Carter");
307:             $patientsList->grid->assertCanNotSee("Lacey McClure");
308:             $patientsList->grid->assertCanSee("Cordelia Wolff");
309:             $patientsList->grid->assertCanNotSee("Roma Wilkinson");
310:             return true;
311:         });
312: 
313:         $this->assertNoErrorPopups();
314:     }
315: 
316:     /**
317:      * Resets the patient filter.
318:      */
319:     protected function resetPatientFilters($app)
320:     {
321:         // Reset filters
322:         $app->patients->list->filters->reset();
323:         $this->spinWait(function() use ($app) {
324:             return ($app->patients->list->grid->count() > 1);
325:         });
326:     }
327: }
328: 
329: ?>
API documentation generated by ApiGen