1: <?php
2: namespace Azalea\Selenium\EHR\UI\Patients;
3:
4: class PatientCharts extends PatientSection
5: {
6:
7: protected static $hash = "/patients/p/{pat_id}/chart_list";
8:
9: protected static $selectorSection = ".patient-PatientChartsView";
10:
11: 12: 13: 14:
15: public function getChartList()
16: {
17: return $this->uiChartList;
18: }
19:
20: 21: 22: 23:
24: public function clickCheckAll()
25: {
26: $this->byCss($this->getSelectorSection().' [name="pat_chart_chk_all"]')
27: ->click();
28: }
29:
30: 31: 32: 33:
34: public function isPrintButtonVisible()
35: {
36: return $this->displayed($this->getSelectorSection()." button.print-charts");
37: }
38:
39: 40: 41: 42:
43: public function isAssembleButtonVisible()
44: {
45: return $this->displayed($this->getSelectorSection()." button.assemble-charts");
46: }
47:
48: 49: 50: 51:
52: public function verify($args = array())
53: {
54: if (parent::verify($args)) {
55: $this->byCss($this->getSelectorSection());
56: $this->byCss($this->getSelectorSection()." button.select-charts");
57:
58: $this->uiChartList = new PatientChartsList($this, $args);
59:
60: return true;
61: }
62:
63: return false;
64: }
65: }