patient.blade.php 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. @extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
  2. <?php
  3. /** @var \App\Models\Client $patient */
  4. ?>
  5. <?php
  6. $routeName = request()->route()->getName();
  7. $isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note && !!$note->visitTemplate);
  8. ?>
  9. <style media="screen">
  10. .pt-name {
  11. font-size: 1.5rem !important;
  12. }
  13. </style>
  14. @section('content')
  15. <div class="container-fluid h-100">
  16. <div class="main-row h-100 {{ !request()->input('popupmode') ? '' : 'px-0' }} {{$isVisitNote ? 'autohide-leftnav' : ''}}">
  17. @if(!request()->input('popupmode'))
  18. <nav id="sidebarMenu" class="d-block bg-light sidebar collapse px-0">
  19. <div class="sidebar-sticky pt-3">
  20. <ul class="nav flex-column mcp-theme-1">
  21. <li class="nav-item">
  22. <a class="nav-link {{ strpos($routeName, 'patients.view.dashboard') === 0 ? 'active' : '' }}"
  23. href="{{ route('patients.view.dashboard', ['patient' => $patient]) }}">Dashboard</a>
  24. </li>
  25. <li class="nav-item">
  26. <a class="nav-link {{ strpos($routeName, 'patients.view.calendar') === 0 ? 'active' : '' }}"
  27. href="{{ route('patients.view.calendar', ['patient' => $patient]) }}">Calendar</a>
  28. </li>
  29. <li class="nav-item">
  30. <a class="nav-link {{ strpos($routeName, 'patients.view.appointments') === 0 ? 'active' : '' }}"
  31. href="{{ route('patients.view.appointments', ['patient' => $patient, 'forPro' => 'all', 'status' => 'all']) }}">Appointments</a>
  32. </li>
  33. {{--
  34. <li class="nav-item">
  35. <a class="nav-link {{ strpos($routeName, 'patients.view.programs') === 0 ? 'active' : '' }}"
  36. href="{{ route('patients.view.programs', ['patient' => $patient]) }}">Programs</a>
  37. </li>
  38. <li class="nav-item">
  39. <a class="nav-link {{ strpos($routeName, 'patients.view.flowsheets') === 0 ? 'active' : '' }}"
  40. href="{{ route('patients.view.flowsheets', ['patient' => $patient]) }}">Flowsheets</a>
  41. </li>
  42. --}}
  43. <li class="nav-item">
  44. <a class="nav-link {{ strpos($routeName, 'patients.view.vitals-settings') === 0 ? 'active' : '' }}"
  45. href="{{ route('patients.view.vitals-settings', ['patient' => $patient]) }}">Vitals Settings</a>
  46. </li>
  47. <li class="nav-item">
  48. <a class="nav-link {{ strpos($routeName, 'patients.view.vitals-graph') === 0 ? 'active' : '' }}"
  49. href="{{ route('patients.view.vitals-graph', ['patient' => $patient]) }}">Vitals Graph</a>
  50. </li>
  51. <li class="nav-item">
  52. <a class="nav-link {{ strpos($routeName, 'patients.view.care-months') === 0 ? 'active' : '' }}"
  53. href="{{ route('patients.view.care-months', ['patient' => $patient]) }}">Care Months</a>
  54. </li>
  55. <li class="nav-item">
  56. <a class="nav-link {{ strpos($routeName, 'patients.view.devices') === 0 ? 'active' : '' }}"
  57. href="{{ route('patients.view.devices', ['patient' => $patient]) }}">Devices</a>
  58. </li>
  59. <li class="nav-item">
  60. <a class="nav-link {{ strpos($routeName, 'patients.view.measurements') === 0 ? 'active' : '' }}"
  61. href="{{ route('patients.view.measurements', ['patient' => $patient]) }}">Measurements</a>
  62. </li>
  63. <li class="nav-item">
  64. <a class="nav-link {{ strpos($routeName, 'patients.view.notes') === 0 ? 'active' : '' }}"
  65. href="{{ route('patients.view.notes', ['patient' => $patient]) }}">Notes</a>
  66. </li>
  67. <li class="nav-item">
  68. <a class="nav-link {{ strpos($routeName, 'patients.view.generic-bills') === 0 ? 'active' : '' }}"
  69. href="{{ route('patients.view.generic-bills', ['patient' => $patient]) }}">Generic Bills</a>
  70. </li>
  71. <li class="nav-item">
  72. <a class="nav-link {{ strpos($routeName, 'patients.view.sections') === 0 ? 'active' : '' }}"
  73. href="{{ route('patients.view.sections', ['patient' => $patient]) }}">Sections</a>
  74. </li>
  75. <li class="nav-item">
  76. <a class="nav-link {{ strpos($routeName, 'patients.view.handouts') === 0 ? 'active' : '' }}"
  77. href="{{ route('patients.view.handouts', ['patient' => $patient]) }}">Handouts</a>
  78. </li>
  79. <li class="nav-item">
  80. <a class="nav-link {{ strpos($routeName, 'patients.view.rm-setup') === 0 ? 'active' : '' }}"
  81. href="{{ route('patients.view.rm-setup', ['patient' => $patient]) }}">RM Setup</a>
  82. </li>
  83. <?php /* <li class="nav-item">
  84. <a class="nav-link d-flex align-items-center {{ strpos($routeName, 'patients.view.action-items') === 0 ? 'active' : '' }}"
  85. native onclick="return false">
  86. <span class="text-dark">ERx/Orders</span>
  87. </a>
  88. <ul class="m-0 p-0 nav-child-list">
  89. <li class="nav-item">
  90. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-erx') === 0 ? 'active' : '' }}"
  91. href="{{ route('patients.view.action-items-erx', ['patient' => $patient]) }}">ERx</a>
  92. </li>
  93. <li class="nav-item">
  94. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-lab') === 0 ? 'active' : '' }}"
  95. href="{{ route('patients.view.action-items-lab', ['patient' => $patient]) }}">Lab</a>
  96. </li>
  97. <li class="nav-item">
  98. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-imaging') === 0 ? 'active' : '' }}"
  99. href="{{ route('patients.view.action-items-imaging', ['patient' => $patient]) }}">Imaging</a>
  100. </li>
  101. <li class="nav-item">
  102. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-equipment') === 0 ? 'active' : '' }}"
  103. href="{{ route('patients.view.action-items-equipment', ['patient' => $patient]) }}">Equipment</a>
  104. </li>
  105. </ul>
  106. </li> */ ?>
  107. <li class="nav-item">
  108. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-prescriptions') === 0 ? 'active' : '' }}"
  109. href="{{ route('patients.view.patient-prescriptions', ['patient' => $patient]) }}">ERx &amp; Orders</a>
  110. <?php /*
  111. <ul class="m-0 p-0 nav-child-list">
  112. <li class="nav-item">
  113. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === '' ? 'active' : '' }}"
  114. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => '']) }}">All</a>
  115. </li>
  116. <li class="nav-item">
  117. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'erx' ? 'active' : '' }}"
  118. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'erx']) }}">Drug</a>
  119. </li>
  120. <li class="nav-item">
  121. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'lab' ? 'active' : '' }}"
  122. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'lab']) }}">Lab</a>
  123. </li>
  124. <li class="nav-item">
  125. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'imaging' ? 'active' : '' }}"
  126. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'imaging']) }}">Imaging</a>
  127. </li>
  128. <li class="nav-item">
  129. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'referral' ? 'active' : '' }}"
  130. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'referral']) }}">Referral</a>
  131. </li>
  132. <li class="nav-item">
  133. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'supply' ? 'active' : '' }}"
  134. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'supply']) }}">Supply</a>
  135. </li>
  136. <li class="nav-item">
  137. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'other' ? 'active' : '' }}"
  138. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'other']) }}">Other</a>
  139. </li>
  140. </ul>
  141. */ ?>
  142. </li>
  143. <li class="nav-item">
  144. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 ? 'active' : '' }}"
  145. href="{{ route('patients.view.patient-tickets', ['patient' => $patient]) }}" title="Deprecated">ERx / Orders
  146. <span class="text-secondary text-sm pl-2">(dep)</span>
  147. </a>
  148. <ul class="m-0 p-0 nav-child-list">
  149. <li class="nav-item">
  150. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === '' ? 'active' : '' }}"
  151. href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => '']) }}">All</a>
  152. </li>
  153. <li class="nav-item">
  154. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'erx' ? 'active' : '' }}"
  155. href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'erx']) }}">ERx</a>
  156. </li>
  157. <li class="nav-item">
  158. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'lab' ? 'active' : '' }}"
  159. href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'lab']) }}">Lab</a>
  160. </li>
  161. <li class="nav-item">
  162. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'imaging' ? 'active' : '' }}"
  163. href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'imaging']) }}">Imaging</a>
  164. </li>
  165. <li class="nav-item">
  166. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'other' ? 'active' : '' }}"
  167. href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'other']) }}">Other</a>
  168. </li>
  169. </ul>
  170. </li>
  171. <li class="nav-item">
  172. <a class="nav-link {{ strpos($routeName, 'patients.view.supply-orders') === 0 ? 'active' : '' }}"
  173. href="{{ route('patients.view.supply-orders', ['patient' => $patient]) }}">Supply Orders</a>
  174. </li>
  175. <li class="nav-item">
  176. <a class="nav-link {{ strpos($routeName, 'patients.view.shipments') === 0 ? 'active' : '' }}"
  177. href="{{ route('patients.view.shipments', ['patient' => $patient]) }}">Shipments</a>
  178. </li>
  179. <li class="nav-item">
  180. <a class="nav-link {{ strpos($routeName, 'patients.view.incoming-reports') === 0 ? 'active' : '' }}"
  181. href="{{ route('patients.view.incoming-reports', ['patient' => $patient]) }}">Incoming Reports</a>
  182. </li>
  183. <li class="nav-item">
  184. <a class="nav-link {{ strpos($routeName, 'patients.view.allergies') === 0 ? 'active' : '' }}"
  185. href="{{ route('patients.view.allergies', ['patient' => $patient]) }}">Allergies</a>
  186. </li>
  187. <li class="nav-item">
  188. <a class="nav-link {{ strpos($routeName, 'patients.view.medications') === 0 ? 'active' : '' }}"
  189. href="{{ route('patients.view.medications', ['patient' => $patient]) }}">Medications</a>
  190. </li>
  191. <li class="nav-item">
  192. <a class="nav-link {{ strpos($routeName, 'patients.view.dx-and-focus-areas') === 0 ? 'active' : '' }}"
  193. href="{{ route('patients.view.dx-and-focus-areas', ['patient' => $patient]) }}">Dx and
  194. Focus Areas</a>
  195. </li>
  196. <li class="nav-item">
  197. <a class="nav-link {{ strpos($routeName, 'patients.view.care-team') === 0 ? 'active' : '' }}"
  198. href="{{ route('patients.view.care-team', ['patient' => $patient]) }}">Care Team</a>
  199. </li>
  200. <li class="nav-item">
  201. <a class="nav-link {{ strpos($routeName, 'patients.view.history') === 0 ? 'active' : '' }}"
  202. href="{{ route('patients.view.history', ['patient' => $patient]) }}">History</a>
  203. </li>
  204. <li class="nav-item">
  205. <a class="nav-link {{ strpos($routeName, 'patients.view.memos') === 0 ? 'active' : '' }}"
  206. href="{{ route('patients.view.memos', ['patient' => $patient]) }}">Memos</a>
  207. </li>
  208. <li class="nav-item">
  209. <a class="nav-link {{ $routeName === 'patients.view.sms' ? 'active' : '' }}"
  210. href="{{ route('patients.view.sms', ['patient' => $patient]) }}">SMS</a>
  211. </li>
  212. <li class="nav-item">
  213. <a class="nav-link {{ strpos($routeName, 'patients.view.sms-numbers') === 0 ? 'active' : '' }}"
  214. href="{{ route('patients.view.sms-numbers', ['patient' => $patient]) }}">SMS Numbers</a>
  215. </li>
  216. <li class="nav-item">
  217. <a class="nav-link {{ strpos($routeName, 'patients.view.documents') === 0 ? 'active' : '' }}"
  218. href="{{ route('patients.view.documents', ['patient' => $patient]) }}">Documents</a>
  219. </li>
  220. <li class="nav-item">
  221. <a class="nav-link {{ strpos($routeName, 'patients.view.settings') === 0 ? 'active' : '' }}"
  222. href="{{ route('patients.view.settings', ['patient' => $patient]) }}">Settings</a>
  223. </li>
  224. <li class="nav-item">
  225. <a class="nav-link {{ strpos($routeName, 'patients.view.sms-reminders') === 0 ? 'active' : '' }}"
  226. href="{{ route('patients.view.sms-reminders', ['patient' => $patient]) }}">SMS Reminders</a>
  227. </li>
  228. <li class="nav-item">
  229. <a class="nav-link {{ strpos($routeName, 'patients.view.measurement-confirmation-numbers') === 0 ? 'active' : '' }}"
  230. href="{{ route('patients.view.measurement-confirmation-numbers', ['patient' => $patient]) }}">Meas. Conf. Numbers</a>
  231. </li>
  232. <li class="nav-item">
  233. <a class="nav-link {{ strpos($routeName, 'patients.view.pros') === 0 ? 'active' : '' }}"
  234. href="{{ route('patients.view.pros', ['patient' => $patient]) }}">Pros</a>
  235. </li>
  236. {{-- <li class="nav-item">--}}
  237. {{-- <a class="nav-link" href="/patients/view/{{ $patient->uid }}/intake">Intake</a>--}}
  238. {{-- </li>--}}
  239. @if($performer->pro->pro_type == 'ADMIN')
  240. <li class="nav-item">
  241. <a class="nav-link {{ strpos($routeName, 'patients.view.mcp-requests') === 0 ? 'active' : '' }}"
  242. href="{{ route('patients.view.mcp-requests', $patient) }}">MCP Requests</a>
  243. </li>
  244. <li class="nav-item">
  245. <a class="nav-link {{ strpos($routeName, 'patients.view.eligible-refreshes') === 0 ? 'active' : '' }}"
  246. href="{{ route('patients.view.eligible-refreshes', $patient) }}">Eligible Refreshes</a>
  247. </li>
  248. <li class="nav-item">
  249. <a class="nav-link {{ strpos($routeName, 'patients.view.insurance-coverage') === 0 ? 'active' : '' }}"
  250. href="{{ route('patients.view.insurance-coverage', $patient) }}">Insurance Coverage</a>
  251. </li>
  252. <li class="nav-item">
  253. <a class="nav-link {{ strpos($routeName, 'patients.view.primary-coverage') === 0 ? 'active' : '' }}"
  254. href="{{ route('patients.view.primary-coverage', $patient) }}">Primary Coverage</a>
  255. </li>
  256. <li class="nav-item">
  257. <a class="nav-link {{ strpos($routeName, 'patients.view.claims-resolver') === 0 ? 'active' : '' }}"
  258. href="{{ route('patients.view.claims-resolver', $patient) }}">Claims Resolver</a>
  259. </li>
  260. @endif
  261. <li class="nav-item">
  262. <a class="nav-link {{ strpos($routeName, 'patients.view.accounts') === 0 ? 'active' : '' }}"
  263. href="{{ route('patients.view.accounts', $patient) }}">Linked Accounts</a>
  264. </li>
  265. </ul>
  266. <div class="mt-3 mcp-theme-1">
  267. @yield('left-nav-content')
  268. </div>
  269. </div>
  270. </nav>
  271. @endif
  272. <main role="main" class="w-100 {{$isVisitNote ? 'p-0' : ''}}">
  273. @if($pro->is_enrolled_as_mcp && !$patient->mcp)
  274. <div class="alert alert-info bg-white mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
  275. <div class="font-size-16">
  276. <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
  277. This patient currently does not have an MCP assigned.
  278. </div>
  279. <div class="mt-3 d-flex align-items-center">
  280. <button class="btn btn-info" onclick="$('.in-conv-confirmed').removeClass('d-none').addClass('d-inline-flex')">I am currently seeing or talking to this patient</button>
  281. <div class="in-conv-confirmed d-none align-items-center">
  282. <i class="fa fa-chevron-right mx-3 text-secondary"></i>
  283. <div moe class=" hide-inside-popup">
  284. <a href="" start show class="btn btn-primary font-weight-bold text-white">
  285. Assign myself as the MCP for this patient
  286. </a>
  287. <form url="/api/client/putMcp" class="mcp-theme-1">
  288. <input type="hidden" name="uid" value="{{$patient->uid}}">
  289. <input type="hidden" name="mcpProUid" value="{{$pro->uid}}">
  290. <p>Are you sure?</p>
  291. <div>
  292. <button submit class="btn btn-sm btn-primary mr-2">
  293. Submit
  294. </button>
  295. <button cancel class="btn btn-sm btn-default border">
  296. Cancel
  297. </button>
  298. </div>
  299. </form>
  300. </div>
  301. </div>
  302. </div>
  303. </div>
  304. @endif
  305. @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $patient->is_mcp_onboarding_active === 'NO')
  306. <div class="alert alert-warning mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
  307. <div class="font-weight-bold text-dark font-size-16">MCP onboarding is not active for this patient.</div>
  308. <div class="text-secondary p-2 border mt-2 bg-light">
  309. <div class="font-weight-bold">{{$patient->why_is_mcp_onboarding_not_active_category}}</div>
  310. <div>{{$patient->why_is_mcp_onboarding_not_active_memo}}</div>
  311. </div>
  312. </div>
  313. @endif
  314. <div class="card {{$isVisitNote ? 'card m-0 border-0 rounded-0' : 'my-3'}}" id="patient-header">
  315. <div class="card-header py-1 hide-inside-ticket-popup">
  316. <?php
  317. $thumbnail = $patient->profile_picture_base64;
  318. $initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
  319. $online = $patient->is_online ? 'online' : '';
  320. $patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first]));
  321. $confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number;
  322. $confirmedEmail = empty($patient->email_address) ? '-' : $patient->email_address;
  323. $location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state]));
  324. $location = empty($location) ? '-' : $location;
  325. $mcpName = $patient->mcp ? implode(', ', array_filter([$patient->mcp->name_last, $patient->mcp->name_first])) : null;
  326. $cmName = $patient->cm ? implode(', ', array_filter([$patient->cm->name_last, $patient->cm->name_first])) : null;
  327. $memberSince = date_diff(date_create($patient->created_at), date_create('now'))->days;
  328. if ($memberSince > 30) $memberSince = date('F, Y', strtotime($patient->created_at));
  329. else if ($memberSince > 1) $memberSince .= ' days ago';
  330. else if ($memberSince === 1) $memberSince = 'yesterday';
  331. else if ($memberSince === 0) $memberSince = 'today';
  332. ?>
  333. <div class=z>
  334. <div class=header>
  335. @if($patient->is_duplicate)
  336. <div class="alert alert-secondary border-dark mcp-theme-1">
  337. <span class="text-dark">This chart is a duplicate of&nbsp;</span>
  338. <a class="font-weight-bold"
  339. href="/patients/view/{{ $patient->duplicateOf->uid }}">
  340. {{ $patient->duplicateOf->displayName() }}
  341. </a>
  342. </div>
  343. @endif
  344. <div class="hbox justify-content-between">
  345. {{--<div>
  346. <div @if($patient->is_microphone_available)style="color:green" @else style="color:gray" @endif>
  347. <i class="fa fa-microphone"></i>
  348. </div>
  349. <div @if($patient->is_camera_available)style="color:green" @else style="color:gray" @endif>
  350. <i class="fa fa-video"></i>
  351. </div>
  352. </div>--}}
  353. <section>
  354. <div class="hbox">
  355. <h4 class="pt-name">{{$patientName}}</h4>
  356. <div class="screen-only mr-1 patient-presence-indicator thumbnail {{$online}}"
  357. data-patient-uid="{{$patient->uid}}"
  358. style="background-image:<?=$thumbnail?>"><?=$initials?></div>
  359. <i class=chart>[#{{$patient->chart_number}}]</i>
  360. </div>
  361. <div class=separators>
  362. <div>{{friendly_date_time($patient->dob, false,null, true)}}({{$patient->age_in_years}}
  363. y.o {{$patient->sex}})
  364. </div>
  365. </div>
  366. <div class="screen-only">
  367. <div class=separators>
  368. <div>Joined <?=$memberSince?></div>
  369. <div><label>MCP:</label> {{$mcpName}}
  370. @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
  371. <div moe class="ml-2 hide-inside-popup">
  372. <a start show><i class="fa fa-edit"></i></a>
  373. <form url="/api/client/putMcp" class="mcp-theme-1">
  374. <input type="hidden" name="uid" value="{{$patient->uid}}">
  375. <div class="mb-2">
  376. <label class="text-secondary text-sm">MCP Pro</label>
  377. <select name="mcpProUid" provider-search data-pro-uid="{{ @$patient->mcp->uid }}"
  378. class="form-control form-control-sm">
  379. <option value=""> --select--</option>
  380. @foreach($pros as $iPro)
  381. <option
  382. value="{{$iPro->uid}}" {{ $patient->mcp && $iPro->uid === $patient->mcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  383. @endforeach
  384. </select>
  385. </div>
  386. <div>
  387. <button submit class="btn btn-sm btn-primary mr-1">
  388. Submit
  389. </button>
  390. <button cancel class="btn btn-sm btn-default border">
  391. Cancel
  392. </button>
  393. </div>
  394. </form>
  395. </div>
  396. @if($patient->mcp)
  397. <div moe class="ml-2 hide-inside-popup">
  398. <a start show><i class="fa fa-times"></i></a>
  399. <form url="/api/client/removeMcp" class="mcp-theme-1">
  400. <input type="hidden" name="uid" value="{{$patient->uid}}">
  401. <div class="mb-2">
  402. <label class="text-secondary text-sm">Remove MCP Pro</label>
  403. </div>
  404. <div>
  405. <button submit class="btn btn-sm btn-primary mr-1">Submit
  406. </button>
  407. <button cancel class="btn btn-sm btn-default border">
  408. Cancel
  409. </button>
  410. </div>
  411. </form>
  412. </div>
  413. @endif
  414. @endif
  415. </div>
  416. </div>
  417. <div>
  418. @if($patient->has_mcp_done_onboarding_visit !== 'YES')
  419. <span class="text-dark d-inline-flex align-items-center">
  420. <span class="mr-2">
  421. <i class="fa fa-exclamation-triangle"></i>
  422. MCP Onboarding Visit Pending
  423. </span>
  424. </span>
  425. <span moe class="hide-inside-popup">
  426. <a start show><i class="fa fa-edit"></i></a>
  427. <form url="/api/client/updateMcpOnboardingVisitInfo" class="mcp-theme-1">
  428. <input type="hidden" name="uid" value="{{$patient->uid}}">
  429. <div class="mb-2">
  430. <select name="hasMcpDoneOnboardingVisit"
  431. class="form-control form-control-sm"
  432. onchange="toggleDisabledAsNeeded(this, 'YES', 'if-visit-done')">
  433. <option value="">-- Select Status --</option>
  434. <option value="YES" {{ $patient->has_mcp_done_onboarding_visit === 'YES' ? 'selected' : '' }}>YES</option>
  435. <option value="NO" {{ $patient->has_mcp_done_onboarding_visit === 'NO' ? 'selected' : '' }}>NO</option>
  436. <option value="UNKNOWN" {{ $patient->has_mcp_done_onboarding_visit === 'UNKNOWN' ? 'selected' : '' }}>UNKNOWN</option>
  437. </select>
  438. </div>
  439. <div class="mb-2">
  440. <input type="date"
  441. class="if-visit-done form-control form-control-sm" disabled
  442. name="mcpOnboardingVisitDate" value="{{ date('Y-m-d') }}"
  443. max="{{ date('Y-m-d') }}">
  444. </div>
  445. <div class="mb-2">
  446. <select name="mcpOnboardingVisitNoteUid" disabled
  447. class="form-control form-control-sm if-visit-done"
  448. onchange="if(this.value === '-- create --') createNewNote('{{$patient->uid}}', '{{$pro->uid}}', '{{date('Y-m-d')}}');">
  449. <option value="">-- Visit Note --</option>
  450. <?php $notes = \App\Models\Note::where('client_id', $patient->id)->get() ?>
  451. @foreach ($notes as $note)
  452. @if(!empty($note->title) && $note->client_id === $patient->id && !$note->is_cancelled)
  453. <option
  454. {{ $patient->mcp_onboarding_visit_note_id === $note->id ? 'selected' : '' }}
  455. value="{{$note->uid}}">{{$note->hcpPro->displayName()}} ({{friendly_date_time($note->effective_dateest, false)}})</option>
  456. @endif
  457. @endforeach
  458. {{--<option value="-- create --">-- Create Note --</option>--}}
  459. </select>
  460. </div>
  461. <div class="mb-2 if-note-outside-system">
  462. <textarea class="form-control form-control-sm"
  463. name="reasonOnboardingVisitNoteOutsideSystem"
  464. placeholder="Visit note outside the system reason"
  465. spellcheck="false" data-gramm="false"></textarea>
  466. </div>
  467. <div>
  468. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  469. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  470. </div>
  471. </form>
  472. </span>
  473. @else
  474. <span class="text-dark d-inline-flex align-items-center">
  475. <span class="mr-2 text-secondary">
  476. <i class="fa fa-check text-sm"></i>
  477. MCP Onboarding Visit Completed
  478. </span>
  479. </span>
  480. @endif
  481. </div>
  482. <div>
  483. <label>Physician:</label> {{$patient->pcp ? $patient->pcp->displayName() : '-' }}
  484. @if($pro->pro_type == 'ADMIN')
  485. <div moe class="ml-2 hide-inside-popup">
  486. <a start show><i class="fa fa-edit"></i></a>
  487. <form url="/api/client/putPhysicianPro" class="mcp-theme-1">
  488. <input type="hidden" name="uid" value="{{$patient->uid}}">
  489. <div class="mb-2">
  490. <label class="text-secondary text-sm">Physician Pro</label>
  491. <select provider-search data-pro-uid="{{ @$patient->pcp->uid }}"
  492. name="physicianProUid"
  493. class="form-control form-control-sm">
  494. <option value=""> --select--</option>
  495. @foreach($pros as $iPro)
  496. <option
  497. value="{{$iPro->uid}}" {{ $patient->pcp && $iPro->uid === $patient->pcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  498. @endforeach
  499. </select>
  500. </div>
  501. <div>
  502. <button submit class="btn btn-sm btn-primary mr-1">Submit
  503. </button>
  504. <button cancel class="btn btn-sm btn-default border">
  505. Cancel
  506. </button>
  507. </div>
  508. </form>
  509. </div>
  510. @if($patient->pcp)
  511. <div moe class="ml-2 hide-inside-popup">
  512. <a start show><i class="fa fa-times"></i></a>
  513. <form url="/api/client/removePhysicianPro" class="mcp-theme-1">
  514. <input type="hidden" name="uid" value="{{$patient->uid}}">
  515. <div class="mb-2">
  516. <label class="text-secondary text-sm">Remove Physician Pro</label>
  517. </div>
  518. <div>
  519. <button submit class="btn btn-sm btn-primary mr-1">Submit
  520. </button>
  521. <button cancel class="btn btn-sm btn-default border">
  522. Cancel
  523. </button>
  524. </div>
  525. </form>
  526. </div>
  527. @endif
  528. @endif
  529. </div>
  530. <div>
  531. <label>Engagement Status:</label>
  532. <b>{{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category))) : '-'}}</b>
  533. <div moe class="ml-2 hide-inside-popup">
  534. <a start show><i class="fa fa-edit"></i></a>
  535. <form url="/api/client/updateClientEngagementAssessmentStatus" class="mcp-theme-1">
  536. <input type="hidden" name="uid" value="{{$patient->uid}}">
  537. <div class="mb-2">
  538. <label class="mb-1 text-secondary text-sm">Status</label>
  539. <select name="category" class="form-control form-control-sm">
  540. <option value=""> --select--</option>
  541. <option {{ $patient->client_engagement_status_category === 'ACTIVE' ? 'selected' : '' }} value="ACTIVE">Active</option>
  542. <option {{ $patient->client_engagement_status_category === 'INACTIVE' ? 'selected' : '' }} value="INACTIVE">Inactive</option>
  543. <option {{ $patient->client_engagement_status_category === 'ENTRY_ERROR' ? 'selected' : '' }} value="ENTRY_ERROR">Entry Error</option>
  544. <option {{ $patient->client_engagement_status_category === 'DUMMY' ? 'selected' : '' }} value="DUMMY">Dummy</option>
  545. <option {{ $patient->client_engagement_status_category === 'DECEASED' ? 'selected' : '' }} value="DECEASED">Deceased</option>
  546. <option {{ $patient->client_engagement_status_category === 'DUPLICATE' ? 'selected' : '' }} value="DUPLICATE">Duplicate</option>
  547. <option {{ $patient->client_engagement_status_category === 'NO_LONGER_INTERESTED' ? 'selected' : '' }} value="NO_LONGER_INTERESTED">No Longer Interested</option>
  548. <option {{ $patient->client_engagement_status_category === 'BAD_RECORD' ? 'selected' : '' }} value="BAD_RECORD">Bad Record</option>
  549. </select>
  550. </div>
  551. <div class="mb-2">
  552. <label class="mb-1 text-secondary text-sm">Memo</label>
  553. <textarea class="form-control form-control-sm" name="memo"></textarea>
  554. </div>
  555. <div>
  556. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  557. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  558. </div>
  559. </form>
  560. </div>
  561. </div>
  562. </div>
  563. </section>
  564. {{--<section>
  565. <div>
  566. <label>Next Appt:</label>
  567. <?php
  568. $nextAppointment = $patient->nextMcpAppointment();
  569. $startTime = false;
  570. $endTime = false;
  571. if($nextAppointment) {
  572. $startTime = date('H:i', strtotime($nextAppointment->start_time));
  573. $endTime = date('H:i', strtotime($nextAppointment->end_time));
  574. $nextAppointment = date('Y-m-d', strtotime($nextAppointment->start_time));
  575. }
  576. ?>
  577. {{$nextAppointment ? friendly_date_time($nextAppointment . ($startTime ? ' ' . $startTime : ''), true, '') : '-'}}
  578. <span moe relative class="ml-1">
  579. <a start show><i class="fa fa-edit"></i></a>
  580. <form url="/api/appointment/create" class="mcp-theme-1" right>
  581. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  582. <input type="hidden" name="title" value="MCP Appointment">
  583. <div class="mb-2">
  584. <label class="text-secondary text-sm">Pro</label>
  585. <select name="proUid" class="form-control form-control-sm">
  586. <option value=""> --select-- </option>
  587. @foreach($pros as $iPro)
  588. <option value="{{$iPro->uid}}" {{ $iPro->uid === $pro->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  589. @endforeach
  590. </select>
  591. </div>
  592. <div class="mb-2">
  593. <label class="text-secondary text-sm">Date</label>
  594. <input type="date" name="date" min="{{ date('Y-m-d') }}"
  595. value="{{ $nextAppointment ? $nextAppointment : date('Y-m-d') }}"
  596. class="form-control form-control-sm">
  597. </div>
  598. <div class="mb-2">
  599. <label class="text-secondary text-sm">Start Time</label>
  600. <input type="time" name="startTime" class="form-control form-control-sm"
  601. value="{{ $startTime ? $startTime : '' }}">
  602. </div>
  603. <div class="mb-2">
  604. <label class="text-secondary text-sm">End Time</label>
  605. <input type="time" name="endTime" class="form-control form-control-sm"
  606. value="{{ $endTime ? $endTime : '' }}">
  607. </div>
  608. <div>
  609. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  610. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  611. </div>
  612. </form>
  613. </span>
  614. </div>
  615. <div>
  616. <label>CM:</label> {{ $patient->is_enrolled_in_cm === 'YES' ? 'Yes' : 'No' }}
  617. <label class="ml-2">RM:</label> {{ $patient->is_enrolled_in_rm === 'YES' ? 'Yes' : 'No' }}
  618. </div>
  619. </section>--}}
  620. <section class="hide-inside-popup screen-only vbox mt-2 align-self-start ml-4">
  621. <div moe>
  622. <button class="col-2-button" start show><i class="fa fa-plus text-sm text-secondary"></i>&nbsp;Note
  623. </button>
  624. <form url="/api/note/createUsingTemplate"
  625. redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
  626. class="mcp-theme-1">
  627. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  628. @if($pro->is_hcp)
  629. <input type="hidden" name="hcpProUid" value="{{$pro->uid}}">
  630. @else
  631. <input type="hidden" name="naProUid" value="{{$pro->uid}}">
  632. @endif
  633. <input type="hidden" name="effectiveDateEST" value="{{date("Y-m-d")}}">
  634. <input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
  635. <input type="hidden" name="title" id="note-create-title" value="">
  636. <div class="form-group mb-2">
  637. <label for="" class="text-secondary text-sm mb-1">Note Template *</label>
  638. <select name="noteTemplateUid" class="form-control form-control-sm"
  639. onchange="$('#note-create-title').val($(this).find('option:selected').text())"
  640. required>
  641. <option value=""> --select--</option>
  642. @foreach($pro->noteTemplates as $noteTemplate)
  643. <?php $nT = $noteTemplate->template(); ?>
  644. <option value="{{$nT->uid}}">{{$nT->title}}</option>
  645. @endforeach
  646. </select>
  647. </div>
  648. <div class="mb-2">
  649. <label for="" class="text-secondary text-sm mb-1">Method *</label>
  650. <select name="method" class="form-control form-control-sm note-method-select" required>
  651. <option value="AUDIO">Audio</option>
  652. <option value="VIDEO">Video</option>
  653. <option value="IN_CLINIC">In-Clinic</option>
  654. <option value="HOUSE_CALL">House Call</option>
  655. </select>
  656. </div>
  657. <div class="form-group if-in-clinic">
  658. <label for="" class="text-secondary text-sm mb-1">Location</label>
  659. <select name="hcpCompanyLocationUid" class="form-control">
  660. <option value=""></option>
  661. @foreach($pro->companyLocations() as $location)
  662. <option value="{{$location->uid}}">{{$location->line1}} {{$location->city}}</option>
  663. @endforeach
  664. </select>
  665. </div>
  666. <div class="form-group m-0">
  667. <button submit class="btn btn-primary btn-sm">submit</button>
  668. </div>
  669. </form>
  670. </div>
  671. <div>
  672. <div moe relative>
  673. <button class="col-2-button" start show><i class="fa fa-plus text-sm text-secondary"></i>&nbsp;SMS
  674. </button>
  675. <form url="/api/clientSms/createOutgoing" right class="mcp-theme-1">
  676. <input type="hidden" name="uid" value="{{ $patient->uid }}">
  677. <div class="mb-2">
  678. <label for="" class="text-sm text-secondary mb-1">Cell
  679. Number</label>
  680. <input type="text" class="form-control form-control-sm"
  681. name="cellNumber" value="{{$patient->cell_number}}">
  682. </div>
  683. <div class="mb-2">
  684. <label for=""
  685. class="text-sm text-secondary mb-1">Message</label>
  686. <textarea type="text" class="form-control form-control-sm"
  687. name="message"></textarea>
  688. </div>
  689. <div class="d-flex align-items-center">
  690. <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
  691. <button class="btn btn-sm btn-default mr-2 border" cancel>
  692. Cancel
  693. </button>
  694. </div>
  695. </form>
  696. </div>
  697. </div>
  698. <div>
  699. <span moe relative class="">
  700. <button class="col-2-button" start show title="SMS check-in link to the patient">Send&nbsp;<i
  701. class="on-hover-opaque fa fa-paper-plane text-secondary"></i></button>
  702. <form url="/api/client/sendCheckInTokenViaSmsOrEmail" right
  703. class="mcp-theme-1">
  704. <input type="hidden" name="uid" value="{{ $patient->uid }}">
  705. <p class="small min-width-200px mb-2">Send Check-In link to patient?</p>
  706. <div class="mb-2">
  707. <label for=""
  708. class="text-sm text-secondary mb-1">Cell Number</label>
  709. <input type="text" class="form-control input-sm" name="cellNumber"
  710. value="{{$patient->cell_number}}">
  711. </div>
  712. <div class="mb-2">
  713. <label for=""
  714. class="text-sm text-secondary mb-1">Email address</label>
  715. <input type="text" class="form-control input-sm" name="emailAddress"
  716. value="{{$patient->email_address}}">
  717. </div>
  718. <div class="d-flex align-items-center">
  719. <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
  720. <button class="btn btn-sm btn-default mr-2 border"
  721. cancel>Cancel</button>
  722. </div>
  723. </form>
  724. </span>
  725. </div>
  726. @if($performer->pro->pro_type == 'ADMIN')
  727. <div>
  728. <button class="col-2-button" onclick="return openInRHS('/pro/check-video/{{ $patient->uid }}')">Check Video</button>
  729. </div>
  730. @endif
  731. <div>
  732. <button class="col-2-button" onclick="return openInRHS('/pro/meet/{{ $patient->uid }}')">Join Video</button>
  733. </div>
  734. </section>
  735. <section class="hide-inside-popup screen-only vbox align-self-start mt-2 mx-2">
  736. @include('app.patient.coverage-status')
  737. </section>
  738. <ul class="vbox mt-2 align-self-start patient-header-address">
  739. <li class="d-flex align-items-start">
  740. <span class="aligned-icon">
  741. <i class="fa fa-map-marker-alt" aria-hidden="true"></i>
  742. </span>
  743. <div class="position-relative">
  744. <?php
  745. $addressParts = [];
  746. if (!!$patient->mailing_address_line1) $addressParts[] = $patient->mailing_address_line1;
  747. if (!!$patient->mailing_address_line2) $addressParts[] = $patient->mailing_address_line2;
  748. $addressParts = implode(", ", $addressParts) . "<br/>";
  749. $addressPart2 = [];
  750. if (!!$patient->mailing_address_city) $addressPart2[] = $patient->mailing_address_city;
  751. if (!!$patient->mailing_address_state) $addressPart2[] = $patient->mailing_address_state;
  752. $addressParts .= implode(", ", $addressPart2);
  753. echo $addressParts;
  754. ?>
  755. {{ $patient->mailing_address_zip ? $patient->mailing_address_zip : '' }}
  756. @if($patient->mailing_address_memo)
  757. <span class="position-relative c-pointer text-center stag-tooltip ml-2">
  758. <i class="fa fa-info-circle"></i>
  759. <div
  760. class="position-absolute bg-white border rounded p-2 stag-tooltip-content">
  761. <div class="text-left font-weight-bold pb-1">Special Instructions</div>
  762. <div
  763. class="text-left font-weight-normal">{{$patient->mailing_address_memo}}</div>
  764. </div>
  765. </span>
  766. @endif
  767. </div>
  768. </li>
  769. @if($patient->cell_number)
  770. <li>
  771. <span class="aligned-icon">
  772. <i class="fa fa-phone-alt" aria-hidden="true"></i>
  773. </span>
  774. {{$patient->cell_number}}
  775. <span class="small text-secondary ml-1">
  776. {{ $patient->cell_number_memo ? '(' . $patient->cell_number_memo . ')' : '' }}
  777. </span>
  778. </li>
  779. @endif
  780. @if($patient->phone_home)
  781. <li>
  782. <span class="aligned-icon"><i class="fa fa-home" aria-hidden="true"></i></span>
  783. {{$patient->phone_home}}
  784. </li>
  785. @endif
  786. <li class="{{empty($confirmedEmail) || $confirmedEmail === '-' ? 'screen-only' : ''}}">
  787. <span class="aligned-icon"><i class="fa fa-envelope" aria-hidden="true"></i></span>
  788. {{$confirmedEmail}}
  789. </li>
  790. <li class="screen-only hide-inside-popup">
  791. <span class="aligned-icon text-primary">
  792. <i class="fa fa-link" aria-hidden="true"></i>
  793. </span>
  794. <?php $numLinkedAccounts = $patient->linkedAccounts ? count($patient->linkedAccounts) : 0; ?>
  795. <a href="{{route('patients.view.accounts', ['patient' => $patient])}}">
  796. {{ $numLinkedAccounts === 0 ? 'No' : $numLinkedAccounts }}
  797. account{{ $numLinkedAccounts === 1 ? '' : 's' }} linked
  798. </a>
  799. </li>
  800. </ul>
  801. </div>
  802. </div>
  803. </div> <!-- z -->
  804. </div>
  805. @if($pro->pro_type === 'ADMIN')
  806. <div class="screen-only card-header py-2 d-flex align-items-center mcp-theme-1 bg-aliceblue hide-inside-popup">
  807. <b class="">Tags ({{count($patient->clientTags)}}):</b>
  808. @foreach($patient->clientTags as $tag)
  809. <div class="d-inline-flex align-items-center ml-2 py-1 px-2 rounded bg-aliceblue text-info">
  810. <span class="text-sm">{{$tag->tag}}</span>
  811. <div moe relative class="ml-2">
  812. <a href="" start show><i class="fa fa-times text-secondary on-hover-opaque"></i></a>
  813. <form url="/api/clientTag/cancel" class="mcp-theme-1 min-width-200px">
  814. <input type="hidden" name="uid" value="{{$tag->uid}}">
  815. <p class="text-nowrap text-dark">Cancel this tag?</p>
  816. <div>
  817. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  818. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  819. </div>
  820. </form>
  821. </div>
  822. </div>
  823. @endforeach
  824. <div moe relative class="ml-2">
  825. <a href="" start show class="text-sm">+ Add</a>
  826. <form url="/api/clientTag/create" class="mcp-theme-1">
  827. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  828. <div class="mb-2">
  829. <label class="text-secondary text-sm">Tag</label>
  830. <input type="text" class="form-control form-control-sm"
  831. name="tag"
  832. placeholder="Tag" required>
  833. </div>
  834. <div>
  835. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  836. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  837. </div>
  838. </form>
  839. </div>
  840. </div>
  841. @endif
  842. {{--<div class="text-container border-bottom d-flex align-items-center mcp-theme-1 px-3">
  843. @if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
  844. <div moe relative class="ml-2">
  845. <a href="" start show class="btn btn-sm btn-success text-white font-weight-bold small">Claim as MCP</a>
  846. <form url="/api/mcpRequest/claim" class="mcp-theme-1" right>
  847. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  848. <p>Claim this patient?</p>
  849. <div>
  850. <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
  851. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  852. </div>
  853. </form>
  854. </div>
  855. @endif
  856. </div>--}}
  857. <div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}}">
  858. {{--<h1 class="h3">@yield('section-title')</h1>--}}
  859. <div class="mcp-theme-1">
  860. @yield('inner-content')
  861. </div>
  862. </div>
  863. </div>
  864. </main>
  865. </div>
  866. </div>
  867. <script>
  868. (function() {
  869. function init() {
  870. $('.note-method-select').change(function() {
  871. let form = $(this).closest('form');
  872. if(this.value === 'IN_CLINIC') {
  873. form.find('.if-in-clinic').show();
  874. }
  875. else {
  876. form.find('.if-in-clinic').hide();
  877. }
  878. });
  879. $('[data-toggle="tooltip"]').tooltip('hover');
  880. $('.note-method-select').each(function() {
  881. let form = $(this).closest('form');
  882. if(this.value === 'IN_CLINIC') {
  883. form.find('.if-in-clinic').show();
  884. }
  885. else {
  886. form.find('.if-in-clinic').hide();
  887. }
  888. });
  889. }
  890. addMCInitializer('patient-add-note-popup', init, '#patient-header')
  891. }).call(window);
  892. </script>
  893. <script>
  894. (function() {
  895. function init() {
  896. $('#sidebarMenu')
  897. .off('scroll')
  898. .on('scroll', function() {
  899. localStorage.sidebarMenuScrollTop = $(this).scrollTop();
  900. });
  901. if(localStorage.sidebarMenuScrollTop) {
  902. $('#sidebarMenu').scrollTop(+localStorage.sidebarMenuScrollTop);
  903. }
  904. }
  905. addMCInitializer('sidebarMenu', init, '#sidebarMenu')
  906. }).call(window);
  907. </script>
  908. @endsection