1: <?php
2: namespace Azalea\Selenium\EHR\UI\Charts;
3:
4: use Azalea\Selenium\EHR\UI\Patients\PatientTab;
5:
6: class ChartsListRow extends \Azalea\Selenium\Core\View
7: {
8: protected static $gridSelector = "#chart-list-tab .awa-ui-grid";
9:
10: 11: 12:
13: public function __construct($driver, $element)
14: {
15: parent::__construct($driver);
16: $this->row = $element;
17: }
18:
19: 20: 21: 22:
23: public function click()
24: {
25: $this->row->click();
26: $this->driver->wait(4);
27: return null;
28:
29: }
30:
31: 32: 33: 34:
35: public function clickView()
36: {
37: $this->byCss(self::$gridSelector.' button[data-button-class="view"]')
38: ->click();
39: $this->driver->wait(4);
40: return null;
41:
42: }
43:
44: 45: 46: 47:
48: public function getIndex()
49: {
50: return $this->row->attribute("data-grid-row");
51: }
52:
53: 54: 55: 56:
57: public function getEncounterId()
58: {
59: return $this->row->attribute("data-model-id");
60: }
61:
62: 63: 64: 65:
66: public function isUnsigned()
67: {
68: return (strpos($this->row->attribute("class"), "incomplete") !== false);
69: }
70:
71: 72: 73: 74:
75: public function toBeReviewed()
76: {
77: return (strpos($this->row->attribute("class"), "tobereviewed") !== false);
78: }
79: }