web.php 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. /*
  14. * if no pro performer, then redirect to /login2
  15. * [Cell Number] [Password] field -> proLogInWithPassword -> /pro/dashboard
  16. * -> they are authenticated in... see the home dashboard... logout button to -> /login
  17. */
  18. Route::get('login', 'LoginController@showLoginForm')->name('login');
  19. Route::post('login', 'LoginController@login');
  20. Route::get('logout', 'LoginController@logout');
  21. Route::get('request_password_reset', 'LoginController@showRequestPasswordReset')->name('request_password_reset');
  22. Route::post('request_password_reset', 'LoginController@processRequestPasswordReset')->name('process_request_password_reset');
  23. Route::get('self_reset_password', 'LoginController@showSelfResetPassword')->name('self_reset_password');
  24. Route::post('self_reset_password', 'LoginController@processSelfResetPassword')->name('process_self_reset_password');
  25. Route::get('/pro_log_in_with_session_key/{sessionKey}/{appAccessUID?}', 'LoginController@loginWithSessionKey')->name('login_with_session_key');
  26. Route::post('logout', 'LoginController@logout')->name('logout');
  27. Route::post('/confirm_sms_auth_token', 'HomeController@postConfirmSmsAuthToken')->name('post-confirm_sms_auth_token');
  28. Route::post('/resend_sms_auth_token', 'HomeController@resendSmsAuthToken')->name('post-resend_sms_auth_token');
  29. Route::post('/set_password', 'HomeController@postSetPassword')->name('post-set_password');
  30. Route::post('/set_security_questions', 'HomeController@postSetSecurityQuestions')->name('post-set_security_questions');
  31. Route::get("/guest/section/{accessToken}", 'GuestController@section')->name('guest_section_access');
  32. Route::get("/guest/handout/{handoutClientUid}", 'GuestController@handout')->name('guest_handout_access');
  33. Route::get("/appointment-confirmation/{appointmentUid}", 'GuestController@appointmentConfirmation')->name('appointment_confirmation');
  34. Route::post("/process-appointment-confirmation", 'GuestController@processAppointmentConfirmation')->name('process-appointment_confirmation');
  35. Route::get('/ticket-download-as-pdf/{ticket}', 'TicketController@downloadAsPdf')->name('ticket-download-as-pdf');
  36. Route::get('/prescription-download-as-pdf/{prescription}', 'PatientController@downloadPrescriptionAsPdf')->name('prescription-download-as-pdf');
  37. Route::any('/prescription-transmit/{prescription}', 'PatientController@transmitPrescription')->name('prescription-transmit');
  38. Route::get('/get-ticket-faxes/{ticket}', 'TicketController@getTicketFaxes')->name('get-ticket-faxes');
  39. Route::middleware('pro.auth')->group(function () {
  40. //complete authentication
  41. Route::get('/confirm_sms_auth_token', 'HomeController@confirmSmsAuthToken')->name('confirm_sms_auth_token');
  42. Route::get('/set_password', 'HomeController@setPassword')->name('set_password');
  43. Route::get('/set_security_questions', 'HomeController@setSecurityQuestions')->name('set_security_questions');
  44. Route::get('/blank', 'HomeController@blank')->name('blank');
  45. Route::get('/', 'HomeController@dashboard')->name('dashboard');
  46. Route::get('/pro-dashboard-measurements-tab/{page?}', 'HomeController@dashboardMeasurementsTab')->name('dashboard-measurements-tab');
  47. Route::get('/new-patient', 'HomeController@newPatient')->name('new-patient');
  48. Route::get('/new-non-mcn-patient', 'HomeController@newNonMcnPatient')->name('new-non-mcn-patient');
  49. Route::get('/pros/{filter?}', 'HomeController@patients')->name('pros');
  50. Route::get('/unmapped-sms/{filter?}', 'HomeController@unmappedSMS')->name('unmapped-sms');
  51. Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
  52. Route::name('admin.')->prefix('a')->middleware('pro.auth.admin')->group(function () {
  53. // TODO
  54. Route::get('dashboard', 'HomeController@dashboard_ADMIN')->name('dashboard');
  55. Route::get('pros', 'AdminController@patients')->name('pros');
  56. Route::get('notes', 'AdminController@notes')->name('notes');
  57. Route::get('notes-pending-summary-suggestion', 'AdminController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
  58. Route::get('notes-rejected-summary-suggestion', 'AdminController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
  59. Route::get('appointments', 'AdminController@appointments')->name('appointments');
  60. Route::get('bills', 'AdminController@bills')->name('bills');
  61. Route::get('erx-and-orders', 'AdminController@erx_and_orders')->name('erx_and_orders');
  62. Route::get('reports', 'AdminController@reports')->name('reports');
  63. Route::get('supply-orders', 'AdminController@supply_orders')->name('supply_orders');
  64. Route::get('get-create-new-patient-script-template', 'AdminController@getCreateNewPatientScriptTemplate')->name('getCreateNewPatientScriptTemplate');
  65. });
  66. Route::name('practice-management.')->prefix('practice-management')->group(function () {
  67. Route::get('rpm-matrix', 'PracticeManagementController@rpmMatrix')->name('rpmMatrix');
  68. Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
  69. Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
  70. Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');
  71. Route::get('financial-transactions', 'PracticeManagementController@financialTransactions')->name('financialTransactions');
  72. Route::get('bills-under-processing', 'PracticeManagementController@billsUnderProcessing')->name('bills-under-processing');
  73. Route::get('pending-bills-to-sign', 'PracticeManagementController@pendingBillsToSign')->name('pendingBillsToSign');
  74. Route::get('hr', 'PracticeManagementController@hr')->name('hr');
  75. Route::get('direct-deposit-settings', 'PracticeManagementController@directDepositSettings')->name('directDepositSettings');
  76. Route::get('w9', 'PracticeManagementController@w9')->name('w9');
  77. Route::get('contract', 'PracticeManagementController@contract')->name('contract');
  78. Route::get('notes/{filter?}', 'PracticeManagementController@notes')->name('notes');
  79. Route::get('dna-notes-pending-mcp-sign', 'PracticeManagementController@dnaNotesPendingMcpSign')->name('dna-notes-pending-mcp-sign');
  80. Route::get('na-billable-signed-notes/{filter?}', 'PracticeManagementController@naBillableSignedNotes')->name('na-billable-signed-notes');
  81. Route::get('bills/{filter?}', 'PracticeManagementController@bills')->name('bills');
  82. Route::get('rm-bills-to-sign', 'PracticeManagementController@rmBillsToSign')->name('rm-bills-to-sign');
  83. Route::get('unacknowledged-cancelled-bills', 'PracticeManagementController@unacknowledgedCancelledBills')->name('unacknowledged-cancelled-bills');
  84. Route::get('my-tickets/{filter?}', 'PracticeManagementController@myTickets')->name('myTickets');
  85. Route::get('my-text-shortcuts', 'PracticeManagementController@myTextShortcuts')->name('myTextShortcuts');
  86. Route::get('my-favorites/{filter?}', 'PracticeManagementController@myFavorites')->name('myFavorites');
  87. Route::get('patients-without-coverage/{filter?}', 'PracticeManagementController@patientsWithoutCoverage')->name('patients-without-coverage');
  88. Route::get('pro-availability/{proUid?}', 'PracticeManagementController@proAvailability')->name('proAvailability');
  89. Route::get('calendar/{proUid?}', 'PracticeManagementController@calendar')->name('proCalendar');
  90. Route::get('billing-manager/{proUid?}', 'PracticeManagementController@billingManager')->name('billingManager');
  91. Route::get('cellular-device-manager/{proUid?}', 'PracticeManagementController@cellularDeviceManager')->name('cellularDeviceManager');
  92. Route::get('rm-launch-and-clean', 'PracticeManagementController@rmLaunchAndClean')->name('rm-launch-and-clean');
  93. Route::get('process-claims', 'PracticeManagementController@processClaims')->name('process-claims');
  94. Route::get('process-notes', 'PracticeManagementController@processNotes')->name('process-notes');
  95. Route::get('notes-processing-center', 'PracticeManagementController@notesProcessingCenter')->name('notes-processing-center');
  96. Route::get('picked-notes', 'PracticeManagementController@pickedNotes')->name('picked-notes');
  97. Route::get('bad-notes', 'PracticeManagementController@badNotes')->name('bad-notes');
  98. Route::get('done-notes', 'PracticeManagementController@doneNotes')->name('done-notes');
  99. Route::get('get-next-note/{mode}', 'PracticeManagementController@getNextNote')->name('get-next-note');
  100. Route::get('my-teams', 'PracticeManagementController@myTeams')->name('my-teams');
  101. Route::get('patients-accounts-invites', 'PracticeManagementController@patientsAccountsInvites')->name('patientsAccountsInvites');
  102. Route::get('clients-bdt-devices', 'PracticeManagementController@clientsBdtDevices')->name('clientsBdtDevices');
  103. Route::get('memos', 'PracticeManagementController@memos')->name('memos');
  104. Route::get('segment-templates', 'PracticeManagementController@segmentTemplates')->name('segmentTemplates');
  105. Route::get('visit-templates', 'PracticeManagementController@visitTemplates')->name('visitTemplates');
  106. Route::get('visit-template/{visitTemplate}', 'PracticeManagementController@visitTemplate')->name('visitTemplate');
  107. Route::get('client-ccm-rm-status', 'PracticeManagementController@clientCcmRmStatus')->name('client-ccm-rm-status');
  108. Route::get('hcp-note-activity', 'PracticeManagementController@hcpNoteActivity')->name('hcp-note-activity');
  109. Route::middleware('pro.auth.admin')->group(function () {
  110. Route::get('rm-action-report', 'PracticeManagementController@rmActionReport')->name('rmActionReport');
  111. Route::get('remote-monitoring-report', 'PracticeManagementController@remoteMonitoringReport')->name('remoteMonitoringReport');
  112. // BILLING REPORT
  113. Route::get('billing-report', 'PracticeManagementController@billingReport')->name('billing-report');
  114. Route::get('patient-claim-summary/{proUid?}', 'PracticeManagementController@patientClaimSummary')->name('patientClaimSummary');
  115. Route::get('cellular-measurements', 'PracticeManagementController@cellularMeasurements')->name('cellularMeasurements');
  116. Route::get('processing-bill-matrix/{proUid?}/{filter?}', 'PracticeManagementController@processingBillMatrix')->name('processingBillMatrix');
  117. Route::get('pro-financials/{proUid?}', 'PracticeManagementController@proFinancials')->name('pro-financials');
  118. //Route::get('hcp-bill-matrix/{proUid?}', 'PracticeManagementController@hcpBillMatrix')->name('hcpBillMatrix');
  119. Route::get('bill-matrix/{proUid?}', 'PracticeManagementController@billMatrix')->name('billMatrix');
  120. Route::get('tickets', 'PracticeManagementController@tickets')->name('tickets');
  121. Route::get('medicare-partb-claims', 'PracticeManagementController@medicarePartBClaims')->name('medicarePartBClaims');
  122. Route::get('claims-download', 'PracticeManagementController@downloadClaims')->name('download-claims');
  123. Route::get('treatment-service-util', 'PracticeManagementController@treatmentServiceUtil')->name('treatmentServiceUtil');
  124. Route::get('claims', 'PracticeManagementController@claims')->name('claims');
  125. // old supply-orders & shipments matrices
  126. // Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  127. // Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  128. // v2 supply-orders & shipments management (wh)
  129. Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  130. Route::get('supply-orders/ready-to-ship', 'PracticeManagementController@supplyOrdersReadyToShip')->name('supply-orders-ready-to-ship');
  131. Route::get('supply-orders/shipment-underway', 'PracticeManagementController@supplyOrdersShipmentUnderway')->name('supply-orders-shipment-underway');
  132. Route::get('supply-orders/hanging', 'PracticeManagementController@supplyOrdersHanging')->name('supply-orders-hanging');
  133. Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  134. Route::get('shipments/ready-to-print', 'PracticeManagementController@shipmentsReadyToPrint')->name('shipments-ready-to-print');
  135. Route::get('shipments/waiting-for-picker', 'PracticeManagementController@shipmentsShipmentUnderway')->name('shipments-waiting-for-picker');
  136. Route::get('shipments/view/{shipment}', 'PracticeManagementController@shipment')->name('shipment');
  137. Route::get('shipments-multi-print/{ids?}', 'PracticeManagementController@shipmentsMultiPrint')->name('shipments-multi-print');
  138. Route::get('packs-multi-print', 'PracticeManagementController@packsMultiPrint')->name('packs-multi-print');
  139. Route::get('packs-multi-pdf/{ids?}', 'PracticeManagementController@packsMultiPDF')->name('packs-multi-pdf');
  140. Route::get('handouts', 'PracticeManagementController@handouts')->name('handouts');
  141. Route::get('generic-bills', 'PracticeManagementController@genericBills')->name('generic-bills');
  142. Route::get('mc-code-checks', 'PracticeManagementController@mcCodeChecks')->name('mc-code-checks');
  143. });
  144. Route::get('supply-orders/cancelled-but-unacknowledged', 'PracticeManagementController@supplyOrdersCancelledButUnacknowledged')->name('supply-orders-cancelled-but-unacknowledged');
  145. Route::get('supply-orders/unsigned', 'PracticeManagementController@supplyOrdersUnsigned')->name('supply-orders-unsigned');
  146. Route::get('remote-monitoring', 'PracticeManagementController@remoteMonitoring')->name('remote-monitoring');
  147. Route::get('remote-monitoring-count', 'PracticeManagementController@remoteMonitoringCount')->name('remote-monitoring-count');
  148. Route::get('remote-monitoring-admin', 'PracticeManagementController@remoteMonitoringAdmin')->name('remote-monitoring-admin');
  149. Route::get('remote-monitoring-admin-count', 'PracticeManagementController@remoteMonitoringAdminCount')->name('remote-monitoring-admin-count');
  150. //stat tree stuff
  151. Route::name('clauses.')->prefix('clauses/')->group(function () {
  152. Route::get('', 'ClauseController@list')->name('list');
  153. Route::get('replace-all', 'ClauseController@replaceAllPage')->name('replaceAllPage');
  154. });
  155. Route::name('statTrees.')->prefix('stat-trees')->group(function () {
  156. Route::get('', 'StatTreeController@list')->name('list');
  157. Route::get('create', 'StatTreeController@createPage')->name('createPage');
  158. Route::name('view.')->prefix('view/{statTree}')->group(function () {
  159. Route::get('', 'StatTreeController@dashboard2')->name('dashboard');
  160. Route::get('edit', 'StatTreeController@edit')->name('edit');
  161. Route::get('clausesJSON', 'StatTreeController@clausesJSON')->name('clausesJSON');
  162. Route::get('linesJSON', 'StatTreeController@linesJSON')->name('linesJSON');
  163. Route::get('old', 'StatTreeController@dashboard')->name('dashboard2');
  164. });
  165. Route::post('instantiate/{statTree}', 'StatTreeController@instantiate')->name('instantiate');
  166. Route::post('clone/{statTree}', 'StatTreeController@clone')->name('clone');
  167. });
  168. Route::name('statTreeLines.')->prefix('stat-tree-lines/')->group(function () {
  169. Route::get('', 'StatTreeLineController@list')->name('list');
  170. Route::name('view.')->prefix('view/{statTreeLine}')->group(function () {
  171. Route::get('', 'StatTreeLineController@dashboard')->name('dashboard');
  172. });
  173. Route::get('view-data/{line}', 'StatTreeLineController@viewData')->name('view-data');
  174. });
  175. // APIs
  176. Route::name('api.')->group(function () {
  177. //Clause
  178. Route::name('clause.')->prefix('clause/')->group(function () {
  179. Route::post('replace-all', 'ClauseController@replaceAll')->name('replaceAll');
  180. Route::post('create', 'ClauseController@create')->name('create');
  181. Route::post('update', 'ClauseController@update')->name('update');
  182. Route::post('remove', 'ClauseController@remove')->name('remove');
  183. });
  184. //Clause Arg
  185. Route::name('clauseArg.')->prefix('clause-arg/')->group(function () {
  186. Route::post('create', 'ClauseArgController@create')->name('create');
  187. Route::post('update', 'ClauseArgController@update')->name('update');
  188. Route::post('remove', 'ClauseArgController@remove')->name('remove');
  189. });
  190. //Stat Tree
  191. Route::name('statTree.')->prefix('stat-tree/')->group(function () {
  192. Route::post('create', 'StatTreeController@create')->name('create');
  193. Route::post('remove', 'StatTreeController@remove')->name('remove');
  194. Route::post('update-basic', 'StatTreeController@updateBasic')->name('updateBasic');
  195. Route::post('refresh-count', 'StatTreeController@refreshCount')->name('refreshCount');
  196. Route::post('replace-all-lines', 'StatTreeController@replaceAllLines')->name('replaceAllLines');
  197. Route::post('replace-all-lines-json', 'StatTreeController@replaceAllLinesJSON')->name('replaceAllLinesJSON');
  198. Route::post('refresh-tree-count-queries', 'StatTreeController@refreshTreeCountQueries')->name('refreshTreeCountQueries');
  199. Route::post('get-counts-for-pro', 'StatTreeController@getCountsForPro')->name('getCountsForPro');
  200. });
  201. //Stat Tree Line
  202. Route::name('statTreeLine.')->prefix('stat-tree-line/')->group(function () {
  203. Route::post('refresh-count-query', 'StatTreeLineController@refreshCountQuery')->name('refreshCountQuery');
  204. Route::post('create', 'StatTreeLineController@create')->name('create');
  205. Route::post('remove', 'StatTreeLineController@remove')->name('remove');
  206. });
  207. //Stat Tree Line Report Column
  208. Route::name('statTreeLineReportColumn.')->prefix('stat-tree-line-report-column/')->group(function () {
  209. Route::post('create', 'StatTreeLineReportColumnController@create')->name('create');
  210. Route::post('update', 'StatTreeLineReportColumnController@update')->name('update');
  211. Route::post('remove', 'StatTreeLineReportColumnController@remove')->name('remove');
  212. });
  213. });
  214. });
  215. Route::name('pros.view.')->prefix('pros/view/{patient}')->group(function () {
  216. Route::middleware(['pro.auth.can-access-patient', 'client.shadow-of-pro'])->group(function () {
  217. Route::get('', 'PatientController@dashboard')->name('dashboard');
  218. Route::get('canvas-migrate', 'PatientController@canvasMigrate')->name('migrate-canvas');
  219. Route::get('intake', 'PatientController@intake')->name('intake');
  220. Route::get('canvas', 'PatientController@canvas')->name('canvas');
  221. Route::get('intake', 'PatientController@intake')->name('intake');
  222. Route::get('care-plan', 'PatientController@carePlan')->name('care-plan');
  223. Route::get('medications', 'PatientController@medications')->name('medications');
  224. Route::get('dx-and-focus-areas', 'PatientController@dxAndFocusAreas')->name('dx-and-focus-areas');
  225. Route::get('care-team', 'PatientController@careTeam')->name('care-team');
  226. Route::get('devices', 'PatientController@devices')->name('devices');
  227. Route::get('measurements', 'PatientController@measurements')->name('measurements');
  228. Route::get('labs-and-studies', 'PatientController@labsAndStudies')->name('labs-and-studies');
  229. Route::get('history', 'PatientController@history')->name('history');
  230. Route::get('memos', 'PatientController@memos')->name('memos');
  231. Route::get('sms', 'PatientController@sms')->name('sms');
  232. Route::get('sms-numbers', 'PatientController@smsNumbers')->name('sms-numbers');
  233. Route::get('immunizations', 'PatientController@immunizations')->name('immunizations');
  234. Route::get('allergies', 'PatientController@allergies')->name('allergies');
  235. Route::get('action-items', 'PatientController@actionItems')->name('action-items');
  236. Route::get('action-items-erx/view/{ticket}', 'PatientController@actionItemsErxSingle')->name('action-items-erx-single');
  237. Route::get('action-items-lab/view/{ticket}', 'PatientController@actionItemsLabSingle')->name('action-items-lab-single');
  238. Route::get('action-items-imaging/view/{ticket}', 'PatientController@actionItemsImagingSingle')->name('action-items-imaging-single');
  239. Route::get('action-items-equipment/view/{ticket}', 'PatientController@actionItemsEquipmentSingle')->name('action-items-equipment-single');
  240. Route::get('action-items-other/view/{ticket}', 'PatientController@actionItemsOtherSingle')->name('action-items-other-single');
  241. Route::get('action-items-erx/{filter?}', 'PatientController@actionItemsErx')->name('action-items-erx');
  242. Route::get('action-items-lab/{filter?}', 'PatientController@actionItemsLab')->name('action-items-lab');
  243. Route::get('action-items-imaging/{filter?}', 'PatientController@actionItemsImaging')->name('action-items-imaging');
  244. Route::get('action-items-equipment/{filter?}', 'PatientController@actionItemsEquipment')->name('action-items-equipment');
  245. Route::get('action-items-other/{filter?}', 'PatientController@actionItemsOther')->name('action-items-other');
  246. Route::get('notes/{filter?}', 'PatientController@notes')->name('notes');
  247. Route::name('notes.view.')->prefix('notes/view/{note}')->group(function () {
  248. Route::get('', 'NoteController@dashboard')->name('dashboard');
  249. Route::get('sign-confirmation', 'NoteController@signConfirmation')->name('sign-confirmation');
  250. Route::get('section-view/{section}/{view}/{page?}', 'NoteController@sectionView')->name('section-view');
  251. });
  252. Route::get('generic-bills', 'PatientController@genericBills')->name('generic-bills');
  253. Route::get('handouts', 'PatientController@handouts')->name('handouts');
  254. Route::get('rm-setup', 'PatientController@rmSetup')->name('rm-setup');
  255. Route::get('settings', 'PatientController@settings')->name('settings');
  256. Route::get('sms-reminders', 'PatientController@smsReminders')->name('sms-reminders');
  257. Route::get('measurement-confirmation-numbers', 'PatientController@measurementConfirmationNumbers')->name('measurement-confirmation-numbers');
  258. Route::get('pros', 'PatientController@pros')->name('pros');
  259. Route::get('account', 'PatientController@account')->name('account');
  260. Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
  261. Route::get('documents', 'PatientController@documents')->name('documents');
  262. Route::get('incoming-reports/{currentReport?}', 'PatientController@incomingReports')->name('incoming-reports');
  263. Route::get('education', 'PatientController@education')->name('education');
  264. Route::get('messaging', 'PatientController@messaging')->name('messaging');
  265. Route::get('duplicate', 'PatientController@duplicate')->name('duplicate');
  266. Route::get('care-months', 'PatientController@careMonths')->name('care-months');
  267. Route::name('care-months.view.')->prefix('care-months/view/{careMonth}')->group(function () {
  268. Route::get('', 'CareMonthController@dashboard')->name('dashboard');
  269. });
  270. // appointment calendar
  271. Route::get('calendar/{currentAppointment?}', 'PatientController@calendar')->name('calendar');
  272. // programs
  273. Route::get('programs/{filter?}', 'PatientController@programs')->name('programs');
  274. // flowsheets
  275. Route::get('flowsheets/{filter?}', 'PatientController@flowsheets')->name('flowsheets');
  276. // vitals-settings
  277. Route::get('vitals-settings/{filter?}', 'PatientController@vitalsSettings')->name('vitals-settings');
  278. // vitals-graph
  279. Route::get('vitals-graph/{filter?}', 'PatientController@vitalsGraph')->name('vitals-graph');
  280. // tickets (old/deprecated)
  281. Route::get('tickets/{type?}/{currentTicket?}', 'PatientController@tickets')->name('patient-tickets');
  282. // prescriptions (new)
  283. Route::get('prescriptions/{type?}/{currentErx?}', 'PatientController@prescriptions')->name('patient-prescriptions');
  284. Route::get('prescriptions-popup/{type?}/{currentErx?}', 'PatientController@prescriptionsPopup')->name('patient-prescriptions-popup');
  285. Route::get('prescriptions-list/{type?}/{currentErx?}', 'PatientController@prescriptionsList')->name('patient-prescriptions-list');
  286. // appointments
  287. Route::get('appointments/{forPro}/{status}', 'PatientController@appointments')->name('appointments');
  288. Route::get('supply-orders/{supplyOrder?}', 'PatientController@supplyOrders')->name('supply-orders');
  289. Route::get('shipments/{shipment?}', 'PatientController@shipments')->name('shipments');
  290. // CLAIMS RESOLVER
  291. Route::get('claims-resolver', 'PatientController@claimsResolver')->name('claims-resolver');
  292. Route::get('accounts', 'PatientController@accounts')->name('accounts');
  293. Route::get('view/client-pro-access', 'PatientController@clientProAccess')->name('client-pro-access');
  294. });
  295. });
  296. Route::get('/point/edit-hpi/{note}/{point}', 'NoteController@editHPI')->name('point-edit-hpi');
  297. Route::get('/point/hpi-log/{point}', 'NoteController@hpiLog')->name('point-hpi-log');
  298. Route::get('/point/review-log/{point}', 'NoteController@reviewLog')->name('point-review-log');
  299. Route::get('/point/plan-log/{point}', 'NoteController@planLog')->name('point-plan-log');
  300. Route::get('/note/pdf/{note}', 'NoteController@downloadAsPdf')->name('note-pdf');
  301. Route::get('/note/generate-cc/{note}', 'NoteController@generateCC')->name('note-generate-cc');
  302. Route::get('/note/ccm-agreement/{note}', 'NoteController@ccmAgreement')->name('ccm-agreement');
  303. Route::get('/note/rpm-agreement/{note}', 'NoteController@rpmAgreement')->name('rpm-agreement');
  304. Route::get('/segment-summary/{segment}', 'NoteController@segmentSummary')->name('segment-summary');
  305. Route::get('/note-segment-view/{patient}/{note}/{segment}/{segmentInternalName}/{view}', 'NoteController@noteSegmentView')->name('note-segment-view');
  306. Route::get('/chart-segment-view/{patient}/{segmentInternalName}/{view}', 'NoteController@chartSegmentView')->name('chart-segment-view');
  307. Route::get('/note-rhs-sidebar/{patient}/{note}', 'NoteController@rhsSidebar')->name('note-rhs-sidebar');
  308. Route::get('/medications-center/{patient}/{note}', 'NoteController@medicationsCenter')->name('medications-center');
  309. Route::get('/medications-reconcile/{patient}/{note}', 'NoteController@medicationsReconcile')->name('medications-reconcile');
  310. Route::get('/problems-center/{patient}/{note}', 'NoteController@problemsCenter')->name('problems-center');
  311. Route::get('/goals-center/{patient}/{note}', 'NoteController@goalsCenter')->name('goals-center');
  312. Route::get('/allergies-center/{patient}/{note}', 'NoteController@allergiesCenter')->name('allergies-center');
  313. Route::get('/careteam-center/{patient}/{note}', 'NoteController@careteamCenter')->name('careteam-center');
  314. Route::get('/supplements-center/{patient}/{note}', 'NoteController@supplementsCenter')->name('supplements-center');
  315. Route::get('/supplements-reconcile/{patient}/{note}', 'NoteController@supplementsReconcile')->name('supplements-reconcile');
  316. Route::get('/memos-thread/{patient}', 'PatientController@memosThread')->name('memos-thread');
  317. Route::get('/messages-thread/{patient}', 'PatientController@messagesThread')->name('patient-messages-thread');
  318. Route::get('/nutrition-center/{patient}/{note}', 'NoteController@nutritionCenter')->name('nutrition-center');
  319. Route::get('/exercise-center/{patient}/{note}', 'NoteController@exerciseCenter')->name('exercise-center');
  320. Route::get('/behavior-center/{patient}/{note}', 'NoteController@behaviorCenter')->name('behavior-center');
  321. Route::get('/problems-quick-add/{patient}/{note}', 'NoteController@problemsQuickAdd')->name('problems-quick-add');
  322. //mb claim single view
  323. Route::get('mb-claims/view/{mbClaim}', 'PatientController@mbClaim')->name('mb-claim');
  324. // AJAX - used by process-claims
  325. Route::get('claims/current-mb-claim/{claimUid}', 'PracticeManagementController@currentMbClaim')->name('current-mb-claim');
  326. Route::get('claims/current-claim-lines/{claimUid}', 'PracticeManagementController@currentClaimLines')->name('current-claim-lines');
  327. // pro dashboard events (ajax)
  328. Route::get('pro-dashboard-event-dates/{from}/{to}', 'HomeController@dashboardAppointmentDates')->name('pro-dashboard-event-dates');
  329. Route::get('pro-dashboard-events/{from}/{to}', 'HomeController@dashboardAppointments')->name('pro-dashboard-events');
  330. Route::get('pro-dashboard-events-display/{from}/{to}', 'HomeController@dashboardAppointmentsDisplay')->name('pro-dashboard-events-display');
  331. // pro dashboard measurements
  332. Route::get('pro-dashboard-measurements/{filter}', 'HomeController@dashboardMeasurements')->name('pro-dashboard-measurements');
  333. // events for fc
  334. Route::get('/appointment/getAllAppointmentsForPros', 'AppointmentController@events')->name('events');
  335. //events for availability
  336. Route::post('/availability/load/{proUid}', 'PracticeManagementController@loadAvailability')->name('loadAvailability');
  337. Route::post('/pro-availability/filter', 'PracticeManagementController@proAvailabilityFilter')->name('pro-availability-filter');
  338. // load template set
  339. Route::get('/note-template-set/exam/{exam}/{template}', 'HomeController@noteExamTemplateSet');
  340. Route::get('/note-template-set/{section}/{template}', 'HomeController@noteTemplateSet');
  341. // Patient suggest
  342. Route::get('/pros-suggest', 'HomeController@patientsSuggest');
  343. // column suggest
  344. Route::get('/column-suggest', 'StatTreeLineController@columnSuggest');
  345. // Pharmacy suggest
  346. Route::get('/pharmacy-suggest', 'HomeController@pharmacySuggest');
  347. // Pro suggest
  348. Route::get('/pro-suggest', 'HomeController@proSuggest');
  349. Route::get('/pro-display-name/{pro}', 'HomeController@proDisplayName');
  350. // embeddable sections
  351. Route::get('/embed/{patient}/{section}/{selectable}', 'PatientController@embedSection')->name('embed-section');
  352. // AJAX presence poll
  353. Route::get('/pros/{patient}/presence', 'PatientController@presence');
  354. // refresh single ticket
  355. Route::get('/get-ticket/{ticket}', 'HomeController@getTicket');
  356. Route::get('/appointment-confirmation-history/{appointment}', 'AppointmentController@appointmentConfirmationHistory')->name('appointment-confirmation-history');
  357. // 2-pane outer page housing lhs (practice management) and rhs (video call)
  358. Route::get('/mc/{fragment?}', 'HomeController@mc')
  359. ->where('fragment', '.*')
  360. ->name('mc');
  361. // pro meeting
  362. Route::get('/pro/check-video/{uid}', 'PracticeManagementController@checkVideo');
  363. Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
  364. Route::post('/pro/meet/get-participant-info', 'PracticeManagementController@getParticipantInfo');
  365. Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
  366. Route::get('/pros-in-queue', 'PracticeManagementController@getPatientsInQueue');
  367. Route::get('/current-work', 'PracticeManagementController@currentWork');
  368. //Notes stuff
  369. Route::get('/note/{note_uid}', 'NoteController@renderNote')->name('render-note');
  370. Route::get('/section_create_form/{note_uid}/{section_template_uid}', 'NoteController@sectionCreateForm')->name('section_create_form');
  371. Route::get('/section_update_form/{section_uid}', 'NoteController@sectionUpdateForm')->name('section_update_form');
  372. // generic bills modal
  373. Route::get('/generic-bill-view/{entityType}/{entityUid}', 'HomeController@genericBill')->name('generic-bill-view');
  374. Route::get("/log_in_as", 'HomeController@logInAs')->name('log-in-as');
  375. Route::post("/process-log_in_as", 'HomeController@processLogInAs')->name('process-log-in-as');
  376. Route::post("/back_to_admin_pro", 'HomeController@backToAdminPro')->name('back-to-admin-pro');
  377. Route::get('/remote-monitoring-measurements/{careMonth}', 'PracticeManagementController@remoteMonitoringMeasurements')->name('remote-monitoring-measurements');
  378. Route::get('/patient-care-month-matrix/{careMonth}', 'PatientController@careMonthMatrix')->name('patient-care-month-matrix');
  379. Route::get('/pro-care-month-report', 'PracticeManagementController@careMonthReport')->name('pro-care-month-report');
  380. // fdb playground
  381. Route::get('/fdb-pg-rx', 'FDBPGController@rx')->name('fdb-pg-rx');
  382. Route::get('/fdb-med-suggest', 'FDBPGController@medSuggest');
  383. Route::get('/fdb-med-suggest/json', 'FDBPGController@medSuggestJSON');
  384. Route::get('/fdb-med-suggest-v2/json', 'FDBPGController@medSuggestV2JSON');
  385. Route::get('/fdb-routed-meds', 'FDBPGController@routedMeds');
  386. Route::get('/fdb-routed-dosages', 'FDBPGController@routedDosages');
  387. Route::get('/fdb-meds', 'FDBPGController@meds');
  388. Route::get('/fdb-side-effects', 'FDBPGController@sideEffects');
  389. Route::get('/fdb-geriatric-precautions', 'FDBPGController@geriatricPrecautions');
  390. Route::get('/fdb-indications', 'FDBPGController@indications');
  391. Route::get('/fdb-contraindications', 'FDBPGController@contraindications');
  392. Route::get('/fdb-dx-suggest', 'FDBPGController@dxSuggest');
  393. Route::get('/fdb-dx-suggest/json', 'FDBPGController@dxSuggestJSON');
  394. Route::get('/fdb-dx-suggest-v2/json', 'FDBPGController@dxSuggestV2JSON');
  395. Route::get('/fdb-dx-icds-for-dxid', 'FDBPGController@dxICDsForDxID');
  396. Route::get('/fdb-allergy-suggest', 'FDBPGController@allergySuggest');
  397. Route::get('/fdb-allergy-suggest/json', 'FDBPGController@allergySuggestJSON');
  398. Route::any('/fdb-drug-allergies', 'FDBPGController@drugAllergies');
  399. Route::any('/fdb-drug-drug-interaction', 'FDBPGController@drugDrugInteraction');
  400. Route::any('/fdb-drug-coadministration', 'FDBPGController@drugCoadministration');
  401. Route::any('/fdb-duplicate-therapy', 'FDBPGController@duplicateTherapy');
  402. Route::any('/fdb-rx-vigilance/{patient}', 'FDBPGController@rxVigilance');
  403. Route::any('/fdb-dx-vigilance/{patient}', 'FDBPGController@dxVigilance');
  404. Route::any('/fdb-allergy-vigilance/{patient}', 'FDBPGController@allergyVigilance');
  405. Route::get('/search-payer/json', 'PayerController@searchPayerV2JSON')->name('searchPayerV2JSON');
  406. Route::get('/search-facility/json', 'HomeController@facilitySuggestJSON')->name('facilitySuggestJSON');
  407. Route::get('messages', 'MessageController@index')->name('messages');
  408. Route::get('internal-messages', 'InternalMessageController@index')->name('internal-messages');
  409. Route::get('messages/clients', 'MessageController@clients')->name('messages-clients');
  410. Route::get('messages/send-from-pros', 'MessageController@sendFromPros')->name('messages-send-from-pros');
  411. Route::get('messages/proofread', 'MessageController@proofread')->name('messages-proofread');
  412. Route::get('messages/thread', 'MessageController@thread')->name('messages-thread');
  413. Route::get('messages/{message}/attachments', 'MessageController@attachments')->name('messages-attachments');
  414. Route::get("/video-test", 'VideoTestController@index')->name('video-test');
  415. Route::get('/serve-system-file/{uid}', 'SystemFileController@serve')->name('serve-system-file');
  416. });
  417. Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
  418. Route::get("/get-default-section-data/{patientID}/{sectionTemplateID}", 'NoteController@getDefaultValueForSection')->name('get_default_section_data');
  419. Route::get("/get-segment-html/{segmentUid}/{sessionKey}", 'NoteController@getHtmlForSegment')->name('get_segment_html');
  420. Route::get("/ougoing-email-templates", 'HomeController@outgoingEmailTemplates')->name('outgoingEmailTemplates');
  421. Route::any("/nop", 'HomeController@nop')->name('nop');