patient.blade.php 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  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.claims-resolver') === 0 ? 'active' : '' }}"
  251. href="{{ route('patients.view.claims-resolver', $patient) }}">Claims Resolver</a>
  252. </li>
  253. @endif
  254. <li class="nav-item">
  255. <a class="nav-link {{ strpos($routeName, 'patients.view.accounts') === 0 ? 'active' : '' }}"
  256. href="{{ route('patients.view.accounts', $patient) }}">Linked Accounts</a>
  257. </li>
  258. </ul>
  259. <div class="mt-3 mcp-theme-1">
  260. @yield('left-nav-content')
  261. </div>
  262. </div>
  263. </nav>
  264. @endif
  265. <main role="main" class="w-100 {{$isVisitNote ? 'p-0' : ''}}">
  266. @if($pro->is_enrolled_as_mcp && !$patient->mcp)
  267. <div class="alert alert-info bg-white mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
  268. <div class="font-size-16">
  269. <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
  270. This patient currently does not have an MCP assigned.
  271. </div>
  272. <div class="mt-3 d-flex align-items-center">
  273. <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>
  274. <div class="in-conv-confirmed d-none align-items-center">
  275. <i class="fa fa-chevron-right mx-3 text-secondary"></i>
  276. <div moe class=" hide-inside-popup">
  277. <a href="" start show class="btn btn-primary font-weight-bold text-white">
  278. Assign myself as the MCP for this patient
  279. </a>
  280. <form url="/api/client/putMcp" class="mcp-theme-1">
  281. <input type="hidden" name="uid" value="{{$patient->uid}}">
  282. <input type="hidden" name="mcpProUid" value="{{$pro->uid}}">
  283. <p>Are you sure?</p>
  284. <div>
  285. <button submit class="btn btn-sm btn-primary mr-2">
  286. Submit
  287. </button>
  288. <button cancel class="btn btn-sm btn-default border">
  289. Cancel
  290. </button>
  291. </div>
  292. </form>
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. @endif
  298. @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $patient->is_mcp_onboarding_active === 'NO')
  299. <div class="alert alert-warning mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
  300. <div class="font-weight-bold text-dark font-size-16">MCP onboarding is not active for this patient.</div>
  301. <div class="text-secondary p-2 border mt-2 bg-light">
  302. <div class="font-weight-bold">{{$patient->why_is_mcp_onboarding_not_active_category}}</div>
  303. <div>{{$patient->why_is_mcp_onboarding_not_active_memo}}</div>
  304. </div>
  305. </div>
  306. @endif
  307. <div class="card {{$isVisitNote ? 'card m-0 border-0 rounded-0' : 'mt-3'}}" id="patient-header">
  308. <div class="card-header py-1 hide-inside-ticket-popup">
  309. <?php
  310. $thumbnail = $patient->profile_picture_base64;
  311. $initials = !$thumbnail ? substr($patient->name_first, 0, 1) . substr($patient->name_last, 0, 1) : '';
  312. $online = $patient->is_online ? 'online' : '';
  313. $patientName = implode(', ', array_filter([$patient->name_last, $patient->name_first]));
  314. $confirmedCell = empty($patient->cell_number) ? '-' : $patient->cell_number;
  315. $confirmedEmail = empty($patient->email_address) ? '-' : $patient->email_address;
  316. $location = implode(', ', array_filter([$patient->home_address_city, $patient->home_address_state]));
  317. $location = empty($location) ? '-' : $location;
  318. $mcpName = $patient->mcp ? implode(', ', array_filter([$patient->mcp->name_last, $patient->mcp->name_first])) : null;
  319. $cmName = $patient->cm ? implode(', ', array_filter([$patient->cm->name_last, $patient->cm->name_first])) : null;
  320. $memberSince = date_diff(date_create($patient->created_at), date_create('now'))->days;
  321. if ($memberSince > 30) $memberSince = date('F, Y', strtotime($patient->created_at));
  322. else if ($memberSince > 1) $memberSince .= ' days ago';
  323. else if ($memberSince === 1) $memberSince = 'yesterday';
  324. else if ($memberSince === 0) $memberSince = 'today';
  325. ?>
  326. <div class=z>
  327. <div class=header>
  328. @if($patient->is_duplicate)
  329. <div class="alert alert-secondary border-dark mcp-theme-1">
  330. <span class="text-dark">This chart is a duplicate of&nbsp;</span>
  331. <a class="font-weight-bold"
  332. href="/patients/view/{{ $patient->duplicateOf->uid }}">
  333. {{ $patient->duplicateOf->displayName() }}
  334. </a>
  335. </div>
  336. @endif
  337. <div class=hbox>
  338. <div class="screen-only mr-1 patient-presence-indicator thumbnail {{$online}}"
  339. data-patient-uid="{{$patient->uid}}"
  340. style="background-image:<?=$thumbnail?>"><?=$initials?></div>
  341. {{--<div>
  342. <div @if($patient->is_microphone_available)style="color:green" @else style="color:gray" @endif>
  343. <i class="fa fa-microphone"></i>
  344. </div>
  345. <div @if($patient->is_camera_available)style="color:green" @else style="color:gray" @endif>
  346. <i class="fa fa-video"></i>
  347. </div>
  348. </div>--}}
  349. <section>
  350. <div class=hbox>
  351. <h4>{{$patientName}}</h4>
  352. <i class=chart>[#{{$patient->chart_number}}]</i>
  353. </div>
  354. <div class=separators>
  355. <div>{{friendly_date_time($patient->dob, false,null, true)}}({{$patient->age_in_years}}
  356. y.o {{$patient->sex}})
  357. </div>
  358. </div>
  359. <div class="screen-only">
  360. <div class=separators>
  361. <div>Joined <?=$memberSince?></div>
  362. <div><label>MCP:</label> {{$mcpName}}
  363. @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $pro->pro_type == 'ADMIN')
  364. <div moe class="ml-2 hide-inside-popup">
  365. <a start show><i class="fa fa-edit"></i></a>
  366. <form url="/api/client/putMcp" class="mcp-theme-1">
  367. <input type="hidden" name="uid" value="{{$patient->uid}}">
  368. <div class="mb-2">
  369. <label class="text-secondary text-sm">MCP Pro</label>
  370. <select name="mcpProUid" provider-search data-pro-uid="{{ @$patient->mcp->uid }}"
  371. class="form-control form-control-sm">
  372. <option value=""> --select--</option>
  373. @foreach($pros as $iPro)
  374. <option
  375. value="{{$iPro->uid}}" {{ $patient->mcp && $iPro->uid === $patient->mcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  376. @endforeach
  377. </select>
  378. </div>
  379. <div>
  380. <button submit class="btn btn-sm btn-primary mr-1">
  381. Submit
  382. </button>
  383. <button cancel class="btn btn-sm btn-default border">
  384. Cancel
  385. </button>
  386. </div>
  387. </form>
  388. </div>
  389. @if($patient->mcp)
  390. <div moe class="ml-2 hide-inside-popup">
  391. <a start show><i class="fa fa-times"></i></a>
  392. <form url="/api/client/removeMcp" class="mcp-theme-1">
  393. <input type="hidden" name="uid" value="{{$patient->uid}}">
  394. <div class="mb-2">
  395. <label class="text-secondary text-sm">Remove MCP Pro</label>
  396. </div>
  397. <div>
  398. <button submit class="btn btn-sm btn-primary mr-1">Submit
  399. </button>
  400. <button cancel class="btn btn-sm btn-default border">
  401. Cancel
  402. </button>
  403. </div>
  404. </form>
  405. </div>
  406. @endif
  407. @endif
  408. </div>
  409. </div>
  410. <div>
  411. @if($patient->has_mcp_done_onboarding_visit !== 'YES')
  412. <span class="text-dark d-inline-flex align-items-center">
  413. <span class="mr-2">
  414. <i class="fa fa-exclamation-triangle"></i>
  415. MCP Onboarding Visit Pending
  416. </span>
  417. </span>
  418. <span moe class="hide-inside-popup">
  419. <a start show><i class="fa fa-edit"></i></a>
  420. <form url="/api/client/updateMcpOnboardingVisitInfo" class="mcp-theme-1">
  421. <input type="hidden" name="uid" value="{{$patient->uid}}">
  422. <div class="mb-2">
  423. <select name="hasMcpDoneOnboardingVisit"
  424. class="form-control form-control-sm"
  425. onchange="toggleDisabledAsNeeded(this, 'YES', 'if-visit-done')">
  426. <option value="">-- Select Status --</option>
  427. <option value="YES" {{ $patient->has_mcp_done_onboarding_visit === 'YES' ? 'selected' : '' }}>YES</option>
  428. <option value="NO" {{ $patient->has_mcp_done_onboarding_visit === 'NO' ? 'selected' : '' }}>NO</option>
  429. <option value="UNKNOWN" {{ $patient->has_mcp_done_onboarding_visit === 'UNKNOWN' ? 'selected' : '' }}>UNKNOWN</option>
  430. </select>
  431. </div>
  432. <div class="mb-2">
  433. <input type="date"
  434. class="if-visit-done form-control form-control-sm" disabled
  435. name="mcpOnboardingVisitDate" value="{{ date('Y-m-d') }}"
  436. max="{{ date('Y-m-d') }}">
  437. </div>
  438. <div class="mb-2">
  439. <select name="mcpOnboardingVisitNoteUid" disabled
  440. class="form-control form-control-sm if-visit-done"
  441. onchange="if(this.value === '-- create --') createNewNote('{{$patient->uid}}', '{{$pro->uid}}', '{{date('Y-m-d')}}');">
  442. <option value="">-- Visit Note --</option>
  443. <?php $notes = \App\Models\Note::where('client_id', $patient->id)->get() ?>
  444. @foreach ($notes as $note)
  445. @if(!empty($note->title) && $note->client_id === $patient->id && !$note->is_cancelled)
  446. <option
  447. {{ $patient->mcp_onboarding_visit_note_id === $note->id ? 'selected' : '' }}
  448. value="{{$note->uid}}">{{$note->title}} ({{friendly_date_time($note->effective_dateest, false)}})</option>
  449. @endif
  450. @endforeach
  451. {{--<option value="-- create --">-- Create Note --</option>--}}
  452. </select>
  453. </div>
  454. <div class="mb-2 if-note-outside-system">
  455. <textarea class="form-control form-control-sm"
  456. name="reasonOnboardingVisitNoteOutsideSystem"
  457. placeholder="Visit note outside the system reason"
  458. spellcheck="false" data-gramm="false"></textarea>
  459. </div>
  460. <div>
  461. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  462. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  463. </div>
  464. </form>
  465. </span>
  466. @else
  467. <span class="text-dark d-inline-flex align-items-center">
  468. <span class="mr-2 text-secondary">
  469. <i class="fa fa-check text-sm"></i>
  470. MCP Onboarding Visit Completed
  471. </span>
  472. </span>
  473. @endif
  474. </div>
  475. <div>
  476. <label>Physician:</label> {{$patient->pcp ? $patient->pcp->displayName() : '-' }}
  477. @if($pro->pro_type == 'ADMIN')
  478. <div moe class="ml-2 hide-inside-popup">
  479. <a start show><i class="fa fa-edit"></i></a>
  480. <form url="/api/client/putPhysicianPro" class="mcp-theme-1">
  481. <input type="hidden" name="uid" value="{{$patient->uid}}">
  482. <div class="mb-2">
  483. <label class="text-secondary text-sm">Physician Pro</label>
  484. <select provider-search data-pro-uid="{{ @$patient->pcp->uid }}"
  485. name="physicianProUid"
  486. class="form-control form-control-sm">
  487. <option value=""> --select--</option>
  488. @foreach($pros as $iPro)
  489. <option
  490. value="{{$iPro->uid}}" {{ $patient->pcp && $iPro->uid === $patient->pcp->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  491. @endforeach
  492. </select>
  493. </div>
  494. <div>
  495. <button submit class="btn btn-sm btn-primary mr-1">Submit
  496. </button>
  497. <button cancel class="btn btn-sm btn-default border">
  498. Cancel
  499. </button>
  500. </div>
  501. </form>
  502. </div>
  503. @if($patient->pcp)
  504. <div moe class="ml-2 hide-inside-popup">
  505. <a start show><i class="fa fa-times"></i></a>
  506. <form url="/api/client/removePhysicianPro" class="mcp-theme-1">
  507. <input type="hidden" name="uid" value="{{$patient->uid}}">
  508. <div class="mb-2">
  509. <label class="text-secondary text-sm">Remove Physician Pro</label>
  510. </div>
  511. <div>
  512. <button submit class="btn btn-sm btn-primary mr-1">Submit
  513. </button>
  514. <button cancel class="btn btn-sm btn-default border">
  515. Cancel
  516. </button>
  517. </div>
  518. </form>
  519. </div>
  520. @endif
  521. @endif
  522. </div>
  523. <div>
  524. <label>Engagement Status:</label>
  525. <b>{{$patient->client_engagement_status_category ? ucwords(strtolower(str_replace('_', ' ', $patient->client_engagement_status_category))) : '-'}}</b>
  526. <div moe class="ml-2 hide-inside-popup">
  527. <a start show><i class="fa fa-edit"></i></a>
  528. <form url="/api/client/updateClientEngagementAssessmentStatus" class="mcp-theme-1">
  529. <input type="hidden" name="uid" value="{{$patient->uid}}">
  530. <div class="mb-2">
  531. <label class="mb-1 text-secondary text-sm">Status</label>
  532. <select name="category" class="form-control form-control-sm">
  533. <option value=""> --select--</option>
  534. <option {{ $patient->client_engagement_status_category === 'ACTIVE' ? 'selected' : '' }} value="ACTIVE">Active</option>
  535. <option {{ $patient->client_engagement_status_category === 'INACTIVE' ? 'selected' : '' }} value="INACTIVE">Inactive</option>
  536. <option {{ $patient->client_engagement_status_category === 'ENTRY_ERROR' ? 'selected' : '' }} value="ENTRY_ERROR">Entry Error</option>
  537. <option {{ $patient->client_engagement_status_category === 'DUMMY' ? 'selected' : '' }} value="DUMMY">Dummy</option>
  538. <option {{ $patient->client_engagement_status_category === 'DECEASED' ? 'selected' : '' }} value="DECEASED">Deceased</option>
  539. <option {{ $patient->client_engagement_status_category === 'DUPLICATE' ? 'selected' : '' }} value="DUPLICATE">Duplicate</option>
  540. <option {{ $patient->client_engagement_status_category === 'NO_LONGER_INTERESTED' ? 'selected' : '' }} value="NO_LONGER_INTERESTED">No Longer Interested</option>
  541. <option {{ $patient->client_engagement_status_category === 'BAD_RECORD' ? 'selected' : '' }} value="BAD_RECORD">Bad Record</option>
  542. </select>
  543. </div>
  544. <div class="mb-2">
  545. <label class="mb-1 text-secondary text-sm">Memo</label>
  546. <textarea class="form-control form-control-sm" name="memo"></textarea>
  547. </div>
  548. <div>
  549. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  550. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  551. </div>
  552. </form>
  553. </div>
  554. </div>
  555. </div>
  556. </section>
  557. {{--<section>
  558. <div>
  559. <label>Next Appt:</label>
  560. <?php
  561. $nextAppointment = $patient->nextMcpAppointment();
  562. $startTime = false;
  563. $endTime = false;
  564. if($nextAppointment) {
  565. $startTime = date('H:i', strtotime($nextAppointment->start_time));
  566. $endTime = date('H:i', strtotime($nextAppointment->end_time));
  567. $nextAppointment = date('Y-m-d', strtotime($nextAppointment->start_time));
  568. }
  569. ?>
  570. {{$nextAppointment ? friendly_date_time($nextAppointment . ($startTime ? ' ' . $startTime : ''), true, '') : '-'}}
  571. <span moe relative class="ml-1">
  572. <a start show><i class="fa fa-edit"></i></a>
  573. <form url="/api/appointment/create" class="mcp-theme-1" right>
  574. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  575. <input type="hidden" name="title" value="MCP Appointment">
  576. <div class="mb-2">
  577. <label class="text-secondary text-sm">Pro</label>
  578. <select name="proUid" class="form-control form-control-sm">
  579. <option value=""> --select-- </option>
  580. @foreach($pros as $iPro)
  581. <option value="{{$iPro->uid}}" {{ $iPro->uid === $pro->uid ? 'selected' : '' }}>{{$iPro->displayName()}}</option>
  582. @endforeach
  583. </select>
  584. </div>
  585. <div class="mb-2">
  586. <label class="text-secondary text-sm">Date</label>
  587. <input type="date" name="date" min="{{ date('Y-m-d') }}"
  588. value="{{ $nextAppointment ? $nextAppointment : date('Y-m-d') }}"
  589. class="form-control form-control-sm">
  590. </div>
  591. <div class="mb-2">
  592. <label class="text-secondary text-sm">Start Time</label>
  593. <input type="time" name="startTime" class="form-control form-control-sm"
  594. value="{{ $startTime ? $startTime : '' }}">
  595. </div>
  596. <div class="mb-2">
  597. <label class="text-secondary text-sm">End Time</label>
  598. <input type="time" name="endTime" class="form-control form-control-sm"
  599. value="{{ $endTime ? $endTime : '' }}">
  600. </div>
  601. <div>
  602. <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
  603. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  604. </div>
  605. </form>
  606. </span>
  607. </div>
  608. <div>
  609. <label>CM:</label> {{ $patient->is_enrolled_in_cm === 'YES' ? 'Yes' : 'No' }}
  610. <label class="ml-2">RM:</label> {{ $patient->is_enrolled_in_rm === 'YES' ? 'Yes' : 'No' }}
  611. </div>
  612. </section>--}}
  613. <section class="hide-inside-popup screen-only vbox mt-2 align-self-start ml-4">
  614. <div moe>
  615. <button start show><i class="fa fa-plus text-sm text-secondary"></i>&nbsp;Note
  616. </button>
  617. <form url="/api/note/createUsingTemplate"
  618. redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
  619. class="mcp-theme-1">
  620. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  621. @if($pro->is_hcp)
  622. <input type="hidden" name="hcpProUid" value="{{$pro->uid}}">
  623. @else
  624. <input type="hidden" name="naProUid" value="{{$pro->uid}}">
  625. @endif
  626. <input type="hidden" name="effectiveDateEST" value="{{date("Y-m-d")}}">
  627. <input type="hidden" name="effectiveTime" value="{{date("h:i")}}">
  628. <input type="hidden" name="title" id="note-create-title" value="">
  629. <div class="form-group mb-2">
  630. <label for="" class="text-secondary text-sm mb-1">Note Template *</label>
  631. <select name="noteTemplateUid" class="form-control form-control-sm"
  632. onchange="$('#note-create-title').val($(this).find('option:selected').text())"
  633. required>
  634. <option value=""> --select--</option>
  635. @foreach($pro->noteTemplates as $noteTemplate)
  636. <?php $nT = $noteTemplate->template(); ?>
  637. <option value="{{$nT->uid}}">{{$nT->title}}</option>
  638. @endforeach
  639. </select>
  640. </div>
  641. <div class="mb-2">
  642. <label for="" class="text-secondary text-sm mb-1">Method *</label>
  643. <select name="method" class="form-control form-control-sm note-method-select" required>
  644. <option value="AUDIO">Audio</option>
  645. <option value="VIDEO">Video</option>
  646. <option value="IN_CLINIC">In-Clinic</option>
  647. <option value="HOUSE_CALL">House Call</option>
  648. </select>
  649. </div>
  650. <div class="form-group if-in-clinic">
  651. <label for="" class="text-secondary text-sm mb-1">Location</label>
  652. <select name="hcpCompanyLocationUid" class="form-control">
  653. <option value=""></option>
  654. @foreach($pro->companyLocations() as $location)
  655. <option value="{{$location->uid}}">{{$location->line1}} {{$location->city}}</option>
  656. @endforeach
  657. </select>
  658. </div>
  659. <div class="form-group m-0">
  660. <button submit class="btn btn-primary btn-sm">submit</button>
  661. </div>
  662. </form>
  663. </div>
  664. <div>
  665. <div moe relative>
  666. <button start show><i class="fa fa-plus text-sm text-secondary"></i>&nbsp;SMS
  667. </button>
  668. <form url="/api/clientSms/createOutgoing" right class="mcp-theme-1">
  669. <input type="hidden" name="uid" value="{{ $patient->uid }}">
  670. <div class="mb-2">
  671. <label for="" class="text-sm text-secondary mb-1">Cell
  672. Number</label>
  673. <input type="text" class="form-control form-control-sm"
  674. name="cellNumber" value="{{$patient->cell_number}}">
  675. </div>
  676. <div class="mb-2">
  677. <label for=""
  678. class="text-sm text-secondary mb-1">Message</label>
  679. <textarea type="text" class="form-control form-control-sm"
  680. name="message"></textarea>
  681. </div>
  682. <div class="d-flex align-items-center">
  683. <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
  684. <button class="btn btn-sm btn-default mr-2 border" cancel>
  685. Cancel
  686. </button>
  687. </div>
  688. </form>
  689. </div>
  690. </div>
  691. <div>
  692. <span moe relative class="">
  693. <button start show title="SMS check-in link to the patient">Send&nbsp;<i
  694. class="on-hover-opaque fa fa-paper-plane text-secondary"></i></button>
  695. <form url="/api/client/sendCheckInTokenViaSmsOrEmail" right
  696. class="mcp-theme-1">
  697. <input type="hidden" name="uid" value="{{ $patient->uid }}">
  698. <p class="small min-width-200px mb-2">Send Check-In link to patient?</p>
  699. <div class="mb-2">
  700. <label for=""
  701. class="text-sm text-secondary mb-1">Cell Number</label>
  702. <input type="text" class="form-control input-sm" name="cellNumber"
  703. value="{{$patient->cell_number}}">
  704. </div>
  705. <div class="mb-2">
  706. <label for=""
  707. class="text-sm text-secondary mb-1">Email address</label>
  708. <input type="text" class="form-control input-sm" name="emailAddress"
  709. value="{{$patient->email_address}}">
  710. </div>
  711. <div class="d-flex align-items-center">
  712. <button class="btn btn-sm btn-primary mr-2" submit>Send</button>
  713. <button class="btn btn-sm btn-default mr-2 border"
  714. cancel>Cancel</button>
  715. </div>
  716. </form>
  717. </span>
  718. </div>
  719. </section>
  720. <section class="hide-inside-popup screen-only vbox mt-2 align-self-start ml-1">
  721. @if($performer->pro->pro_type == 'ADMIN')
  722. <div>
  723. <button class="col-2-button" onclick="return openInRHS('/pro/check-video/{{ $patient->uid }}')">Check Video</button>
  724. </div>
  725. @endif
  726. <div>
  727. <button class="col-2-button" onclick="return openInRHS('/pro/meet/{{ $patient->uid }}')">Join Video</button>
  728. </div>
  729. </section>
  730. <section class="hide-inside-popup screen-only vbox align-self-start mt-2 mx-2">
  731. @include('app.patient.coverage-status')
  732. </section>
  733. <ul class="vbox ml-auto mt-2 align-self-start patient-header-address">
  734. <li class="d-flex align-items-start">
  735. <span class="aligned-icon">
  736. <i class="fa fa-map-marker-alt" aria-hidden="true"></i>
  737. </span>
  738. <div class="position-relative">
  739. <?php
  740. $addressParts = [];
  741. if (!!$patient->mailing_address_line1) $addressParts[] = $patient->mailing_address_line1;
  742. if (!!$patient->mailing_address_line2) $addressParts[] = $patient->mailing_address_line2;
  743. $addressParts = implode(", ", $addressParts) . "<br/>";
  744. $addressPart2 = [];
  745. if (!!$patient->mailing_address_city) $addressPart2[] = $patient->mailing_address_city;
  746. if (!!$patient->mailing_address_state) $addressPart2[] = $patient->mailing_address_state;
  747. $addressParts .= implode(", ", $addressPart2);
  748. echo $addressParts;
  749. ?>
  750. {{ $patient->mailing_address_zip ? $patient->mailing_address_zip : '' }}
  751. @if($patient->mailing_address_memo)
  752. <span class="position-relative c-pointer text-center stag-tooltip ml-2">
  753. <i class="fa fa-info-circle"></i>
  754. <div
  755. class="position-absolute bg-white border rounded p-2 stag-tooltip-content">
  756. <div class="text-left font-weight-bold pb-1">Special Instructions</div>
  757. <div
  758. class="text-left font-weight-normal">{{$patient->mailing_address_memo}}</div>
  759. </div>
  760. </span>
  761. @endif
  762. </div>
  763. </li>
  764. @if($patient->cell_number)
  765. <li>
  766. <span class="aligned-icon">
  767. <i class="fa fa-phone-alt" aria-hidden="true"></i>
  768. </span>
  769. {{$patient->cell_number}}
  770. <span class="small text-secondary ml-1">
  771. {{ $patient->cell_number_memo ? '(' . $patient->cell_number_memo . ')' : '' }}
  772. </span>
  773. </li>
  774. @endif
  775. @if($patient->phone_home)
  776. <li>
  777. <span class="aligned-icon"><i class="fa fa-home" aria-hidden="true"></i></span>
  778. {{$patient->phone_home}}
  779. </li>
  780. @endif
  781. <li class="{{empty($confirmedEmail) || $confirmedEmail === '-' ? 'screen-only' : ''}}">
  782. <span class="aligned-icon"><i class="fa fa-envelope" aria-hidden="true"></i></span>
  783. {{$confirmedEmail}}
  784. </li>
  785. <li class="screen-only hide-inside-popup">
  786. <span class="aligned-icon text-primary">
  787. <i class="fa fa-link" aria-hidden="true"></i>
  788. </span>
  789. <?php $numLinkedAccounts = $patient->linkedAccounts ? count($patient->linkedAccounts) : 0; ?>
  790. <a href="{{route('patients.view.accounts', ['patient' => $patient])}}">
  791. {{ $numLinkedAccounts === 0 ? 'No' : $numLinkedAccounts }}
  792. account{{ $numLinkedAccounts === 1 ? '' : 's' }} linked
  793. </a>
  794. </li>
  795. </ul>
  796. </div>
  797. </div>
  798. </div> <!-- z -->
  799. </div>
  800. @if($pro->pro_type === 'ADMIN')
  801. <div class="screen-only card-header py-2 d-flex align-items-center mcp-theme-1 bg-aliceblue">
  802. <b class="">Tags ({{count($patient->clientTags)}}):</b>
  803. @foreach($patient->clientTags as $tag)
  804. <div class="d-inline-flex align-items-center ml-2 py-1 px-2 rounded bg-aliceblue text-info">
  805. <span class="text-sm">{{$tag->tag}}</span>
  806. <div moe relative class="ml-2">
  807. <a href="" start show><i class="fa fa-times text-secondary on-hover-opaque"></i></a>
  808. <form url="/api/clientTag/cancel" class="mcp-theme-1 min-width-200px">
  809. <input type="hidden" name="uid" value="{{$tag->uid}}">
  810. <p class="text-nowrap text-dark">Cancel this tag?</p>
  811. <div>
  812. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  813. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  814. </div>
  815. </form>
  816. </div>
  817. </div>
  818. @endforeach
  819. <div moe relative class="ml-2">
  820. <a href="" start show class="text-sm">+ Add</a>
  821. <form url="/api/clientTag/create" class="mcp-theme-1">
  822. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  823. <div class="mb-2">
  824. <label class="text-secondary text-sm">Tag</label>
  825. <input type="text" class="form-control form-control-sm"
  826. name="tag"
  827. placeholder="Tag" required>
  828. </div>
  829. <div>
  830. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  831. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  832. </div>
  833. </form>
  834. </div>
  835. </div>
  836. @endif
  837. {{--<div class="text-container border-bottom d-flex align-items-center mcp-theme-1 px-3">
  838. @if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
  839. <div moe relative class="ml-2">
  840. <a href="" start show class="btn btn-sm btn-success text-white font-weight-bold small">Claim as MCP</a>
  841. <form url="/api/mcpRequest/claim" class="mcp-theme-1" right>
  842. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  843. <p>Claim this patient?</p>
  844. <div>
  845. <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
  846. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  847. </div>
  848. </form>
  849. </div>
  850. @endif
  851. </div>--}}
  852. <div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}}">
  853. {{--<h1 class="h3">@yield('section-title')</h1>--}}
  854. <div class="mcp-theme-1">
  855. @yield('inner-content')
  856. </div>
  857. </div>
  858. </div>
  859. </main>
  860. </div>
  861. </div>
  862. <script>
  863. (function() {
  864. function init() {
  865. $('.note-method-select').change(function() {
  866. let form = $(this).closest('form');
  867. if(this.value === 'IN_CLINIC') {
  868. form.find('.if-in-clinic').show();
  869. }
  870. else {
  871. form.find('.if-in-clinic').hide();
  872. }
  873. });
  874. $('.note-method-select').each(function() {
  875. let form = $(this).closest('form');
  876. if(this.value === 'IN_CLINIC') {
  877. form.find('.if-in-clinic').show();
  878. }
  879. else {
  880. form.find('.if-in-clinic').hide();
  881. }
  882. });
  883. }
  884. addMCInitializer('patient-add-note-popup', init, '#patient-header')
  885. }).call(window);
  886. </script>
  887. <script>
  888. (function() {
  889. function init() {
  890. $('#sidebarMenu')
  891. .off('scroll')
  892. .on('scroll', function() {
  893. localStorage.sidebarMenuScrollTop = $(this).scrollTop();
  894. });
  895. if(localStorage.sidebarMenuScrollTop) {
  896. $('#sidebarMenu').scrollTop(+localStorage.sidebarMenuScrollTop);
  897. }
  898. }
  899. addMCInitializer('sidebarMenu', init, '#sidebarMenu')
  900. }).call(window);
  901. </script>
  902. @endsection