patient.blade.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. @extends(request()->input('popupmode') ? 'layouts.empty' : 'layouts.template')
  2. <?php
  3. /** @var \App\Models\Client $patient */
  4. ?>
  5. <?php
  6. $trimLayout = true;
  7. $routeName = request()->route()->getName();
  8. $isVisitNote = ($routeName === 'patients.view.notes.view.dashboard' && @$note && !!$note->visitTemplate);
  9. $isOldClient = (date_diff(date_create(config('app.point_impl_date')), date_create($patient->created_at))->invert === 1);
  10. ?>
  11. <style media="screen">
  12. .pt-name {
  13. font-size: 1.5rem !important;
  14. }
  15. </style>
  16. @section('content')
  17. <div class="container-fluid h-100 popup-content-container">
  18. <div class="main-row h-100 {{ !request()->input('popupmode') ? '' : 'px-0' }} {{$isVisitNote ? 'autohide-leftnav' : ''}}">
  19. @if(!request()->input('popupmode'))
  20. <nav id="sidebarMenu" class="d-block bg-light sidebar collapse px-0">
  21. <div class="sidebar-sticky pt-3">
  22. <ul class="nav flex-column mcp-theme-1">
  23. <li class="nav-item">
  24. <a class="nav-link {{ strpos($routeName, 'patients.view.dashboard') === 0 ? 'active' : '' }}" href="{{ route('patients.view.dashboard', ['patient' => $patient]) }}">Dashboard</a>
  25. </li>
  26. @if($performer->pro->pro_type == 'ADMIN' && $isOldClient)
  27. <li class="nav-item">
  28. <a class="nav-link {{ strpos($routeName, 'patients.view.migrate-canvas') === 0 ? 'active' : '' }}" 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' : '' }}" href="{{ route('patients.view.canvas', ['patient' => $patient]) }}">Canvas</a>
  32. </li>
  33. @endif
  34. <li class="nav-item">
  35. @if($pro->pro_type === 'ADMIN' && $patient->mcp)
  36. <a class="nav-link {{ strpos($routeName, 'patients.view.calendar') === 0 ? 'active' : '' }}" href="{{ route('patients.view.calendar', ['patient' => $patient]) }}?opUid={{$patient->mcp->uid}}">Calendar</a>
  37. @else
  38. <a class="nav-link {{ strpos($routeName, 'patients.view.calendar') === 0 ? 'active' : '' }}" href="{{ route('patients.view.calendar', ['patient' => $patient]) }}">Calendar</a>
  39. @endif
  40. </li>
  41. @if($pro->pro_type === 'ADMIN')
  42. <li class="nav-item">
  43. <a class="nav-link" href="{{ route('patients.view.invoicing-companies', ['patient' => $patient]) }}" title="Deprecated">Invoicing</a>
  44. <ul class="m-0 p-0 nav-child-list">
  45. <li class="nav-item">
  46. <a class="nav-link {{ strpos($routeName, 'patients.view.invoicing-companies') === 0 ? 'active' : '' }}" href="{{ route('patients.view.invoicing-companies', ['patient' => $patient]) }}">Companies</a>
  47. </li>
  48. <li class="nav-item">
  49. <a class="nav-link {{ strpos($routeName, 'patients.view.invoicing-invoices') === 0 ? 'active' : '' }}" href="{{ route('patients.view.invoicing-invoices', ['patient' => $patient]) }}">Invoices</a>
  50. </li>
  51. <li class="nav-item">
  52. <a class="nav-link {{ strpos($routeName, 'patients.view.invoicing-transactions') === 0 ? 'active' : '' }}" href="{{ route('patients.view.invoicing-transactions', ['patient' => $patient]) }}">Transactions</a>
  53. </li>
  54. </ul>
  55. </li>
  56. @endif
  57. <li class="nav-item">
  58. <a class="nav-link {{ strpos($routeName, 'patients.view.appointments') === 0 ? 'active' : '' }}" href="{{ route('patients.view.appointments', ['patient' => $patient, 'forPro' => 'all', 'status' => 'all']) }}">Appointments</a>
  59. </li>
  60. {{--
  61. <li class="nav-item">
  62. <a class="nav-link {{ strpos($routeName, 'patients.view.programs') === 0 ? 'active' : '' }}"
  63. href="{{ route('patients.view.programs', ['patient' => $patient]) }}">Programs</a>
  64. </li>
  65. <li class="nav-item">
  66. <a class="nav-link {{ strpos($routeName, 'patients.view.flowsheets') === 0 ? 'active' : '' }}" href="{{ route('patients.view.flowsheets', ['patient' => $patient]) }}">Flowsheets</a>
  67. </li>
  68. --}}
  69. <li class="nav-item">
  70. <a class="nav-link {{ strpos($routeName, 'patients.view.vitals-settings') === 0 ? 'active' : '' }}" href="{{ route('patients.view.vitals-settings', ['patient' => $patient]) }}">Vitals Settings</a>
  71. </li>
  72. <li class="nav-item">
  73. <a class="nav-link {{ strpos($routeName, 'patients.view.vitals-graph') === 0 ? 'active' : '' }}" href="{{ route('patients.view.vitals-graph', ['patient' => $patient]) }}">Vitals Graph</a>
  74. </li>
  75. <li class="nav-item">
  76. <a class="nav-link {{ strpos($routeName, 'patients.view.care-months') === 0 ? 'active' : '' }}" href="{{ route('patients.view.care-months', ['patient' => $patient]) }}">Care Months</a>
  77. </li>
  78. <li class="nav-item">
  79. <a class="nav-link {{ strpos($routeName, 'patients.view.measurements') === 0 ? 'active' : '' }}" href="{{ route('patients.view.measurements', ['patient' => $patient]) }}">Measurements</a>
  80. </li>
  81. <li class="nav-item">
  82. <a class="nav-link {{ strpos($routeName, 'patients.view.notes') === 0 ? 'active' : '' }}" href="{{ route('patients.view.notes', ['patient' => $patient]) }}">Notes</a>
  83. </li>
  84. <li class="nav-item">
  85. <a class="nav-link {{ strpos($routeName, 'patients.view.generic-bills') === 0 ? 'active' : '' }}" href="{{ route('patients.view.generic-bills', ['patient' => $patient]) }}">Admin. Bills</a>
  86. </li>
  87. <li class="nav-item">
  88. <a class="nav-link {{ strpos($routeName, 'patients.view.handouts') === 0 ? 'active' : '' }}" href="{{ route('patients.view.handouts', ['patient' => $patient]) }}">Handouts</a>
  89. </li>
  90. <li class="nav-item">
  91. <a class="nav-link {{ strpos($routeName, 'patients.view.rm-setup') === 0 ? 'active' : '' }}" href="{{ route('patients.view.rm-setup', ['patient' => $patient]) }}">Remote Monitoring</a>
  92. </li>
  93. <?php /* <li class="nav-item">
  94. <a class="nav-link d-flex align-items-center {{ strpos($routeName, 'patients.view.action-items') === 0 ? 'active' : '' }}"
  95. native onclick="return false">
  96. <span class="text-dark">ERx/Orders</span>
  97. </a>
  98. <ul class="m-0 p-0 nav-child-list">
  99. <li class="nav-item">
  100. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-erx') === 0 ? 'active' : '' }}"
  101. href="{{ route('patients.view.action-items-erx', ['patient' => $patient]) }}">ERx</a>
  102. </li>
  103. <li class="nav-item">
  104. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-lab') === 0 ? 'active' : '' }}"
  105. href="{{ route('patients.view.action-items-lab', ['patient' => $patient]) }}">Lab</a>
  106. </li>
  107. <li class="nav-item">
  108. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-imaging') === 0 ? 'active' : '' }}"
  109. href="{{ route('patients.view.action-items-imaging', ['patient' => $patient]) }}">Imaging</a>
  110. </li>
  111. <li class="nav-item">
  112. <a class="nav-link {{ strpos($routeName, 'patients.view.action-items-equipment') === 0 ? 'active' : '' }}"
  113. href="{{ route('patients.view.action-items-equipment', ['patient' => $patient]) }}">Equipment</a>
  114. </li>
  115. </ul>
  116. </li> */ ?>
  117. <li class="nav-item">
  118. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-prescriptions') === 0 ? 'active' : '' }}" href="{{ route('patients.view.patient-prescriptions', ['patient' => $patient]) }}">ERx &amp; Orders</a>
  119. <?php /*
  120. <ul class="m-0 p-0 nav-child-list">
  121. <li class="nav-item">
  122. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === '' ? 'active' : '' }}"
  123. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => '']) }}">All</a>
  124. </li>
  125. <li class="nav-item">
  126. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'erx' ? 'active' : '' }}"
  127. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'erx']) }}">Drug</a>
  128. </li>
  129. <li class="nav-item">
  130. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'lab' ? 'active' : '' }}"
  131. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'lab']) }}">Lab</a>
  132. </li>
  133. <li class="nav-item">
  134. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'imaging' ? 'active' : '' }}"
  135. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'imaging']) }}">Imaging</a>
  136. </li>
  137. <li class="nav-item">
  138. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'referral' ? 'active' : '' }}"
  139. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'referral']) }}">Referral</a>
  140. </li>
  141. <li class="nav-item">
  142. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'supply' ? 'active' : '' }}"
  143. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'supply']) }}">Supply</a>
  144. </li>
  145. <li class="nav-item">
  146. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-erx') === 0 && @$type === 'other' ? 'active' : '' }}"
  147. href="{{ route('patients.view.patient-erx', ['patient' => $patient, 'type' => 'other']) }}">Other</a>
  148. </li>
  149. </ul>
  150. */ ?>
  151. </li>
  152. <li class="nav-item">
  153. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === '' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => '']) }}">Tickets</a>
  154. </li>
  155. @if($isOldClient && 0)
  156. <li class="nav-item">
  157. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient]) }}" title="Deprecated">ERx / Orders
  158. <span class="text-secondary text-sm pl-2">(dep)</span>
  159. </a>
  160. <ul class="m-0 p-0 nav-child-list">
  161. <li class="nav-item">
  162. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === '' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => '']) }}">All</a>
  163. </li>
  164. <li class="nav-item">
  165. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'erx' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'erx']) }}">ERx</a>
  166. </li>
  167. <li class="nav-item">
  168. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'lab' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'lab']) }}">Lab</a>
  169. </li>
  170. <li class="nav-item">
  171. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'imaging' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'imaging']) }}">Imaging</a>
  172. </li>
  173. <li class="nav-item">
  174. <a class="nav-link {{ strpos($routeName, 'patients.view.patient-tickets') === 0 && @$type === 'other' ? 'active' : '' }}" href="{{ route('patients.view.patient-tickets', ['patient' => $patient, 'type' => 'other']) }}">Other</a>
  175. </li>
  176. </ul>
  177. </li>
  178. @endif
  179. <li class="nav-item">
  180. <a class="nav-link {{ strpos($routeName, 'patients.view.supply-orders') === 0 ? 'active' : '' }}" href="{{ route('patients.view.supply-orders', ['patient' => $patient]) }}">Supply Orders</a>
  181. </li>
  182. <li class="nav-item">
  183. <a class="nav-link {{ strpos($routeName, 'patients.view.shipments') === 0 ? 'active' : '' }}" 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' : '' }}" href="{{ route('patients.view.incoming-reports', ['patient' => $patient]) }}">Incoming Reports</a>
  187. </li>
  188. <li class="nav-item">
  189. <a class="nav-link {{ strpos($routeName, 'patients.view.allergies') === 0 ? 'active' : '' }}" href="{{ route('patients.view.allergies', ['patient' => $patient]) }}">Allergies</a>
  190. </li>
  191. <li class="nav-item">
  192. <a class="nav-link {{ strpos($routeName, 'patients.view.medications') === 0 ? 'active' : '' }}" href="{{ route('patients.view.medications', ['patient' => $patient]) }}">Medications</a>
  193. </li>
  194. <li class="nav-item">
  195. <a class="nav-link {{ strpos($routeName, 'patients.view.dx-and-focus-areas') === 0 ? 'active' : '' }}" href="{{ route('patients.view.dx-and-focus-areas', ['patient' => $patient]) }}">Dx and
  196. Focus Areas</a>
  197. </li>
  198. <li class="nav-item">
  199. <a class="nav-link {{ strpos($routeName, 'patients.view.care-team') === 0 ? 'active' : '' }}" href="{{ route('patients.view.care-team', ['patient' => $patient]) }}">Care Team</a>
  200. </li>
  201. <li class="nav-item">
  202. <a class="nav-link {{ strpos($routeName, 'patients.view.history') === 0 ? 'active' : '' }}" href="{{ route('patients.view.history', ['patient' => $patient]) }}">History</a>
  203. </li>
  204. <li class="nav-item">
  205. <a class="nav-link {{ strpos($routeName, 'patients.view.memos') === 0 ? 'active' : '' }}" href="{{ route('patients.view.memos', ['patient' => $patient]) }}">Memos</a>
  206. </li>
  207. <li class="nav-item">
  208. <a class="nav-link {{ $routeName === 'patients.view.sms' ? 'active' : '' }}" href="{{ route('patients.view.sms', ['patient' => $patient]) }}">SMS</a>
  209. </li>
  210. <li class="nav-item">
  211. <a class="nav-link {{ strpos($routeName, 'patients.view.sms-numbers') === 0 ? 'active' : '' }}" href="{{ route('patients.view.sms-numbers', ['patient' => $patient]) }}">SMS Numbers</a>
  212. </li>
  213. <li class="nav-item">
  214. <a class="nav-link {{ $routeName === 'patients.view.outgoing-sms-log' ? 'active' : '' }}" href="{{ route('patients.view.outgoing-sms-log', ['patient' => $patient]) }}">Outgoing SMS Log</a>
  215. </li>
  216. <li class="nav-item">
  217. <a class="nav-link {{ strpos($routeName, 'patients.view.documents') === 0 ? 'active' : '' }}" href="{{ route('patients.view.documents', ['patient' => $patient]) }}">Documents</a>
  218. </li>
  219. <li class="nav-item">
  220. <a class="nav-link {{ strpos($routeName, 'patients.view.settings') === 0 ? 'active' : '' }}" href="{{ route('patients.view.settings', ['patient' => $patient]) }}">Settings</a>
  221. </li>
  222. <li class="nav-item">
  223. <a class="nav-link {{ strpos($routeName, 'patients.view.sms-reminders') === 0 ? 'active' : '' }}" href="{{ route('patients.view.sms-reminders', ['patient' => $patient]) }}">SMS Reminders</a>
  224. </li>
  225. <li class="nav-item">
  226. <a class="nav-link {{ strpos($routeName, 'patients.view.measurement-confirmation-numbers') === 0 ? 'active' : '' }}" href="{{ route('patients.view.measurement-confirmation-numbers', ['patient' => $patient]) }}">Meas. Conf. Numbers</a>
  227. </li>
  228. <li class="nav-item">
  229. <a class="nav-link {{ strpos($routeName, 'patients.view.pros') === 0 ? 'active' : '' }}" href="{{ route('patients.view.pros', ['patient' => $patient]) }}">Pros</a>
  230. </li>
  231. @if($performer->pro->pro_type == 'ADMIN')
  232. <li class="nav-item">
  233. <a class="nav-link {{ strpos($routeName, 'patients.view.pro-changes') === 0 ? 'active' : '' }}" href="{{ route('patients.view.pro-changes', ['patient' => $patient]) }}">Client Pro Changes</a>
  234. </li>
  235. <li class="nav-item">
  236. <a class="nav-link {{ strpos($routeName, 'patients.view.client-pro-access') === 0 ? 'active' : '' }}" href="{{ route('patients.view.client-pro-access', ['patient' => $patient]) }}">Client Pro Access</a>
  237. </li>
  238. <li class="nav-item">
  239. <a class="nav-link {{ strpos($routeName, 'patients.view.client-documents') === 0 ? 'active' : '' }}" href="{{ route('patients.view.client-documents', ['patient' => $patient]) }}">Client Documents</a>
  240. </li>
  241. @endif
  242. <li class="nav-item">
  243. <a class="nav-link" href="/patients/view/{{ $patient->uid }}/intake">Intake</a>
  244. </li>
  245. <li class="nav-item">
  246. <a class="nav-link {{ strpos($routeName, 'patients.view.primary-coverage') === 0 ? 'active' : '' }}" href="{{ route('patients.view.primary-coverage', $patient) }}">Primary Coverage</a>
  247. </li>
  248. @if($performer->pro->pro_type == 'ADMIN' || $performer->pro->id == $patient->default_na_pro_id)
  249. <li class="nav-item">
  250. <a class="nav-link {{ strpos($routeName, 'patients.view.insurance-coverage') === 0 ? 'active' : '' }}" href="{{ route('patients.view.insurance-coverage-history', $patient) }}">Insurance Coverage History</a>
  251. </li>
  252. @if($performer->pro->pro_type == 'ADMIN')
  253. <li class="nav-item">
  254. <a class="nav-link {{ strpos($routeName, 'patients.view.mcp-requests') === 0 ? 'active' : '' }}" href="{{ route('patients.view.mcp-requests', $patient) }}">MCP Requests</a>
  255. </li>
  256. <li class="nav-item">
  257. <a class="nav-link {{ strpos($routeName, 'patients.view.eligible-refreshes') === 0 ? 'active' : '' }}" href="{{ route('patients.view.eligible-refreshes', $patient) }}">Eligible Refreshes</a>
  258. </li>
  259. <li class="nav-item">
  260. <a class="nav-link {{ strpos($routeName, 'patients.view.claims-resolver') === 0 ? 'active' : '' }}" href="{{ route('patients.view.claims-resolver', $patient) }}">Claims Resolver</a>
  261. </li>
  262. @endif
  263. @endif
  264. <li class="nav-item">
  265. <a class="nav-link {{ strpos($routeName, 'patients.view.accounts') === 0 ? 'active' : '' }}" href="{{ route('patients.view.accounts', $patient) }}">Linked Accounts</a>
  266. </li>
  267. <li class="nav-item">
  268. <a class="nav-link {{ $routeName === 'patients.view.review-requests' ? 'active' : '' }}" href="{{ route('patients.view.review-requests', ['patient' => $patient]) }}">Review Requests</a>
  269. </li>
  270. </ul>
  271. <div class="mt-3 mcp-theme-1">
  272. @yield('left-nav-content')
  273. </div>
  274. </div>
  275. </nav>
  276. @endif
  277. <main role="main" class="w-100 {{$trimLayout || $isVisitNote ? 'p-0' : ''}}">
  278. @if($pro->is_enrolled_as_mcp && !$patient->mcp)
  279. <div class="d-flex align-items-center alert alert-info bg-white mcp-theme-1 p-3 hide-inside-ticket-popup m-1">
  280. <div class="font-size-16 mr-3">
  281. <i class="fa fa-exclamation-triangle text-warning-mellow"></i>
  282. This patient currently does not have an MCP assigned.
  283. </div>
  284. <div class="d-flex align-items-center">
  285. <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>
  286. <div class="in-conv-confirmed d-none align-items-center">
  287. <i class="fa fa-chevron-right mx-3 text-secondary"></i>
  288. <div moe class=" hide-inside-popup">
  289. <a href="" start show class="btn btn-primary font-weight-bold text-white">
  290. Assign myself as the MCP for this patient
  291. </a>
  292. <form url="/api/client/putMcp" class="mcp-theme-1">
  293. <input type="hidden" name="uid" value="{{$patient->uid}}">
  294. <input type="hidden" name="mcpProUid" value="{{$pro->uid}}">
  295. <p>Are you sure?</p>
  296. <div>
  297. <button submit class="btn btn-sm btn-primary mr-2">
  298. Submit
  299. </button>
  300. <button cancel class="btn btn-sm btn-default border">
  301. Cancel
  302. </button>
  303. </div>
  304. </form>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. @endif
  310. @if($patient->has_mcp_done_onboarding_visit !== 'YES' && $patient->is_mcp_onboarding_active === 'NO')
  311. <div class="alert alert-warning mt-3 mcp-theme-1 p-3 hide-inside-ticket-popup">
  312. <div class="font-weight-bold text-dark font-size-16">MCP onboarding is not active for this patient.</div>
  313. <div class="text-secondary p-2 border mt-2 bg-light">
  314. <div class="font-weight-bold">{{$patient->why_is_mcp_onboarding_not_active_category}}</div>
  315. <div>{{$patient->why_is_mcp_onboarding_not_active_memo}}</div>
  316. </div>
  317. </div>
  318. @endif
  319. <div class="card {{$trimLayout || $isVisitNote ? 'card m-0 border-0 rounded-0' : 'my-3'}}" id="patient-header">
  320. <div id="patient-header-content">
  321. <div class="@if($patient->client_engagement_status_category == 'DUMMY') alert-warning @endif hide-inside-ticket-popup">
  322. @include('layouts.patient-header')
  323. </div>
  324. </div>
  325. <?php $iCM = $patient->isAwaitingRMCommunicationFromMCP(); ?>
  326. @if($iCM !== FALSE)
  327. <div class="d-block mb-2 mx-2 p-2 alert alert-warning mcp-theme-1 border border-warning text-dark rounded-0 ">
  328. <span class="font-size-13">
  329. <i class="fa fa-exclamation-triangle mr-1"></i>
  330. This patient has not had RPM-related interactive communication this month. Please document interactive time
  331. @if(request()->route()->getName() === 'patients.view.care-months.view.dashboard' && @$careMonth && @$careMonth->id === $iCM->id)
  332. here.
  333. @else
  334. <a href="{{route('patients.view.care-months.view.dashboard', ['patient' => $patient, 'careMonth' => $iCM])}}"
  335. class="font-weight-bold d-inline">here</a>.
  336. @endif
  337. This time may not be billed towards a note.
  338. </span>
  339. </div>
  340. @endif
  341. @if($pro->pro_type === 'ADMIN')
  342. <div class="screen-only p-2 d-flex align-items-start justify-content-between mcp-theme-1 bg-aliceblue hide-inside-popup border-top">
  343. <div class="d-flex align-items-center">
  344. <b class="">Tags ({{count($patient->clientTags)}}):</b>
  345. @foreach($patient->clientTags as $tag)
  346. <div class="d-inline-flex align-items-center ml-2 py-1 px-2 rounded bg-aliceblue text-info">
  347. <span class="text-sm">{{$tag->tag}}</span>
  348. <div moe relative class="ml-2">
  349. <a href="" start show><i class="fa fa-times text-secondary on-hover-opaque"></i></a>
  350. <form url="/api/clientTag/cancel" class="mcp-theme-1 min-width-200px">
  351. <input type="hidden" name="uid" value="{{$tag->uid}}">
  352. <p class="text-nowrap text-dark">Cancel this tag?</p>
  353. <div>
  354. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  355. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  356. </div>
  357. </form>
  358. </div>
  359. </div>
  360. @endforeach
  361. <div moe relative class="ml-2">
  362. <a href="" start show class="text-sm">+ Add</a>
  363. <form url="/api/clientTag/create" class="mcp-theme-1">
  364. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  365. <div class="mb-2">
  366. <label class="text-secondary text-sm">Tag</label>
  367. <input type="text" class="form-control form-control-sm" name="tag" placeholder="Tag" required>
  368. </div>
  369. <div>
  370. <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
  371. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  372. </div>
  373. </form>
  374. </div>
  375. </div>
  376. <div class="d-flex">
  377. <span class="mr-2"><b>Best Time to Call:</b> {{ $patient->best_time_to_call ?? '-' }}</span>
  378. @include('app.patient.partials.update-best-time-to-call')
  379. </div>
  380. </div>
  381. @endif
  382. {{--<div class="text-container border-bottom d-flex align-items-center mcp-theme-1 px-3">
  383. @if($patient->mcp_pro_id !== $pro->id && $patient->active_mcp_request_id)
  384. <div moe relative class="ml-2">
  385. <a href="" start show class="btn btn-sm btn-success text-white font-weight-bold small">Claim as MCP</a>
  386. <form url="/api/mcpRequest/claim" class="mcp-theme-1" right>
  387. <input type="hidden" name="clientUid" value="{{$patient->uid}}">
  388. <p>Claim this patient?</p>
  389. <div>
  390. <button submit class="btn btn-sm btn-primary mr-2">Yes</button>
  391. <button cancel class="btn btn-sm btn-default border">Cancel</button>
  392. </div>
  393. </form>
  394. </div>
  395. @endif
  396. </div>--}}
  397. <div class="card-body {{$routeName === 'patients.view.notes.view.dashboard' ? 'p-0' : ''}} border-top">
  398. {{--<h1 class="h3">@yield('section-title')</h1>--}}
  399. <div class="mcp-theme-1">
  400. @yield('inner-content')
  401. </div>
  402. </div>
  403. </div>
  404. </main>
  405. </div>
  406. </div>
  407. <script>
  408. (function() {
  409. function init() {
  410. $('.note-method-select').change(function() {
  411. let form = $(this).closest('form');
  412. if (this.value === 'IN_CLINIC') {
  413. form.find('.if-in-clinic').show();
  414. } else {
  415. form.find('.if-in-clinic').hide();
  416. }
  417. });
  418. $('.note-method-select').each(function() {
  419. let form = $(this).closest('form');
  420. if (this.value === 'IN_CLINIC') {
  421. form.find('.if-in-clinic').show();
  422. } else {
  423. form.find('.if-in-clinic').hide();
  424. }
  425. });
  426. }
  427. addMCInitializer('patient-add-note-popup', init, '#patient-header')
  428. }).call(window);
  429. </script>
  430. <script>
  431. (function() {
  432. function init() {
  433. let sbMenu = $('#sidebarMenu');
  434. sbMenu
  435. .off('scroll')
  436. .on('scroll', function() {
  437. localStorage.sidebarMenuScrollTop = $(this).scrollTop();
  438. });
  439. if(localStorage.sidebarMenuScrollTop) {
  440. sbMenu.scrollTop(+localStorage.sidebarMenuScrollTop);
  441. let sbMenuPos = sbMenu.offset(),
  442. activeItem = sbMenu.find('.nav-item>.nav-link.active').first(),
  443. activeItemPos = activeItem.offset();
  444. if(activeItem.length) {
  445. if(activeItemPos.top < sbMenuPos.top || (activeItemPos.top + activeItem.outerHeight(true)) > (sbMenuPos.top + sbMenu.outerHeight(true))) {
  446. activeItem[0].scrollIntoView({behavior : "auto", block: "nearest"});
  447. }
  448. }
  449. }
  450. }
  451. addMCInitializer('sidebarMenu', init, '#sidebarMenu')
  452. }).call(window);
  453. </script>
  454. @endsection