patient.blade.php 54 KB

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