1: <?php
2: namespace Azalea\Selenium\EHR\UI\Patients;
3:
4: class PatientTab extends \Azalea\Selenium\EHR\UI\TabPanel
5: {
6:
7: protected static $hash = "/patients/p/{pat_id}/dash";
8:
9: protected static $selector = "#patient{pat_id}";
10: protected static $title = "Patient Record";
11: protected static $title_selector = ".label-title";
12:
13: 14: 15:
16: public function __construct($driver, $args)
17: {
18: if (!isset($args['pat_id'])) {
19: throw new \InvalidArgumentException("Required View Arg: pat_id");
20: }
21: return parent::__construct($driver, $args);
22: }
23:
24: 25: 26: 27:
28: public function getSelector($args = array())
29: {
30: return parent::getSelector(array("pat_id" => $this->id));
31: }
32:
33: 34: 35: 36:
37: public function getSidebar()
38: {
39: return $this->uiSidebar;
40: }
41:
42: 43: 44: 45:
46: public function verify($args = array())
47: {
48: $this->id = $args['pat_id'];
49: $this->uiSidebar = new PatientSidebar($this, $args);
50: return parent::verify($args);
51: }
52: }