patient.blade.php 52 KB

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