patient.blade.php 52 KB

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