web.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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('/patients/{filter?}', 'HomeController@patients')->name('patients');
  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('practice-management.')->prefix('practice-management')->group(function () {
  53. Route::get('remote-monitoring-report', 'PracticeManagementController@remoteMonitoringReport')->name('remoteMonitoringReport');
  54. Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
  55. Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
  56. Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');
  57. Route::get('financial-transactions', 'PracticeManagementController@financialTransactions')->name('financialTransactions');
  58. Route::get('bills-under-processing', 'PracticeManagementController@billsUnderProcessing')->name('bills-under-processing');
  59. Route::get('pending-bills-to-sign', 'PracticeManagementController@pendingBillsToSign')->name('pendingBillsToSign');
  60. Route::get('hr', 'PracticeManagementController@hr')->name('hr');
  61. Route::get('direct-deposit-settings', 'PracticeManagementController@directDepositSettings')->name('directDepositSettings');
  62. Route::get('w9', 'PracticeManagementController@w9')->name('w9');
  63. Route::get('contract', 'PracticeManagementController@contract')->name('contract');
  64. Route::get('notes/{filter?}', 'PracticeManagementController@notes')->name('notes');
  65. Route::get('dna-notes-pending-mcp-sign', 'PracticeManagementController@dnaNotesPendingMcpSign')->name('dna-notes-pending-mcp-sign');
  66. Route::get('na-billable-signed-notes/{filter?}', 'PracticeManagementController@naBillableSignedNotes')->name('na-billable-signed-notes');
  67. Route::get('bills/{filter?}', 'PracticeManagementController@bills')->name('bills');
  68. Route::get('rm-bills-to-sign', 'PracticeManagementController@rmBillsToSign')->name('rm-bills-to-sign');
  69. Route::get('unacknowledged-cancelled-bills', 'PracticeManagementController@unacknowledgedCancelledBills')->name('unacknowledged-cancelled-bills');
  70. Route::get('my-tickets/{filter?}', 'PracticeManagementController@myTickets')->name('myTickets');
  71. Route::get('my-text-shortcuts', 'PracticeManagementController@myTextShortcuts')->name('myTextShortcuts');
  72. Route::get('my-favorites/{filter?}', 'PracticeManagementController@myFavorites')->name('myFavorites');
  73. Route::get('patients-without-coverage/{filter?}', 'PracticeManagementController@patientsWithoutCoverage')->name('patients-without-coverage');
  74. Route::get('pro-availability/{proUid?}', 'PracticeManagementController@proAvailability')->name('proAvailability');
  75. Route::get('calendar/{proUid?}', 'PracticeManagementController@calendar')->name('proCalendar');
  76. Route::get('billing-manager/{proUid?}', 'PracticeManagementController@billingManager')->name('billingManager');
  77. Route::get('cellular-device-manager/{proUid?}', 'PracticeManagementController@cellularDeviceManager')->name('cellularDeviceManager');
  78. Route::get('rm-launch-and-clean', 'PracticeManagementController@rmLaunchAndClean')->name('rm-launch-and-clean');
  79. Route::get('process-claims', 'PracticeManagementController@processClaims')->name('process-claims');
  80. Route::get('process-notes', 'PracticeManagementController@processNotes')->name('process-notes');
  81. Route::get('notes-processing-center', 'PracticeManagementController@notesProcessingCenter')->name('notes-processing-center');
  82. Route::get('picked-notes', 'PracticeManagementController@pickedNotes')->name('picked-notes');
  83. Route::get('bad-notes', 'PracticeManagementController@badNotes')->name('bad-notes');
  84. Route::get('done-notes', 'PracticeManagementController@doneNotes')->name('done-notes');
  85. Route::get('get-next-note/{mode}', 'PracticeManagementController@getNextNote')->name('get-next-note');
  86. Route::get('my-teams', 'PracticeManagementController@myTeams')->name('my-teams');
  87. Route::middleware('pro.auth.admin')->group(function(){
  88. // BILLING REPORT
  89. Route::get('billing-report', 'PracticeManagementController@billingReport')->name('billing-report');
  90. Route::get('patient-claim-summary/{proUid?}', 'PracticeManagementController@patientClaimSummary')->name('patientClaimSummary');
  91. Route::get('cellular-measurements', 'PracticeManagementController@cellularMeasurements')->name('cellularMeasurements');
  92. Route::get('processing-bill-matrix/{proUid?}/{filter?}', 'PracticeManagementController@processingBillMatrix')->name('processingBillMatrix');
  93. Route::get('pro-financials/{proUid?}', 'PracticeManagementController@proFinancials')->name('pro-financials');
  94. //Route::get('hcp-bill-matrix/{proUid?}', 'PracticeManagementController@hcpBillMatrix')->name('hcpBillMatrix');
  95. Route::get('bill-matrix/{proUid?}', 'PracticeManagementController@billMatrix')->name('billMatrix');
  96. Route::get('tickets', 'PracticeManagementController@tickets')->name('tickets');
  97. Route::get('medicare-partb-claims', 'PracticeManagementController@medicarePartBClaims')->name('medicarePartBClaims');
  98. Route::get('claims-download', 'PracticeManagementController@downloadClaims')->name('download-claims');
  99. Route::get('treatment-service-util', 'PracticeManagementController@treatmentServiceUtil')->name('treatmentServiceUtil');
  100. Route::get('claims', 'PracticeManagementController@claims')->name('claims');
  101. // old supply-orders & shipments matrices
  102. // Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  103. // Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  104. // v2 supply-orders & shipments management (wh)
  105. Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  106. Route::get('supply-orders/ready-to-ship', 'PracticeManagementController@supplyOrdersReadyToShip')->name('supply-orders-ready-to-ship');
  107. Route::get('supply-orders/shipment-underway', 'PracticeManagementController@supplyOrdersShipmentUnderway')->name('supply-orders-shipment-underway');
  108. Route::get('supply-orders/hanging', 'PracticeManagementController@supplyOrdersHanging')->name('supply-orders-hanging');
  109. Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  110. Route::get('shipments/ready-to-print', 'PracticeManagementController@shipmentsReadyToPrint')->name('shipments-ready-to-print');
  111. Route::get('shipments/waiting-for-picker', 'PracticeManagementController@shipmentsShipmentUnderway')->name('shipments-waiting-for-picker');
  112. Route::get('shipments/view/{shipment}', 'PracticeManagementController@shipment')->name('shipment');
  113. Route::get('shipments-multi-print/{ids?}', 'PracticeManagementController@shipmentsMultiPrint')->name('shipments-multi-print');
  114. Route::get('packs-multi-print', 'PracticeManagementController@packsMultiPrint')->name('packs-multi-print');
  115. Route::get('packs-multi-pdf/{ids?}', 'PracticeManagementController@packsMultiPDF')->name('packs-multi-pdf');
  116. Route::get('handouts', 'PracticeManagementController@handouts')->name('handouts');
  117. Route::get('generic-bills', 'PracticeManagementController@genericBills')->name('generic-bills');
  118. Route::get('mc-code-checks', 'PracticeManagementController@mcCodeChecks')->name('mc-code-checks');
  119. });
  120. Route::get('supply-orders/cancelled-but-unacknowledged', 'PracticeManagementController@supplyOrdersCancelledButUnacknowledged')->name('supply-orders-cancelled-but-unacknowledged');
  121. Route::get('supply-orders/unsigned', 'PracticeManagementController@supplyOrdersUnsigned')->name('supply-orders-unsigned');
  122. Route::get('remote-monitoring', 'PracticeManagementController@remoteMonitoring')->name('remote-monitoring');
  123. //stat tree stuff
  124. Route::name('clauses.')->prefix('clauses/')->group(function () {
  125. Route::get('', 'ClauseController@list')->name('list');
  126. Route::get('replace-all', 'ClauseController@replaceAllPage')->name('replaceAllPage');
  127. });
  128. Route::name('statTrees.')->prefix('stat-trees')->group(function () {
  129. Route::get('', 'StatTreeController@list')->name('list');
  130. Route::get('create', 'StatTreeController@createPage')->name('createPage');
  131. Route::name('view.')->prefix('view/{statTree}')->group(function () {
  132. Route::get('', 'StatTreeController@dashboard')->name('dashboard');
  133. });
  134. });
  135. Route::name('statTreeLines.')->prefix('stat-tree-lines/')->group(function () {
  136. Route::get('', 'StatTreeLineController@list')->name('list');
  137. Route::name('view.')->prefix('view/{statTreeLine}')->group(function () {
  138. Route::get('', 'StatTreeLineController@dashboard')->name('dashboard');
  139. });
  140. });
  141. // APIs
  142. Route::name('api.')->group(function () {
  143. //Clause
  144. Route::name('clause.')->prefix('clause/')->group(function () {
  145. Route::post('replace-all', 'ClauseController@replaceAll')->name('replaceAll');
  146. });
  147. //Stat Tree
  148. Route::name('statTree.')->prefix('stat-tree/')->group(function () {
  149. Route::post('create', 'StatTreeController@create')->name('create');
  150. Route::post('delete', 'StatTreeController@delete')->name('delete');
  151. Route::post('update-basic', 'StatTreeController@updateBasic')->name('updateBasic');
  152. Route::post('refresh-count', 'StatTreeController@refreshCount')->name('refreshCount');
  153. Route::post('replace-all-lines', 'StatTreeController@replaceAllLines')->name('replaceAllLines');
  154. Route::post('refresh-tree-count-queries', 'StatTreeLineController@refreshTreeCountQueries')->name('refreshTreeCountQueries');
  155. });
  156. //Stat Tree Line
  157. Route::name('statTreeLine.')->prefix('stat-tree-line/')->group(function () {
  158. Route::post('replace-all-report-columns', 'StatTreeLineController@replaceAllReportColumns')->name('replaceAllReportColumns');
  159. Route::post('refresh-count-query', 'StatTreeLineController@refreshCountQuery')->name('refreshCountQuery');
  160. });
  161. });
  162. });
  163. Route::middleware('pro.auth.admin')->group(function(){
  164. Route::get('patients/view/mcp-requests/{patient?}', 'PatientController@mcpRequests')->name('patients.view.mcp-requests');
  165. Route::get('patients/view/eligible-refreshes/{patient}', 'PatientController@eligibleRefreshes')->name('patients.view.eligible-refreshes');
  166. Route::get('patients/view/insurance-coverage/{patient}', 'PatientController@insuranceCoverage')->name('patients.view.insurance-coverage');
  167. Route::get('patients/view/client-primarycoverages/{patient}', 'PatientController@clientPrimaryCoverages')->name('patients.view.client-primary-coverages');
  168. Route::get('patients/view/primary-coverage/{patient}', 'PatientController@primaryCoverage')->name('patients.view.primary-coverage');
  169. Route::get('patients/view/primary-coverage-form/{patient}', 'PatientController@primaryCoverageForm')->name('patients.view.primary-coverage-form');
  170. Route::get('patients/view/primary-coverage-manual-determination-form/{patient}', 'PatientController@primaryCoverageManualDeterminationForm')->name('patients.view.primary-coverage-manual-determination-form');
  171. });
  172. Route::name('patients.view.')->prefix('patients/view/{patient}')->group(function () {
  173. Route::middleware('pro.auth.can-access-patient')->group(function() {
  174. Route::get('intake', 'PatientController@intake')->name('intake');
  175. Route::get('', 'PatientController@dashboard')->name('dashboard');
  176. Route::get('care-plan', 'PatientController@carePlan')->name('care-plan');
  177. Route::get('medications', 'PatientController@medications')->name('medications');
  178. Route::get('dx-and-focus-areas', 'PatientController@dxAndFocusAreas')->name('dx-and-focus-areas');
  179. Route::get('care-team', 'PatientController@careTeam')->name('care-team');
  180. Route::get('devices', 'PatientController@devices')->name('devices');
  181. Route::get('measurements', 'PatientController@measurements')->name('measurements');
  182. Route::get('labs-and-studies', 'PatientController@labsAndStudies')->name('labs-and-studies');
  183. Route::get('history', 'PatientController@history')->name('history');
  184. Route::get('memos', 'PatientController@memos')->name('memos');
  185. Route::get('sms', 'PatientController@sms')->name('sms');
  186. Route::get('sms-numbers', 'PatientController@smsNumbers')->name('sms-numbers');
  187. Route::get('immunizations', 'PatientController@immunizations')->name('immunizations');
  188. Route::get('allergies', 'PatientController@allergies')->name('allergies');
  189. Route::get('action-items', 'PatientController@actionItems')->name('action-items');
  190. Route::get('action-items-erx/view/{ticket}', 'PatientController@actionItemsErxSingle')->name('action-items-erx-single');
  191. Route::get('action-items-lab/view/{ticket}', 'PatientController@actionItemsLabSingle')->name('action-items-lab-single');
  192. Route::get('action-items-imaging/view/{ticket}', 'PatientController@actionItemsImagingSingle')->name('action-items-imaging-single');
  193. Route::get('action-items-equipment/view/{ticket}', 'PatientController@actionItemsEquipmentSingle')->name('action-items-equipment-single');
  194. Route::get('action-items-other/view/{ticket}', 'PatientController@actionItemsOtherSingle')->name('action-items-other-single');
  195. Route::get('action-items-erx/{filter?}', 'PatientController@actionItemsErx')->name('action-items-erx');
  196. Route::get('action-items-lab/{filter?}', 'PatientController@actionItemsLab')->name('action-items-lab');
  197. Route::get('action-items-imaging/{filter?}', 'PatientController@actionItemsImaging')->name('action-items-imaging');
  198. Route::get('action-items-equipment/{filter?}', 'PatientController@actionItemsEquipment')->name('action-items-equipment');
  199. Route::get('action-items-other/{filter?}', 'PatientController@actionItemsOther')->name('action-items-other');
  200. Route::get('notes/{filter?}', 'PatientController@notes')->name('notes');
  201. Route::name('notes.view.')->prefix('notes/view/{note}')->group(function () {
  202. Route::get('', 'NoteController@dashboard')->name('dashboard');
  203. Route::get('sign-confirmation', 'NoteController@signConfirmation')->name('sign-confirmation');
  204. Route::get('section-view/{section}/{view}/{page?}', 'NoteController@sectionView')->name('section-view');
  205. });
  206. Route::get('generic-bills', 'PatientController@genericBills')->name('generic-bills');
  207. Route::get('sections', 'PatientController@sections')->name('sections');
  208. Route::get('handouts', 'PatientController@handouts')->name('handouts');
  209. Route::get('rm-setup', 'PatientController@rmSetup')->name('rm-setup');
  210. Route::get('settings', 'PatientController@settings')->name('settings');
  211. Route::get('sms-reminders', 'PatientController@smsReminders')->name('sms-reminders');
  212. Route::get('measurement-confirmation-numbers', 'PatientController@measurementConfirmationNumbers')->name('measurement-confirmation-numbers');
  213. Route::get('pros', 'PatientController@pros')->name('pros');
  214. Route::get('account', 'PatientController@account')->name('account');
  215. Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
  216. Route::get('documents', 'PatientController@documents')->name('documents');
  217. Route::get('incoming-reports/{currentReport?}', 'PatientController@incomingReports')->name('incoming-reports');
  218. Route::get('education', 'PatientController@education')->name('education');
  219. Route::get('messaging', 'PatientController@messaging')->name('messaging');
  220. Route::get('duplicate', 'PatientController@duplicate')->name('duplicate');
  221. Route::get('care-months', 'PatientController@careMonths')->name('care-months');
  222. Route::name('care-months.view.')->prefix('care-months/view/{careMonth}')->group(function () {
  223. Route::get('', 'CareMonthController@dashboard')->name('dashboard');
  224. });
  225. // appointment calendar
  226. Route::get('calendar/{currentAppointment?}', 'PatientController@calendar')->name('calendar');
  227. // programs
  228. Route::get('programs/{filter?}', 'PatientController@programs')->name('programs');
  229. // flowsheets
  230. Route::get('flowsheets/{filter?}', 'PatientController@flowsheets')->name('flowsheets');
  231. // vitals-settings
  232. Route::get('vitals-settings/{filter?}', 'PatientController@vitalsSettings')->name('vitals-settings');
  233. // vitals-graph
  234. Route::get('vitals-graph/{filter?}', 'PatientController@vitalsGraph')->name('vitals-graph');
  235. // tickets (old/deprecated)
  236. Route::get('tickets/{type?}/{currentTicket?}', 'PatientController@tickets')->name('patient-tickets');
  237. // prescriptions (new)
  238. Route::get('prescriptions/{type?}/{currentErx?}', 'PatientController@prescriptions')->name('patient-prescriptions');
  239. Route::get('prescriptions-list/{type?}/{currentErx?}', 'PatientController@prescriptionsList')->name('patient-prescriptions-list');
  240. // appointments
  241. Route::get('appointments/{forPro}/{status}', 'PatientController@appointments')->name('appointments');
  242. Route::get('supply-orders/{supplyOrder?}', 'PatientController@supplyOrders')->name('supply-orders');
  243. Route::get('shipments/{shipment?}', 'PatientController@shipments')->name('shipments');
  244. // CLAIMS RESOLVER
  245. Route::get('claims-resolver', 'PatientController@claimsResolver')->name('claims-resolver');
  246. Route::get('accounts', 'PatientController@accounts')->name('accounts');
  247. });
  248. });
  249. Route::get('/point/review-log/{point}', 'NoteController@reviewLog')->name('point-review-log');
  250. Route::get('/point/plan-log/{point}', 'NoteController@planLog')->name('point-plan-log');
  251. Route::get('/note/pdf/{note}', 'NoteController@downloadAsPdf')->name('note-pdf');
  252. //mb claim single view
  253. Route::get('mb-claims/view/{mbClaim}', 'PatientController@mbClaim')->name('mb-claim');
  254. // AJAX - used by process-claims
  255. Route::get('claims/current-mb-claim/{claimUid}', 'PracticeManagementController@currentMbClaim')->name('current-mb-claim');
  256. Route::get('claims/current-claim-lines/{claimUid}', 'PracticeManagementController@currentClaimLines')->name('current-claim-lines');
  257. // pro dashboard events (ajax)
  258. Route::get('pro-dashboard-event-dates/{from}/{to}', 'HomeController@dashboardAppointmentDates')->name('pro-dashboard-event-dates');
  259. Route::get('pro-dashboard-events/{from}/{to}', 'HomeController@dashboardAppointments')->name('pro-dashboard-events');
  260. // pro dashboard measurements
  261. Route::get('pro-dashboard-measurements/{filter}', 'HomeController@dashboardMeasurements')->name('pro-dashboard-measurements');
  262. // events for fc
  263. Route::get('/appointment/getAllAppointmentsForPros', 'AppointmentController@events')->name('events');
  264. //events for availability
  265. Route::post('/availability/load/{proUid}', 'PracticeManagementController@loadAvailability')->name('loadAvailability');
  266. Route::post('/pro-availability/filter', 'PracticeManagementController@proAvailabilityFilter')->name('pro-availability-filter');
  267. // load template set
  268. Route::get('/note-template-set/exam/{exam}/{template}', 'HomeController@noteExamTemplateSet');
  269. Route::get('/note-template-set/{section}/{template}', 'HomeController@noteTemplateSet');
  270. // Patient suggest
  271. Route::get('/patients-suggest', 'HomeController@patientsSuggest');
  272. // Pharmacy suggest
  273. Route::get('/pharmacy-suggest', 'HomeController@pharmacySuggest');
  274. // Pro suggest
  275. Route::get('/pro-suggest', 'HomeController@proSuggest');
  276. Route::get('/pro-display-name/{pro}', 'HomeController@proDisplayName');
  277. // embeddable sections
  278. Route::get('/embed/{patient}/{section}/{selectable}', 'PatientController@embedSection')->name('embed-section');
  279. // AJAX presence poll
  280. Route::get('/patients/{patient}/presence', 'PatientController@presence');
  281. // refresh single ticket
  282. Route::get('/get-ticket/{ticket}', 'HomeController@getTicket');
  283. Route::get('/appointment-confirmation-history/{appointment}', 'AppointmentController@appointmentConfirmationHistory')->name('appointment-confirmation-history');
  284. // 2-pane outer page housing lhs (practice management) and rhs (video call)
  285. Route::get('/mc/{fragment?}', 'HomeController@mc')
  286. ->where('fragment', '.*')
  287. ->name('mc');
  288. // pro meeting
  289. Route::get('/pro/check-video/{uid}', 'PracticeManagementController@checkVideo');
  290. Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
  291. Route::post('/pro/meet/get-participant-info', 'PracticeManagementController@getParticipantInfo');
  292. Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
  293. Route::get('/patients-in-queue', 'PracticeManagementController@getPatientsInQueue');
  294. Route::get('/current-work', 'PracticeManagementController@currentWork');
  295. //Notes stuff
  296. Route::get('/note/{note_uid}', 'NoteController@renderNote')->name('render-note');
  297. Route::get('/section_create_form/{note_uid}/{section_template_uid}', 'NoteController@sectionCreateForm')->name('section_create_form');
  298. Route::get('/section_update_form/{section_uid}', 'NoteController@sectionUpdateForm')->name('section_update_form');
  299. // generic bills modal
  300. Route::get('/generic-bill-view/{entityType}/{entityUid}', 'HomeController@genericBill')->name('generic-bill-view');
  301. Route::get("/log_in_as", 'HomeController@logInAs')->name('log-in-as');
  302. Route::post("/process-log_in_as", 'HomeController@processLogInAs')->name('process-log-in-as');
  303. Route::post("/back_to_admin_pro", 'HomeController@backToAdminPro')->name('back-to-admin-pro');
  304. Route::get('/remote-monitoring-measurements/{careMonth}', 'PracticeManagementController@remoteMonitoringMeasurements')->name('remote-monitoring-measurements');
  305. Route::get('/patient-care-month-matrix/{careMonth}', 'PatientController@careMonthMatrix')->name('patient-care-month-matrix');
  306. Route::get('/pro-care-month-report', 'PracticeManagementController@careMonthReport')->name('pro-care-month-report');
  307. // fdb playground
  308. Route::get('/fdb-pg-rx', 'FDBPGController@rx')->name('fdb-pg-rx');
  309. Route::get('/fdb-med-suggest', 'FDBPGController@medSuggest');
  310. Route::get('/fdb-med-suggest/json', 'FDBPGController@medSuggestJSON');
  311. Route::get('/fdb-med-suggest-v2/json', 'FDBPGController@medSuggestV2JSON');
  312. Route::get('/fdb-routed-meds', 'FDBPGController@routedMeds');
  313. Route::get('/fdb-routed-dosages', 'FDBPGController@routedDosages');
  314. Route::get('/fdb-meds', 'FDBPGController@meds');
  315. Route::get('/fdb-side-effects', 'FDBPGController@sideEffects');
  316. Route::get('/fdb-geriatric-precautions', 'FDBPGController@geriatricPrecautions');
  317. Route::get('/fdb-indications', 'FDBPGController@indications');
  318. Route::get('/fdb-contraindications', 'FDBPGController@contraindications');
  319. Route::get('/fdb-dx-suggest', 'FDBPGController@dxSuggest');
  320. Route::get('/fdb-dx-suggest/json', 'FDBPGController@dxSuggestJSON');
  321. Route::get('/fdb-dx-icds-for-dxid', 'FDBPGController@dxICDsForDxID');
  322. Route::get('/fdb-allergy-suggest', 'FDBPGController@allergySuggest');
  323. Route::get('/fdb-allergy-suggest/json', 'FDBPGController@allergySuggestJSON');
  324. Route::any('/fdb-drug-allergies', 'FDBPGController@drugAllergies');
  325. Route::any('/fdb-drug-drug-interaction', 'FDBPGController@drugDrugInteraction');
  326. Route::any('/fdb-drug-coadministration', 'FDBPGController@drugCoadministration');
  327. Route::any('/fdb-duplicate-therapy', 'FDBPGController@duplicateTherapy');
  328. Route::get('/search-payer/json', 'PayerController@searchPayerV2JSON')->name('searchPayerV2JSON');
  329. });
  330. Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
  331. Route::get("/get-default-section-data/{patientID}/{sectionTemplateID}", 'NoteController@getDefaultValueForSection')->name('get_default_section_data');
  332. Route::get("/get-segment-html/{segmentUid}/{sessionKey}", 'NoteController@getHtmlForSegment')->name('get_segment_html');