patient.blade.php 77 KB

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