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