patient.blade.php 54 KB

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