template.blade.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="csrf-token" content="{{ csrf_token() }}">
  7. <title>{{ config('app.name') }}</title>
  8. <!-- Fonts -->
  9. <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
  10. {{-- mc initializers --}}
  11. <script src="/js/mc-init.js?v={{config('app.asset_version')}}"></script>
  12. {{-- vue --}}
  13. <script src="/js/vue.js"></script>
  14. {{-- Quill RTE --}}
  15. <script>
  16. window.stagQuillConfig = {
  17. toolbar: ['bold', 'italic', 'underline', { 'list': 'ordered'}, { 'list': 'bullet' }],
  18. keyboard: {
  19. bindings: {
  20. handleEnter: {
  21. key: 13,
  22. handler: function() {
  23. if(!$('.stag-shortcuts:visible').length) return true;
  24. }
  25. }
  26. }
  27. }
  28. };
  29. </script>
  30. <link href="/quill/quill.snow.css" rel="stylesheet">
  31. <script src="/quill/quill.js"></script>
  32. <!-- <link href="{{ asset('bootstrap-4.5.0/css/bootstrap.css') }}" rel="stylesheet"> -->
  33. <link rel="stylesheet" href="/fontawesome-free-5.13.1-web/css/all.min.css">
  34. <link href="{{ asset('/css/app.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  35. <link href="{{ asset('/css/style.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  36. <link href="{{ asset('/css/yemi.css') }}?v={{config('app.asset_version')}}" rel="stylesheet">
  37. <link rel="stylesheet" href="{{ asset('/css/toastr.min.css') }}">
  38. <link href="{{asset('/css/z.css')}}?v={{config('app.asset_version')}}" rel=stylesheet>
  39. <!-- Styles -->
  40. <script src="{{ asset('js/app.js') }}?v={{config('app.asset_version')}}" type="application/javascript"></script>
  41. <script src="/js/jquery-3.5.1.min.js"></script>
  42. <script src="/js/jquery.form.min.js"></script>
  43. <script src="{{ asset('js/toastr.min.js') }}" type="application/javascript"></script>
  44. <script src="/js/yemi.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  45. {{-- med ac --}}
  46. <link href='/css/autocomplete-lhc.min.css' rel="stylesheet">
  47. <script src='/js/autocomplete-lhc.js'></script>
  48. {{-- inline bootstrap datepicker --}}
  49. {{-- <link href='/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css' rel="stylesheet">
  50. <script src='/bootstrap-datepicker/js/bootstrap-datepicker.min.js'></script>--}}
  51. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  52. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  53. {{-- pdfjs --}}
  54. <script src="/js/pdfjs-2.12.313/build/pdf.js"></script>
  55. <script src="{{ asset('js/tsvToArray.js') }}"></script>
  56. {{-- WebSockets --}}
  57. <script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.5.0/sockjs.min.js"
  58. integrity="sha512-5yJ548VSnLflcRxWNqVWYeQZnby8D8fJTmYRLyvs445j1XmzR8cnWi85lcHx3CUEeAX+GrK3TqTfzOO6LKDpdw=="
  59. crossorigin="anonymous"></script>
  60. <script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"
  61. integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g=="
  62. crossorigin="anonymous"></script>
  63. <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
  64. <script src="https://cdnjs.cloudflare.com/ajax/libs/TableDnD/1.0.5/jquery.tablednd.min.js"></script>
  65. <script>
  66. window.segmentRefreshConfig = {!! json_encode(config('stag.segmentRefreshConfig')) !!};
  67. </script>
  68. <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  69. <script type="text/javascript">
  70. $(function() {
  71. $.ajaxSetup({
  72. headers: {
  73. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  74. }
  75. });
  76. });
  77. </script>
  78. @yield('head')
  79. </head>
  80. <body>
  81. <div id="mask" style="background: rgba(0, 0, 0, 0) url(&quot;/vanillaspin.gif&quot;) no-repeat scroll center center; position: fixed; top: 0px; left: 0px; z-index: 9999; width: 100%; height: 100%; display: none;">
  82. </div>
  83. <div id="moe-form-mask" style="background: rgba(0, 0, 0, .1) no-repeat scroll center center; position: fixed; top: 0px; left: 0px; z-index: 97; width: 100%; height: 100%; display: none;">
  84. </div>
  85. <nav class="navbar navbar-expand-md navbar-dark stag-primary-bg py-1 mcp-theme-1 px-2">
  86. <a class="navbar-brand" href="/">
  87. <img src="/img/logo_white.svg" alt="Leadership Health">
  88. </a>
  89. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navBar" aria-controls="navBar" aria-expanded="false" aria-label="Toggle navigation">
  90. <span class="navbar-toggler-icon"></span>
  91. </button>
  92. <div class="collapse navbar-collapse" id="navBar">
  93. <ul class="navbar-nav mr-auto">
  94. @if($pro->pro_type == 'ADMIN')
  95. <li class="nav-item"><a class="nav-link" href="{{ route('admin.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  96. <li class="nav-item"><a class="nav-link" href="{{ route('admin.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  97. @elseif($pro->is_enrolled_as_mcp && $pro->is_considered_for_mcp_assignment)
  98. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  99. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  100. <li class="nav-item"><a class="nav-link" href="{{ route('mcp.appointments') }}">
  101. <i class="mr-1 fas fa-calendar-alt"></i> Appointments
  102. </a>
  103. </li>
  104. @elseif($pro->is_considered_for_dna)
  105. <li class="nav-item"><a class="nav-link" href="{{ route('dna.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  106. <li class="nav-item"><a class="nav-link" href="{{ route('dna.patients') }}"><i class="mr-1 fas fa-user"></i> Patients</a> </li>
  107. @else
  108. <li class="nav-item"><a class="nav-link" href="{{ route('ps.dashboard') }}"><i class="mr-1 fas fa-home"></i> Home</a> </li>
  109. @endif
  110. @if($pro && ($pro->can_add_patients || $pro->pro_type== 'ADMIN'))
  111. <li class="nav-item"><a class="nav-link" href="{{ route('new-patient') }}"><i class="mr-1 fas fa-user-plus"></i> New Patient</a> </li>
  112. @endif
  113. <li class="nav-item dropdown">
  114. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  115. <i class="mr-1 fas fa-tasks"></i> Practice
  116. </a>
  117. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  118. <a class="dropdown-item" href="{{ route('practice-management.rpm-manager') }}">RPM Manager</a>
  119. @if($pro->is_enrolled_as_mcp)
  120. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-mcp') }}">RPM (MCP)</a>
  121. @endif
  122. @if($pro->is_considered_for_rmm)
  123. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-rmm') }}">RPM (RMM)</a>
  124. @endif
  125. @if($pro->is_considered_for_rme)
  126. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-rme') }}">RPM (RME)</a>
  127. @endif
  128. @if( $pro->pro_type== 'ADMIN' || $pro->is_enrolled_as_mcp || $pro->is_considered_for_rmm || $pro->is_considered_for_rme || $pro->is_considered_for_dna)
  129. <a class="dropdown-item" href="{{ route('practice-management.client-ccm-rm-status') }}">Client RM Status</a>
  130. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Tickets</a>
  131. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">My Text Shortcuts</a>
  132. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">My Favorites</a>
  133. <a class="dropdown-item" href="{{ route('practice-management.my-flyers') }}">My Flyers</a>
  134. @else
  135. <a class="dropdown-item" href="{{ route('ps.client-review-requests') }}">My Patient Chart Review Requests</a>
  136. <a class="dropdown-item" href="{{ route('practice-management.myTickets') }}">My Bills</a>
  137. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  138. @endif
  139. @if($pro->is_enrolled_as_mcp && $pro->is_considered_for_mcp_assignment)
  140. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  141. <a class="dropdown-item" href="{{ route('practice-management.myTextShortcuts') }}">Text Shortcuts</a>
  142. <a class="dropdown-item" href="{{ route('practice-management.myFavorites') }}">Favorites</a>
  143. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Availability</a>
  144. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Calendar</a>
  145. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  146. <a class="dropdown-item" href="{{ route('mcp.notes') }}">Notes</a>
  147. <a class="dropdown-item" href="{{ route('mcp.memos') }}">Memos</a>
  148. <a class="dropdown-item" href="{{ route('mcp.appointments') }}">Appointments</a>
  149. <a class="dropdown-item" href="{{ route('mcp.bills') }}">Bills</a>
  150. <a class="dropdown-item" href="{{ route('mcp.erx_and_orders') }}">ERx & Orders</a>
  151. <a class="dropdown-item" href="{{ route('mcp.reports') }}">Reports</a>
  152. <a class="dropdown-item" href="{{ route('mcp.supply_orders') }}">Supply Orders</a>
  153. <a class="dropdown-item" href="{{ route('mcp.client_messages') }}">Messages</a>
  154. <a class="dropdown-item" href="{{ route('mcp.patients_accounts_invites') }}">Patients Accounts Invites</a>
  155. <a class="dropdown-item" href="{{ route('mcp.clients_bdt_devices') }}">Clients BDT Devices</a>
  156. @elseif($pro->isDefaultNA())
  157. <a class="dropdown-item" href="/practice-management/my-teams">My Teams</a>
  158. <a class="dropdown-item" href="{{ route('dna.encounters') }}">Encounters</a>
  159. <a class="dropdown-item" href="{{ route('dna.appointments') }}">Appointments</a>
  160. <a class="dropdown-item" href="{{ route('dna.careMonths') }}">Care Months</a>
  161. <a class="dropdown-item" href="{{ route('dna.financialTransactions') }}">Financial Transactions</a>
  162. <a class="dropdown-item" href="{{ route('dna.myBills') }}">My Bills</a>
  163. <!-- <a class="dropdown-item" href="{{ route('dna.myClinicalTeams') }}">My Clinical Teams</a> -->
  164. @endif
  165. @if($pro->pro_type === 'ADMIN' || $pro->is_considered_for_supervising_physician)
  166. <a class="dropdown-item" href="{{ route('practice-management.notes-pending-physician-supervisor-stamping') }}">Notes Pending Physician Supervisor Stamping</a>
  167. <a class="dropdown-item" href="{{ route('practice-management.client-review-requests') }}">Client Review Requests</a>
  168. @endif
  169. </div>
  170. </li>
  171. @if($pro->pro_type === 'ADMIN')
  172. <li class="nav-item dropdown">
  173. <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  174. <i class="mr-1 fas fa-tasks"></i> Admin
  175. </a>
  176. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  177. <a class="dropdown-item" href="{{ route('practice-management.claims-report') }}">Claims Report</a>
  178. <a class="dropdown-item" href="{{ route('practice-management.problems-report') }}">Problems Report</a>
  179. <a class="dropdown-item" href="{{ route('practice-management.coverages') }}">Coverage Center</a>
  180. <a class="dropdown-item" href="{{ route('practice-management.notes-resolution-center-v2') }}">Notes Resolution Center V2</a>
  181. <a class="dropdown-item" href="{{ route('practice-management.rpm-matrix-admin') }}">RPM (Admin)</a>
  182. <a class="dropdown-item" href="{{ route('practice-management.daily-treatment-services') }}">Daily Treatment Services</a>
  183. <a class="dropdown-item" href="{{ route('practice-management.client-pro-changes') }}">Client Pro Changes</a>
  184. <a class="dropdown-item" href="{{ route('invoice-center.companies') }}">Invoice Center</a>
  185. <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
  186. <a class="dropdown-item" href="/practice-management/bills/not-yet-signed">Pending Bills to Sign</a>
  187. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed">Pending Notes to Sign</a>
  188. <a class="dropdown-item" href="/practice-management/notes/not-yet-signed-but-ally-signed">Pending Notes to Sign (Ally Signed)</a>
  189. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  190. <a class="dropdown-item" href="{{ route('practice-management.proAvailability') }}">Pro Availability</a>
  191. <a class="dropdown-item" href="{{ route('practice-management.proCalendar') }}">Pro Calendar</a>
  192. <a class="dropdown-item" href="{{ route('practice-management.billing-report') }}">Billing Report</a>
  193. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix') }}">Processing Bills</a>
  194. <a class="dropdown-item" href="{{ route('practice-management.processingBillMatrix2') }}">Processing Bills (RPM)</a>
  195. <a class="dropdown-item" href="{{ route('practice-management.pro-financials') }}">Pro Financials</a>
  196. <a class="dropdown-item" href="{{ route('practice-management.process-claims') }}">Process Claims</a>
  197. <a class="dropdown-item" href="{{ route('practice-management.hcp-note-activity') }}">HCP Note Activity</a>
  198. <a class="dropdown-item" href="{{ route('practice-management.allNotes') }}">All Notes</a>
  199. @if($pro->id == '1' || $pro->id == '16')
  200. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  201. @endif
  202. <a class="dropdown-item" href="{{ route('practice-management.supply-orders') }}">Supply Orders</a>
  203. <a class="dropdown-item" href="{{ route('practice-management.shipments') }}">Shipments</a>
  204. <a class="dropdown-item" href="{{ route('practice-management.generic-bills') }}">Admin. Bills</a>
  205. <a class="dropdown-item" href="/practice-management/rates/all">Payment Rates</a>
  206. <a class="dropdown-item" href="{{ route('practice-management.patientsAccountsInvites') }}">Patients Accounts Invites</a>
  207. <a class="dropdown-item" href="{{ route('practice-management.memos') }}">Memos</a>
  208. <a class="dropdown-item" href="{{ route('practice-management.segmentTemplates') }}">Segment Templates</a>
  209. <a class="dropdown-item" href="{{ route('practice-management.visitTemplates') }}">Visit Templates</a>
  210. <a class="dropdown-item" href="{{ route('admin.bdt_devices') }}">BDT Devices</a>
  211. <a class="dropdown-item" href="{{ route('admin.patientsMissingDefasultSettings') }}">Patients Missing Default Settings</a>
  212. <a class="dropdown-item" href="{{ route('management-stats') }}">Management Stats</a>
  213. </div>
  214. </li>
  215. <li class="nav-item dropdown">
  216. <a class="nav-link dropdown-toggle opacity-60" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  217. <i class="mr-1 fas fa-tasks"></i> Unused
  218. </a>
  219. <div class="dropdown-menu mcp-theme-1 no-overflow-menu p-0" aria-labelledby="practice-management">
  220. <a class="dropdown-item" href="{{ route('practice-management.notes-resolution-center') }}">Notes Resolution Center</a>
  221. <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
  222. <a class="dropdown-item" href="{{ route('pro-care-month-report') }}">Care Month Report</a>
  223. <a class="dropdown-item" href="{{ route('practice-management.rm-bills-to-sign') }}">RM Bills to Sign</a>
  224. <a class="dropdown-item" href="{{ route('unmapped-sms') }}">Unmapped SMS</a>
  225. <a class="dropdown-item" href="{{ route('practice-management.remoteMonitoringReport') }}">Remote Monitoring Report</a>
  226. <a class="dropdown-item" href="{{ route('practice-management.billingManager') }}">Billing Manager</a>
  227. <a class="dropdown-item" href="{{ route('practice-management.cellularMeasurements') }}">Cellular Measurements</a>
  228. <a class="dropdown-item" href="{{ route('practice-management.cellularDeviceManager') }}">Cellular Device Manager</a>
  229. <a class="dropdown-item" href="{{ route('practice-management.medicarePartBClaims') }}">Medicare Part B Claims</a>
  230. <a class="dropdown-item" href="{{ route('practice-management.patientClaimSummary') }}">Patient Claim Summary</a>
  231. <a class="dropdown-item" href="{{ route('practice-management.claims') }}">Claim Matrix</a>
  232. <a class="dropdown-item" href="{{ route('practice-management.process-notes') }}">Process Notes</a>
  233. <a class="dropdown-item" href="{{ route('practice-management.notes-processing-center') }}">Notes Processing Center</a>
  234. <a class="dropdown-item" href="{{ route('practice-management.client-ccm-rm-status') }}">Client RM Status</a>
  235. <a class="dropdown-item" href="{{ route('practice-management.rmActionReport') }}">RM Action Report</a>
  236. @if($pro->id == '1' || $pro->id == '16')
  237. <a class="dropdown-item" href="{{ route('practice-management.treatmentServiceUtil') }}">Treatment Service Util.</a>
  238. @endif
  239. <a class="dropdown-item" href="{{ route('practice-management.tickets') }}">Tickets</a>
  240. <a class="dropdown-item" href="{{ route('practice-management.packs-multi-print') }}">Print Pack Labels</a>
  241. <a class="dropdown-item" href="{{ route('practice-management.handouts') }}">Handouts</a>
  242. <a class="dropdown-item" href="{{ route('practice-management.mc-code-checks') }}">MC Code Checks</a>
  243. <a class="dropdown-item" href="{{ route('practice-management.clauses.list') }}">Clauses</a>
  244. <a class="dropdown-item" href="{{ route('practice-management.statTrees.list') }}">Stat Trees</a>
  245. <a class="dropdown-item" href="{{ route('practice-management.statTreeLineReports.reports') }}">Stat Trees Line Reports</a>
  246. <a class="dropdown-item" href="{{ route('practice-management.clientsBdtDevices') }}">Clients BDT Devices</a>
  247. <a class="dropdown-item" href="{{ route('admin.part_b_patients') }}">Part B Patients</a>
  248. </div>
  249. </li>
  250. @endif
  251. </ul>
  252. {{-- if pro is working on a client and is not in tht client
  253. <div class="current-work mr-2">
  254. @include('app/current-work')
  255. </div> --}}
  256. <a href="#" class="mr-2 text-white small" onclick="return fastReload()"><i class="fa fa-sync on-hover-opaque"></i></a>
  257. <div class="d-inline-flex pr-2 mcp-theme-1 position-relative">
  258. <input id="patient-search" type="search" class="form-control form-control-sm outline-0" autocomplete="off" placeholder="Search Patients">
  259. <div class="patient-search-results suggestions-outer position-absolute d-none">
  260. </div>
  261. </div>
  262. <div class="d-flex align-items-center">
  263. <div class="dropdown">
  264. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  265. <a class="nav-link dropdown-toggle text-primary px-2 py-1 rounded bg-aliceblue" href="#" id="account-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  266. <span class="text-danger my-0 small">Masquerading as <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  267. </a>
  268. @else
  269. <a class="nav-link dropdown-toggle text-white pl-1 pr-0" href="#" id="account-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  270. <span class="text-white my-0 small">Hi, <b title="Cell# {{$pro->cell_number}}">{{ $pro->name_first }}!</b></span>
  271. </a>
  272. @endif
  273. <div class="dropdown-menu dropdown-menu-right mcp-theme-1 pt-0 pb-1" aria-labelledby="account-menu">
  274. @if($performer->logged_in_as_pro_from_admin_pro_app_session_id)
  275. <form action="{{route('back-to-admin-pro')}}" data-action="{{route('back-to-admin-pro')}}" method="post" target="_top" class="d-block pt-1 frm-back-to-admin">
  276. @csrf
  277. <button class="d-block ml-2 back-to-admin-button">
  278. Back to Admin
  279. </button>
  280. </form>
  281. @endif
  282. @if($pro->pro_type == 'ADMIN')
  283. <a href="{{route('log-in-as')}}" class="d-block ml-2 pt-1">Log In As</a>
  284. @endif
  285. @if($pro->pro_type == 'ADMIN')
  286. <a native target="_top" class="d-block ml-2 pt-1"
  287. href="{{config('stag.adminPortalUrl')}}/pro_log_in_with_session_key/{{$performer->session_key}}" title="">
  288. Admin
  289. </a>
  290. @endif
  291. <a native target="_top" class="d-block ml-2 pt-1" href="{{config('stag.authUrl')}}" title="">
  292. Return to Home
  293. </a>
  294. <a native target="_top" href="{{route('logout')}}" class="d-block ml-2 pt-1">
  295. Sign Out
  296. </a>
  297. </div>
  298. </div>
  299. </div>
  300. </div>
  301. <!--<a href="#" class="stag_rhs_toggle d-none d-md-block text-white" title="Toggle Video Pane">
  302. <i class="fa fa-arrow-right"></i>
  303. </a>-->
  304. </nav>
  305. <main role="main" class="stag-content px-0">
  306. @yield('content')
  307. </main><!-- /.container -->
  308. <!-- shortcut/suggest component -->
  309. <link href="/css/shortcut.css?v={{config('app.asset_version')}}" rel=stylesheet>
  310. <script src="/js/shortcut.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  311. <!-- pro suggest component -->
  312. <script src="/js/pro-suggest.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  313. <!-- script to handle history/back/forward for mc/xxx pages
  314. + all other JS initialization needed in fastLoaded pages -->
  315. <script src="/js/find-event-handlers.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  316. <script src="/js/mc.js?v={{config('app.asset_version')}}" type="application/javascript"></script>
  317. <form url="/api/proTextShortcut/create" id="create-shortcut-form" class="mcp-theme-1">
  318. <input type="hidden" name="proUid" value="{{ $pro->uid }}">
  319. <div class="mb-2">
  320. <input type="text" class="form-control form-control-sm" name="shortcut" value="" placeholder="Shortcut Name" required>
  321. </div>
  322. <div class="mb-2">
  323. <textarea name="text" class="form-control form-control-sm" rows="3" id="selected-sc-text" placeholder="Content" required></textarea>
  324. </div>
  325. <div class="mb-0">
  326. <button class="btn btn-primary btn-sm" type="submit">Save</button>
  327. <button class="btn btn-default border btn-sm ml-1" type="reset">Cancel</button>
  328. </div>
  329. </form>
  330. <script>
  331. $(document).ready(function() {
  332. window.toggleChildLinks = function(_element) {
  333. $(_element).closest('.nav-item').toggleClass('nav-child-collapsed');
  334. return false;
  335. }
  336. const debounce = (func, wait) => {
  337. let timeout;
  338. return function executedFunction(...args) {
  339. const later = () => {
  340. clearTimeout(timeout);
  341. func(...args);
  342. };
  343. clearTimeout(timeout);
  344. timeout = setTimeout(later, wait);
  345. };
  346. };
  347. var lastTerm = '';
  348. var returnedFunction = debounce(function() {
  349. var term = $.trim($('#patient-search').val());
  350. if (!!term) {
  351. if(lastTerm !== term) {
  352. $('.patient-search-results.suggestions-outer')
  353. .html('<span class="d-block no-suggest-items">Searching...</span>')
  354. .removeClass('d-none');
  355. $.get('/patients-suggest?term=' + term, function(_data) {
  356. if($.trim($('#patient-search').val()) === term) { // use returned data only if it's for the sent "term"
  357. $('.patient-search-results.suggestions-outer').html(_data).removeClass('d-none');
  358. }
  359. });
  360. lastTerm = term;
  361. }
  362. } else {
  363. $('.patient-search-results.suggestions-outer').addClass('d-none');
  364. }
  365. }, 250);
  366. $('#patient-search')
  367. .off('keydown')
  368. .on('keydown', function(e) {
  369. var activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  370. switch (e.which) {
  371. case 27:
  372. $('.patient-search-results.suggestions-outer').addClass('d-none');
  373. markEventAsConsumed(e);
  374. return false;
  375. case 38:
  376. if (activeItem.prev().length) {
  377. activeItem.prev()
  378. .addClass('active')
  379. .siblings().removeClass('active');
  380. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  381. if (activeItem.length) {
  382. activeItem[0].scrollIntoView();
  383. }
  384. }
  385. return false;
  386. case 40:
  387. if (activeItem.next().length) {
  388. activeItem.next()
  389. .addClass('active')
  390. .siblings().removeClass('active');
  391. activeItem = $('.patient-search-results.suggestions-outer .suggest-item.active');
  392. if (activeItem.length) {
  393. activeItem[0].scrollIntoView();
  394. }
  395. }
  396. return false;
  397. case 13:
  398. if (activeItem.length) {
  399. activeItem.first().trigger('mousedown');
  400. }
  401. return false;
  402. default:
  403. window.setTimeout(onQueryChange, 50);
  404. break;
  405. }
  406. })
  407. .on('keypress paste', function(e) {
  408. window.setTimeout(onQueryChange, 50);
  409. })
  410. .on('blur', function(e) {
  411. // $('.patient-search-results.suggestions-outer').addClass('d-none');
  412. return false;
  413. });
  414. $(document)
  415. .off('click.on-click-menu', '.on-click-menu>span')
  416. .on('click.on-click-menu', '.on-click-menu>span', function() {
  417. $(this).parent().find('[menu]').first().show();
  418. return false;
  419. });
  420. $('body')
  421. .off('mousedown.on-click-menu-outside-click')
  422. .on('mousedown.on-click-menu-outside-click', function (e) {
  423. if ($(e.target).closest('.on-click-menu').length && $(e.target).closest('.on-click-menu').find('[menu]').is(':visible')) {
  424. return;
  425. }
  426. $('.on-click-menu [menu]').hide();
  427. });
  428. function onQueryChange() {
  429. returnedFunction();
  430. }
  431. $(document).on('mousedown', '.suggest-item.patient-suggest[data-target-uid]', function() {
  432. $('#patient-search').val('');
  433. $('.patient-search-results.suggestions-outer').addClass('d-none');
  434. fastLoad('/patients/view/' + $(this).attr('data-target-uid'), true, false, false);
  435. return false;
  436. });
  437. $(document)
  438. .off('click.tab-link', 'a[tab-link]')
  439. .on('click.tab-link', 'a[tab-link]', function () {
  440. let tab = $(this).attr('tab-link');
  441. $(this).siblings().removeClass('tab-link-active');
  442. $(this).addClass('tab-link-active');
  443. $(this).closest('[tab-links]').siblings('.cm-tab').addClass('d-none');
  444. $(this).closest('[tab-links]').siblings('.cm-tab[tab-key="' + tab + '"]').removeClass('d-none');
  445. // TODO: move to context
  446. if(window.vgBPChart) window.vgBPChart.flush();
  447. if(window.vgWtChart) window.vgWtChart.flush();
  448. return false;
  449. });
  450. addMCInitializer('hide-moes', function() {
  451. $('div[moe] form:not([show])').hide();
  452. });
  453. (function() {
  454. function init() {
  455. $(window).on('resize', adjustStickyHeader);
  456. $(window).on('scroll', adjustStickyHeader);
  457. }
  458. function adjustStickyHeader() {
  459. if($(window).scrollTop() > 0) {
  460. $('.sticky-note-header').addClass('sticky');
  461. }
  462. else {
  463. $('.sticky-note-header').removeClass('sticky');
  464. }
  465. }
  466. addMCInitializer('sticky-note-header', init, '.sticky-note-header');
  467. })();
  468. });
  469. </script>
  470. <script src="/js/click-to-copy.js?v={{config('app.asset_version')}}"></script>
  471. <script src="/js/stag-popup.js?v={{config('app.asset_version')}}"></script>
  472. <script src="/js/stag-suggest.js?v={{config('app.asset_version')}}"></script>
  473. <script src="/js/stag-table-filter.js?v={{config('app.asset_version')}}"></script>
  474. <script src="/js/option-list.js?v={{config('app.asset_version')}}"></script>
  475. <script src="/js/show-on-click.js?v={{config('app.asset_version')}}"></script>
  476. <script src="/js/dq.js?v={{config('app.asset_version')}}"></script>
  477. <script src="/js/icd-autocomplete.js?v={{config('app.asset_version')}}"></script>
  478. <script src="/js/stag-collapsible-card.js?v={{config('app.asset_version')}}"></script>
  479. <script src="/js/stag-scrollbar.js?v={{config('app.asset_version')}}"></script>
  480. @include('app/pdf/viewer')
  481. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.css"/>
  482. <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.js"></script>
  483. <link href="/v-splitter-px/v-splitter.css?v={{config('app.asset_version')}}" rel="stylesheet" >
  484. <script src="/v-splitter-px/v-splitter.js?v={{config('app.asset_version')}}"></script>
  485. </body>
  486. </html>