patient.blade.php 48 KB

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