patient.blade.php 49 KB

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