4 * OnsiteActivityViewListView.tpl.php
7 * @link https://www.open-emr.org
8 * @author Jerry Padgett <sjpadgett@gmail.com>
9 * @copyright Copyright (c) 2016-2023 Jerry Padgett <sjpadgett@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 $this->assign('title', xlt('Portal') . ' | ' . xlt('Activity'));
14 $this->assign('nav', 'onsiteactivityviews');
16 use OpenEMR\Common\Acl\AclMain
;
18 if (!AclMain
::aclCheckCore('patientportal', 'portal')) {
19 die(xlt("Unauthorized"));
22 $this->display('_FormsHeader.tpl.php');
23 echo "<script>var cuser='" . $this->cuser
. "';</script>";
26 $LAB.script("<?php echo $GLOBALS['web_root']; ?>/portal/patient/scripts/app/onsiteactivityviews.js?v=<?php echo $GLOBALS['v_js_includes']; ?>").wait(function(){
30 setTimeout(function(){
31 if (!actpage
.isInitialized
) actpage
.init();
36 <div
class="container mt-5">
39 <i
class="icon-th-list"></i
><?php
echo xlt('Onsite Patient Activities'); ?
>
40 <span id
="loader" class="loader progress progress-striped active"><span
class="progress-bar"></span
></span
>
41 <div
class="col-sm-3 col-md-3 float-right">
42 <form
class="navbar-form" role
="search">
43 <div
class="input-group">
44 <input type
="text" class="form-control" placeholder
="<?php echo xla('Search'); ?>" name
="srch-term" id
="srch-term" />
45 <div
class="input-group-append">
46 <button
class="btn btn-secondary" type
="submit"><i
class="fas fa-search"></i
></button
>
52 <!-- underscore template
for the collection
-->
53 <script type
="text/template" id
="onsiteActivityViewCollectionTemplate">
54 <table
class="collection table table-sm table-bordered table-hover">
57 <th id
="header_Date"><?php
echo xlt('Date')?
><%
if (actpage
.orderBy
== 'Date') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
58 <th id
="header_PatientId"><?php
echo xlt('Patient Id')?
><%
if (actpage
.orderBy
== 'PatientId') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
59 <th id
="header_Fname"><?php
echo xlt('First{{Name}}')?
><%
if (actpage
.orderBy
== 'Fname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
60 <th id
="header_Mname"><?php
echo xlt('Middle{{Name}}')?
><%
if (actpage
.orderBy
== 'Mname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
61 <th id
="header_Lname"><?php
echo xlt('Last{{Name}}')?
><%
if (actpage
.orderBy
== 'Lname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
62 <th id
="header_Narrative"><?php
echo xlt('Narrative')?
><%
if (actpage
.orderBy
== 'Narrative') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
63 <th id
="header_Activity"><?php
echo xlt('Activity')?
><%
if (actpage
.orderBy
== 'Activity') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
64 <th id
="header_RequireAudit"><?php
echo xlt('Require Audit')?
><%
if (actpage
.orderBy
== 'RequireAudit') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
65 <th id
="header_PendingAction"><?php
echo xlt('Pending Action')?
><%
if (actpage
.orderBy
== 'PendingAction') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
66 <th id
="header_Status"><?php
echo xlt('Status')?
><%
if (actpage
.orderBy
== 'Status') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
67 <!-- UNCOMMENT TO SHOW ADDITIONAL COLUMNS
- Leave in place
for future
use
68 <th id
="header_Id">Id
<%
if (actpage
.orderBy
== 'Id') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
69 <th id
="header_ActionTaken">Action Taken
<%
if (actpage
.orderBy
== 'ActionTaken') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
70 <th id
="header_TableAction">Table Action
<%
if (actpage
.orderBy
== 'TableAction') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
71 <th id
="header_TableArgs">Table Args
<%
if (actpage
.orderBy
== 'TableArgs') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
72 <th id
="header_ActionUser">Action User
<%
if (actpage
.orderBy
== 'ActionUser') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
73 <th id
="header_ActionTakenTime">Action Taken Time
<%
if (actpage
.orderBy
== 'ActionTakenTime') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
74 <th id
="header_Checksum">Checksum
<%
if (actpage
.orderBy
== 'Checksum') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
75 <th id
="header_Title">Title
<%
if (actpage
.orderBy
== 'Title') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
76 <th id
="header_Dob">Dob
<%
if (actpage
.orderBy
== 'Dob') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
77 <th id
="header_Ss">Ss
<%
if (actpage
.orderBy
== 'Ss') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
78 <th id
="header_Street">Street
<%
if (actpage
.orderBy
== 'Street') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
79 <th id
="header_PostalCode">Postal Code
<%
if (actpage
.orderBy
== 'PostalCode') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
80 <th id
="header_City">City
<%
if (actpage
.orderBy
== 'City') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
81 <th id
="header_State">State
<%
if (actpage
.orderBy
== 'State') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
82 <th id
="header_Referrerid">Referrerid
<%
if (actpage
.orderBy
== 'Referrerid') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
83 <th id
="header_Providerid">Providerid
<%
if (actpage
.orderBy
== 'Providerid') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
84 <th id
="header_RefProviderid">Ref Providerid
<%
if (actpage
.orderBy
== 'RefProviderid') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
85 <th id
="header_Pubpid">Pubpid
<%
if (actpage
.orderBy
== 'Pubpid') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
86 <th id
="header_CareTeam">Care Team
<%
if (actpage
.orderBy
== 'CareTeam') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
87 <th id
="header_Username">Username
<%
if (actpage
.orderBy
== 'Username') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
88 <th id
="header_Authorized">Authorized
<%
if (actpage
.orderBy
== 'Authorized') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
89 <th id
="header_Ufname">Ufname
<%
if (actpage
.orderBy
== 'Ufname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
90 <th id
="header_Umname">Umname
<%
if (actpage
.orderBy
== 'Umname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
91 <th id
="header_Ulname">Ulname
<%
if (actpage
.orderBy
== 'Ulname') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
92 <th id
="header_Facility">Facility
<%
if (actpage
.orderBy
== 'Facility') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
93 <th id
="header_Active">Active
<%
if (actpage
.orderBy
== 'Active') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
94 <th id
="header_Utitle">Utitle
<%
if (actpage
.orderBy
== 'Utitle') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
95 <th id
="header_PhysicianType">Physician Type
<%
if (actpage
.orderBy
== 'PhysicianType') { %
> <i
class='icon-arrow-<%= actpage.orderDesc ? 'up
' : 'down
' %>' /><%
} %
></th
>
100 <% items
.each(function(item
) { %
>
101 <tr id
="<%= _.escape(item.get('id')) %>">
102 <td
><%if
(item
.get('date')) { %
><%
= moment(app
.parseDate(item
.get('date'))).format('MMM D, YYYY h:mm A') %
><%
} else { %
>NULL<%
} %
></td
>
103 <td
><%
= _
.escape(item
.get('patientId') ||
'') %
></td
>
104 <td
><%
= _
.escape(item
.get('fname') ||
'') %
></td
>
105 <td
><%
= _
.escape(item
.get('mname') ||
'') %
></td
>
106 <td
><%
= _
.escape(item
.get('lname') ||
'') %
></td
>
107 <td
><%
= _
.escape(item
.get('narrative') ||
'') %
></td
>
108 <td
><%
= _
.escape(item
.get('activity') ||
'') %
></td
>
109 <td
><%
= _
.escape(item
.get('requireAudit') ||
'') %
></td
>
110 <td
><%
= _
.escape(item
.get('pendingAction') ||
'') %
></td
>
111 <td
><%
= _
.escape(item
.get('status') ||
'') %
></td
>
112 <!-- UNCOMMENT TO SHOW ADDITIONAL COLUMNS
- Leave in place
for future
use
113 <td
><%
= _
.escape(item
.get('id') ||
'') %
></td
>
114 <td
><%
= _
.escape(item
.get('actionTaken') ||
'') %
></td
>
115 <td
><%
= _
.escape(item
.get('tableAction') ||
'') %
></td
>
116 <td
><%
= _
.escape(item
.get('tableArgs') ||
'') %
></td
>
117 <td
><%
= _
.escape(item
.get('actionUser') ||
'') %
></td
>
118 <td
><%if
(item
.get('actionTakenTime')) { %
><%
= moment(app
.parseDate(item
.get('actionTakenTime'))).format('MMM D, YYYY h:mm A') %
><%
} else { %
>NULL<%
} %
></td
>
119 <td
><%
= _
.escape(item
.get('checksum') ||
'') %
></td
>
120 <td
><%
= _
.escape(item
.get('title') ||
'') %
></td
>
121 <td
><%if
(item
.get('dob')) { %
><%
= moment(app
.parseDate(item
.get('dob'))).format('MMM D, YYYY') %
><%
} else { %
>NULL<%
} %
></td
>
122 <td
><%
= _
.escape(item
.get('ss') ||
'') %
></td
>
123 <td
><%
= _
.escape(item
.get('street') ||
'') %
></td
>
124 <td
><%
= _
.escape(item
.get('postalCode') ||
'') %
></td
>
125 <td
><%
= _
.escape(item
.get('city') ||
'') %
></td
>
126 <td
><%
= _
.escape(item
.get('state') ||
'') %
></td
>
127 <td
><%
= _
.escape(item
.get('referrerid') ||
'') %
></td
>
128 <td
><%
= _
.escape(item
.get('providerid') ||
'') %
></td
>
129 <td
><%
= _
.escape(item
.get('refProviderid') ||
'') %
></td
>
130 <td
><%
= _
.escape(item
.get('pubpid') ||
'') %
></td
>
131 <td
><%
= _
.escape(item
.get('careTeam') ||
'') %
></td
>
132 <td
><%
= _
.escape(item
.get('username') ||
'') %
></td
>
133 <td
><%
= _
.escape(item
.get('authorized') ||
'') %
></td
>
134 <td
><%
= _
.escape(item
.get('ufname') ||
'') %
></td
>
135 <td
><%
= _
.escape(item
.get('umname') ||
'') %
></td
>
136 <td
><%
= _
.escape(item
.get('ulname') ||
'') %
></td
>
137 <td
><%
= _
.escape(item
.get('facility') ||
'') %
></td
>
138 <td
><%
= _
.escape(item
.get('active') ||
'') %
></td
>
139 <td
><%
= _
.escape(item
.get('utitle') ||
'') %
></td
>
140 <td
><%
= _
.escape(item
.get('physicianType') ||
'') %
></td
>
146 <%
= view
.getPaginationHtml(page
) %
>
148 <!-- underscore template
for the model
-->
149 <script type
="text/template" id
="onsiteActivityViewModelTemplate"></script
>
150 <div id
="collectionAlert"></div
>
151 <div id
="onsiteActivityViewCollectionContainer" class="collectionContainer"></div
>
152 <p id
="returnButtonContainer" class="buttonContainer">
153 <button id
="returnHome" class="btn btn-primary"><?php
echo xlt('Home'); ?
></button
>
155 </div
> <!-- /container
-->
157 $this->display('_Footer.tpl.php');