web.php 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Http\Controllers\SupervisingPhysicianController;
  4. use App\Http\Controllers\ManagementStatsController;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | contains the "web" middleware group. Now create something great!
  13. |
  14. */
  15. /*
  16. * if no pro performer, then redirect to /login2
  17. * [Cell Number] [Password] field -> proLogInWithPassword -> /pro/dashboard
  18. * -> they are authenticated in... see the home dashboard... logout button to -> /login
  19. */
  20. Route::get('login', 'LoginController@showLoginForm')->name('login');
  21. Route::post('login', 'LoginController@login');
  22. Route::get('logout', 'LoginController@logout');
  23. Route::get('request_password_reset', 'LoginController@showRequestPasswordReset')->name('request_password_reset');
  24. Route::post('request_password_reset', 'LoginController@processRequestPasswordReset')->name('process_request_password_reset');
  25. Route::get('self_reset_password', 'LoginController@showSelfResetPassword')->name('self_reset_password');
  26. Route::post('self_reset_password', 'LoginController@processSelfResetPassword')->name('process_self_reset_password');
  27. Route::get('/pro_log_in_with_session_key/{sessionKey}/{appAccessUID?}', 'LoginController@loginWithSessionKey')->name('login_with_session_key');
  28. Route::post('logout', 'LoginController@logout')->name('logout');
  29. Route::post('/confirm_sms_auth_token', 'HomeController@postConfirmSmsAuthToken')->name('post-confirm_sms_auth_token');
  30. Route::post('/resend_sms_auth_token', 'HomeController@resendSmsAuthToken')->name('post-resend_sms_auth_token');
  31. Route::post('/set_password', 'HomeController@postSetPassword')->name('post-set_password');
  32. Route::post('/set_security_questions', 'HomeController@postSetSecurityQuestions')->name('post-set_security_questions');
  33. Route::get("/guest/section/{accessToken}", 'GuestController@section')->name('guest_section_access');
  34. Route::get("/guest/handout/{handoutClientUid}", 'GuestController@handout')->name('guest_handout_access');
  35. Route::get("/appointment-confirmation/{appointmentUid}", 'GuestController@appointmentConfirmation')->name('appointment_confirmation');
  36. Route::post("/process-appointment-confirmation", 'GuestController@processAppointmentConfirmation')->name('process-appointment_confirmation');
  37. Route::get('/ticket-download-as-pdf/{ticket}', 'TicketController@downloadAsPdf')->name('ticket-download-as-pdf');
  38. Route::get('/prescription-download-as-pdf/{prescription}', 'PatientController@downloadPrescriptionAsPdf')->name('prescription-download-as-pdf');
  39. Route::any('/prescription-transmit/{prescription}', 'PatientController@transmitPrescription')->name('prescription-transmit');
  40. Route::get('/get-ticket-faxes/{ticket}', 'TicketController@getTicketFaxes')->name('get-ticket-faxes');
  41. Route::middleware('pro.auth')->group(function () {
  42. //complete authentication
  43. Route::get('/confirm_sms_auth_token', 'HomeController@confirmSmsAuthToken')->name('confirm_sms_auth_token');
  44. Route::get('/set_password', 'HomeController@setPassword')->name('set_password');
  45. Route::get('/set_security_questions', 'HomeController@setSecurityQuestions')->name('set_security_questions');
  46. Route::get('/blank', 'HomeController@blank')->name('blank');
  47. Route::get('/', 'HomeController@dashboard')->name('dashboard');
  48. Route::get('/pro-dashboard-measurements-tab/{page?}', 'HomeController@dashboardMeasurementsTab')->name('dashboard-measurements-tab');
  49. Route::get('/new-patient', 'HomeController@newPatient')->name('new-patient');
  50. Route::get('/new-non-mcn-patient', 'HomeController@newNonMcnPatient')->name('new-non-mcn-patient');
  51. Route::get('/patients/{filter?}', 'HomeController@patients')->name('patients');
  52. Route::get('/unmapped-sms/{filter?}', 'HomeController@unmappedSMS')->name('unmapped-sms');
  53. Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
  54. Route::name('mcp.')->prefix('m')->middleware('pro.auth.mcp')->group(function () {
  55. Route::get('dashboard', 'HomeController@dashboard_MCP')->name('dashboard');
  56. Route::get('patients', 'McpController@patients')->name('patients');
  57. Route::get('notes', 'McpController@notes')->name('notes');
  58. Route::get('appointments', 'McpController@appointments')->name('appointments');
  59. Route::get('bills', 'McpController@bills')->name('bills');
  60. Route::get('erx-and-orders', 'McpController@erx_and_orders')->name('erx_and_orders');
  61. Route::get('reports', 'McpController@reports')->name('reports');
  62. Route::get('supply-orders', 'McpController@supply_orders')->name('supply_orders');
  63. Route::get('client-messages', 'McpController@client_messages')->name('client_messages');
  64. Route::get('clients-bdt-devices', 'McpController@clients_bdt_devices')->name('clients_bdt_devices');
  65. Route::get('patients-accounts-invites', 'McpController@patients_accounts_invites')->name('patients_accounts_invites');
  66. Route::get('memos', 'McpController@memos')->name('memos');
  67. Route::get('new-patients-awaiting-visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
  68. Route::get('notes-pending-signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
  69. Route::get('notes-pending-summary-suggestion', 'McpController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
  70. Route::get('notes-rejected-summary-suggestion', 'McpController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
  71. Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
  72. Route::get('bills-pending-signature', 'McpController@bills_pending_signature')->name('bills_pending_signature');
  73. Route::get('reports-pending-signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
  74. Route::get('patients-without-appointments', 'McpController@patients_without_appointments')->name('patients_without_appointments');
  75. Route::get('patients-overdue-for-visit', 'McpController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
  76. Route::get('cancelled-appointments-pending-review', 'McpController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
  77. Route::get('cancelled-bills-pending-review', 'McpController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
  78. Route::get('cancelled-supply-orders-pending-review', 'McpController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
  79. Route::get('erx-and-orders-pending-signature', 'McpController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
  80. Route::get('supply-orders-pending-signature', 'McpController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
  81. Route::get('supply-orders-awaiting-shipment', 'McpController@supply_orders_awaiting_shipment')->name('supply_orders_awaiting_shipment');
  82. Route::get('unsigned-incoming-reports', 'McpController@unsigned_incoming_reports')->name('unsigned_incoming_reports');
  83. Route::get('patients-awaiting-rpm-interaction', 'McpController@patients_awaiting_rpm_interaction')->name('patients_awaiting_rpm_interaction');
  84. Route::get('measurements-pending-stamping', 'McpController@measurements_pending_stamping')->name('measurements_pending_stamping');
  85. Route::get('measurements-pending-stamping-in-care-month', 'McpController@measurements_pending_stamping_in_care_month')->name('measurements_pending_stamping_in_care_month');
  86. Route::get('measurements-mass-stamping', 'McpController@measurements_mass_stamping')->name('measurements_mass_stamping');
  87. });
  88. Route::name('hcp.')->prefix('h')->group(function () {
  89. Route::get('dashboard', 'HomeController@dashboard_HCP')->name('dashboard');
  90. //TODO HCP CONTROLLER
  91. // Route::get('patients', 'McpController@patients')->name('patients');
  92. // Route::get('notes', 'McpController@notes')->name('notes');
  93. // Route::get('appointments', 'McpController@appointments')->name('appointments');
  94. // Route::get('bills', 'McpController@bills')->name('bills');
  95. // Route::get('erx-and-orders', 'McpController@erx_and_orders')->name('erx_and_orders');
  96. // Route::get('reports', 'McpController@reports')->name('reports');
  97. // Route::get('supply-orders', 'McpController@supply_orders')->name('supply_orders');
  98. // Route::get('client-messages', 'McpController@client_messages')->name('client_messages');
  99. // Route::get('clients-bdt-devices', 'McpController@clients_bdt_devices')->name('clients_bdt_devices');
  100. // Route::get('patients-accounts-invites', 'McpController@patients_accounts_invites')->name('patients_accounts_invites');
  101. // Route::get('memos', 'McpController@memos')->name('memos');
  102. //
  103. //
  104. // Route::get('new-patients-awaiting-visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
  105. // Route::get('notes-pending-signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
  106. // Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
  107. // Route::get('bills-pending-signature', 'McpController@bills_pending_signature')->name('bills_pending_signature');
  108. // Route::get('reports-pending-signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
  109. // Route::get('patients-without-appointments', 'McpController@patients_without_appointments')->name('patients_without_appointments');
  110. // Route::get('patients-overdue-for-visit', 'McpController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
  111. // Route::get('cancelled-appointments-pending-review', 'McpController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
  112. // Route::get('cancelled-bills-pending-review', 'McpController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
  113. // Route::get('cancelled-supply-orders-pending-review', 'McpController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
  114. // Route::get('erx-and-orders-pending-signature', 'McpController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
  115. // Route::get('supply-orders-pending-signature', 'McpController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
  116. // Route::get('supply-orders-awaiting-shipment', 'McpController@supply_orders_awaiting_shipment')->name('supply_orders_awaiting_shipment');
  117. //
  118. // Route::get('measurements-pending-stamping', 'McpController@measurements_pending_stamping')->name('measurements_pending_stamping');
  119. });
  120. Route::middleware('pro.auth.na')->group(function(){
  121. Route::name('dna.')->prefix('n')->group(function () {
  122. Route::get('dashboard', 'HomeController@dashboard_DNA')->name('dashboard');
  123. Route::get('patients', 'DnaController@patients')->name('patients');
  124. Route::get('encounters', 'DnaController@encounters')->name('encounters');
  125. Route::get('notes', 'DnaController@notes')->name('notes');
  126. Route::get('appointments', 'DnaController@appointments')->name('appointments');
  127. Route::get('care-months', 'DnaController@careMonths')->name('careMonths');
  128. Route::get('financial-transactions', 'DnaController@financialTransactions')->name('financialTransactions');
  129. Route::get('my-bills', 'DnaController@myBills')->name('myBills');
  130. Route::get('my-clinical-teams', 'DnaController@myClinicalTeams')->name('myClinicalTeams');
  131. Route::get('my-clinical-teams', 'DnaController@myClinicalTeams')->name('myClinicalTeams');
  132. Route::name('my-clinical-teams.view.')->prefix('my-clinical-teams/view/{team}')->group(function () {
  133. Route::get('dashboard', 'DnaController@teamDashboard')->name('team-dashboard');
  134. });
  135. Route::get('bills', 'DnaController@bills')->name('bills');
  136. Route::get('erx-and-orders', 'DnaController@erx_and_orders')->name('erx_and_orders');
  137. Route::get('reports', 'DnaController@reports')->name('reports');
  138. Route::get('supply-orders', 'DnaController@supply_orders')->name('supply_orders');
  139. Route::get('new_patients_awaiting_visit', 'DnaController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
  140. Route::get('notes_pending_signature', 'DnaController@notes_pending_signature')->name('notes_pending_signature');
  141. Route::get('notes_pending_billing', 'DnaController@notes_pending_billing')->name('notes_pending_billing');
  142. Route::get('reports_pending_signature', 'DnaController@reports_pending_signature')->name('reports_pending_signature');
  143. Route::get('patients_without_appointments', 'DnaController@patients_without_appointments')->name('patients_without_appointments');
  144. Route::get('patients_overdue_for_visit', 'DnaController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
  145. Route::get('cancelled_appointments_pending_review', 'DnaController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
  146. Route::get('cancelled_bills_pending_review', 'DnaController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
  147. Route::get('cancelled_supply_orders_pending_review', 'DnaController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
  148. Route::get('erx_and_orders_pending_signature', 'DnaController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
  149. Route::get('supply_orders_pending_signature', 'DnaController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
  150. //from the new spec
  151. Route::get('my-patients', 'DnaController@myPatients')->name('my-patients');
  152. Route::get('patients_awaiting_mcp_visit', 'DnaController@patientsAwaitingMcpVisit')->name('patients_awaiting_mcp_visit');
  153. Route::get('patients_without_appointment', 'DnaController@patientsWithoutAppointment')->name('patients_without_appointment');
  154. Route::get('encounters_pending_my_review', 'DnaController@encountersPendingMyReview')->name('encounters_pending_my_review');
  155. Route::get('encounters_in_progress', 'DnaController@encountersInProgress')->name('encounters_in_progress');
  156. Route::get('appointments_pending_confirmation', 'DnaController@appointmentsPendingConfirmation')->name('appointments_pending_confirmation');
  157. Route::get('cancelled_appointments_pending_ack', 'DnaController@cancelledAppointmentsPendingAck')->name('cancelled_appointments_pending_ack');
  158. Route::get('reports_pending_ack', 'DnaController@reportsPendingAck')->name('reports_pending_ack');
  159. Route::get('supply_orders_pending_my_ack', 'DnaController@supplyOrdersPendingMyAck')->name('supply_orders_pending_my_ack');
  160. Route::get('supply_orders_pending_hcp_approval', 'DnaController@supplyOrdersPendingHcpApproval')->name('supply_orders_pending_hcp_approval');
  161. });
  162. });
  163. Route::name('ps.')->prefix('ps')->group(function () {
  164. Route::get('dashboard', [SupervisingPhysicianController::class, 'dashboard'])->name('dashboard');
  165. Route::get('client-review-requests', [SupervisingPhysicianController::class, 'clientReviewRequests'])->name('client-review-requests');
  166. });
  167. //Route::get('test-gsheet', 'GsheetController@testGsheet');
  168. Route::name('admin.')->prefix('a')->middleware('pro.auth.admin')->group(function () {
  169. // TODO
  170. Route::get('dashboard', 'HomeController@dashboard_ADMIN')->name('dashboard');
  171. Route::get('patients', 'AdminController@patients')->name('patients');
  172. Route::get('part_b_patients', 'AdminController@partBPatients')->name('part_b_patients');
  173. Route::get('bdt_devices', 'AdminController@bdtDevices')->name('bdt_devices');
  174. Route::get('notes', 'AdminController@notes')->name('notes');
  175. Route::get('notes-pending-summary-suggestion', 'AdminController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
  176. Route::get('notes-rejected-summary-suggestion', 'AdminController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
  177. Route::get('appointments', 'AdminController@appointments')->name('appointments');
  178. Route::get('bills', 'AdminController@bills')->name('bills');
  179. Route::get('erx-and-orders', 'AdminController@erx_and_orders')->name('erx_and_orders');
  180. Route::get('reports', 'AdminController@reports')->name('reports');
  181. Route::get('supply-orders', 'AdminController@supply_orders')->name('supply_orders');
  182. Route::get('get-create-new-patient-script-template', 'AdminController@getCreateNewPatientScriptTemplate')->name('getCreateNewPatientScriptTemplate');
  183. Route::get('patients-missing-defult-settings', 'AdminController@patientsMissingDefasultSettings')->name('patientsMissingDefasultSettings');
  184. Route::get('points', 'AdminController@points')->name('points');
  185. });
  186. Route::middleware('pro.auth.admin')->group(function () {
  187. Route::get('mgmt-stats', [ManagementStatsController::class, 'index'])->name('management-stats');
  188. });
  189. Route::name('invoice-center.')->prefix('invoice-center')->group(function () {
  190. Route::middleware('pro.auth.admin')->group(function () {
  191. Route::get('companies', 'InvoiceController@companies')->name('companies');
  192. Route::get('customers', 'InvoiceController@customers')->name('customers');
  193. Route::get('gift-cards', 'InvoiceController@giftCards')->name('giftCards');
  194. Route::get('invoices', 'InvoiceController@invoices')->name('invoices');
  195. Route::get('customer-transactions', 'InvoiceController@customerTransactions')->name('customerTransactions');
  196. Route::get('invoice-transactions', 'InvoiceController@invoiceTransactions')->name('invoiceTransactions');
  197. });
  198. });
  199. Route::name('practice-management.')->prefix('practice-management')->group(function () {
  200. // rpm manager (new)
  201. Route::get('rpm-manager', 'PracticeManagementController@rpmManager')->name('rpm-manager');
  202. Route::get('rpm-manager-row/{uid}', 'PracticeManagementController@rpmManagerRow')->name('rpm-manager-row');
  203. Route::get('my-flyers', 'PracticeManagementController@myFlyers')->name('my-flyers');
  204. Route::get('notes-pending-physician-supervisor-stamping', 'PracticeManagementController@notesPendingPhysicianSupervisorStamping')->name('notes-pending-physician-supervisor-stamping');
  205. // new
  206. Route::get('clients-without-default-company-pro-payer', 'PracticeManagementController@clientsWithoutDefaultCompanyProPayer')->name('clients-without-default-company-pro-payer');
  207. Route::get('notes-without-hcp-company-pro-payer', 'PracticeManagementController@notesWithoutHcpCompanyProPayer')->name('notes-without-hcp-company-pro-payer');
  208. Route::get('note-hcp-bills-without-company-pro', 'PracticeManagementController@noteHcpBillsWithoutCompanyPro')->name('note-hcp-bills-without-company-pro');
  209. Route::get('rpm-mcp-bills-without-company-pro', 'PracticeManagementController@rpmMcpBillsWithoutCompanyPro')->name('rpm-mcp-bills-without-company-pro');
  210. Route::get('rpm-rmm-bills-without-company-pro', 'PracticeManagementController@rpmRmmBillsWithoutCompanyPro')->name('rpm-rmm-bills-without-company-pro');
  211. Route::get('rpm-matrix', 'PracticeManagementController@rpmMatrix')->name('rpmMatrix');
  212. Route::get('client-review-requests', 'PracticeManagementController@clientReviewRequests')->name('client-review-requests');
  213. // rpm work matrix - latest patient with unstamped measurements
  214. Route::get('rpm-work-matrix', 'PracticeManagementController@rpm_work_matrix')->name('rpm_work_matrix');
  215. // notes resolution
  216. Route::get('notes-resolution-center', 'PracticeManagementController@notesResolutionCenter')->name('notes-resolution-center');
  217. Route::get('notes-resolution-center-v2', 'PracticeManagementController@notesResolutionCenterV2')->name('notes-resolution-center-v2');
  218. Route::get('coverages', 'PracticeManagementController@coverages')->name('coverages');
  219. Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
  220. Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
  221. Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');
  222. Route::get('financial-transactions', 'PracticeManagementController@financialTransactions')->name('financialTransactions');
  223. Route::get('bills-under-processing', 'PracticeManagementController@billsUnderProcessing')->name('bills-under-processing');
  224. Route::get('pending-bills-to-sign', 'PracticeManagementController@pendingBillsToSign')->name('pendingBillsToSign');
  225. Route::get('hr', 'PracticeManagementController@hr')->name('hr');
  226. Route::get('direct-deposit-settings', 'PracticeManagementController@directDepositSettings')->name('directDepositSettings');
  227. Route::get('w9', 'PracticeManagementController@w9')->name('w9');
  228. Route::get('contract', 'PracticeManagementController@contract')->name('contract');
  229. Route::get('notes/{filter?}', 'PracticeManagementController@notes')->name('notes');
  230. Route::get('all-notes', 'PracticeManagementController@allNotes')->name('allNotes');
  231. Route::get('dna-notes-pending-mcp-sign', 'PracticeManagementController@dnaNotesPendingMcpSign')->name('dna-notes-pending-mcp-sign');
  232. Route::get('na-billable-signed-notes/{filter?}', 'PracticeManagementController@naBillableSignedNotes')->name('na-billable-signed-notes');
  233. Route::get('bills/{filter?}', 'PracticeManagementController@bills')->name('bills');
  234. Route::get('rm-bills-to-sign', 'PracticeManagementController@rmBillsToSign')->name('rm-bills-to-sign');
  235. Route::get('unacknowledged-cancelled-bills', 'PracticeManagementController@unacknowledgedCancelledBills')->name('unacknowledged-cancelled-bills');
  236. Route::get('my-tickets/{filter?}', 'PracticeManagementController@myTickets')->name('myTickets');
  237. Route::get('my-text-shortcuts', 'PracticeManagementController@myTextShortcuts')->name('myTextShortcuts');
  238. Route::get('my-favorites/{filter?}', 'PracticeManagementController@myFavorites')->name('myFavorites');
  239. Route::get('patients-without-coverage/{filter?}', 'PracticeManagementController@patientsWithoutCoverage')->name('patients-without-coverage');
  240. Route::get('pro-availability/{proUid?}', 'PracticeManagementController@proAvailability')->name('proAvailability');
  241. Route::get('calendar/{proUid?}', 'PracticeManagementController@calendar')->name('proCalendar');
  242. Route::get('billing-manager/{proUid?}', 'PracticeManagementController@billingManager')->name('billingManager');
  243. Route::get('cellular-device-manager/{proUid?}', 'PracticeManagementController@cellularDeviceManager')->name('cellularDeviceManager');
  244. Route::get('rm-launch-and-clean', 'PracticeManagementController@rmLaunchAndClean')->name('rm-launch-and-clean');
  245. Route::get('process-claims', 'PracticeManagementController@processClaims')->name('process-claims');
  246. Route::get('process-notes', 'PracticeManagementController@processNotes')->name('process-notes');
  247. Route::get('notes-processing-center', 'PracticeManagementController@notesProcessingCenter')->name('notes-processing-center');
  248. Route::get('picked-notes', 'PracticeManagementController@pickedNotes')->name('picked-notes');
  249. Route::get('bad-notes', 'PracticeManagementController@badNotes')->name('bad-notes');
  250. Route::get('done-notes', 'PracticeManagementController@doneNotes')->name('done-notes');
  251. Route::get('get-next-note/{mode}', 'PracticeManagementController@getNextNote')->name('get-next-note');
  252. Route::get('my-teams', 'PracticeManagementController@myTeams')->name('my-teams');
  253. Route::get('patients-accounts-invites', 'PracticeManagementController@patientsAccountsInvites')->name('patientsAccountsInvites');
  254. Route::get('clients-bdt-devices', 'PracticeManagementController@clientsBdtDevices')->name('clientsBdtDevices');
  255. Route::get('memos', 'PracticeManagementController@memos')->name('memos');
  256. Route::get('client-ccm-rm-status', 'PracticeManagementController@clientCcmRmStatus')->name('client-ccm-rm-status');
  257. Route::get('hcp-note-activity', 'PracticeManagementController@hcpNoteActivity')->name('hcp-note-activity');
  258. Route::middleware('pro.auth.admin')->group(function () {
  259. Route::get('incoming-reports/{filter?}', 'PracticeManagementController@incomingReports')->name('incoming-reports');
  260. Route::get('segment-templates', 'PracticeManagementController@segmentTemplates')->name('segmentTemplates');
  261. Route::get('visit-templates', 'PracticeManagementController@visitTemplates')->name('visitTemplates');
  262. Route::get('visit-template/{visitTemplate}', 'PracticeManagementController@visitTemplate')->name('visitTemplate');
  263. Route::get('visit-template-access/{visitTemplate}', 'PracticeManagementController@visitTemplateAccess')->name('visitTemplateAccess');
  264. Route::get('rm-action-report', 'PracticeManagementController@rmActionReport')->name('rmActionReport');
  265. Route::get('remote-monitoring-report', 'PracticeManagementController@remoteMonitoringReport')->name('remoteMonitoringReport');
  266. Route::get('daily-treatment-services', 'PracticeManagementController@dailyTreatmentServices')->name('daily-treatment-services');
  267. Route::get('client-pro-changes', 'PracticeManagementController@clientProChanges')->name('client-pro-changes');
  268. // BILLING REPORT
  269. Route::get('billing-report', 'PracticeManagementController@billingReport')->name('billing-report');
  270. Route::get('patient-claim-summary/{proUid?}', 'PracticeManagementController@patientClaimSummary')->name('patientClaimSummary');
  271. Route::get('cellular-measurements', 'PracticeManagementController@cellularMeasurements')->name('cellularMeasurements');
  272. Route::get('processing-bill-matrix/{proUid?}/{filter?}', 'PracticeManagementController@processingBillMatrix')->name('processingBillMatrix');
  273. Route::get('processing-bill-matrix2/{proUid?}/{filter?}', 'PracticeManagementController@processingBillMatrix2')->name('processingBillMatrix2');
  274. Route::get('pro-financials/{proUid?}', 'PracticeManagementController@proFinancials')->name('pro-financials');
  275. //Route::get('hcp-bill-matrix/{proUid?}', 'PracticeManagementController@hcpBillMatrix')->name('hcpBillMatrix');
  276. Route::get('bill-matrix/{proUid?}', 'PracticeManagementController@billMatrix')->name('billMatrix');
  277. Route::get('tickets', 'PracticeManagementController@tickets')->name('tickets');
  278. Route::get('medicare-partb-claims', 'PracticeManagementController@medicarePartBClaims')->name('medicarePartBClaims');
  279. Route::get('claims-download', 'PracticeManagementController@downloadClaims')->name('download-claims');
  280. Route::get('treatment-service-util', 'PracticeManagementController@treatmentServiceUtil')->name('treatmentServiceUtil');
  281. Route::get('claims', 'PracticeManagementController@claims')->name('claims');
  282. // old supply-orders & shipments matrices
  283. // Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  284. // Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  285. // v2 supply-orders & shipments management (wh)
  286. Route::get('supply-orders', 'PracticeManagementController@supplyOrders')->name('supply-orders');
  287. Route::get('supply-orders/ready-to-ship', 'PracticeManagementController@supplyOrdersReadyToShip')->name('supply-orders-ready-to-ship');
  288. Route::get('supply-orders/shipment-underway', 'PracticeManagementController@supplyOrdersShipmentUnderway')->name('supply-orders-shipment-underway');
  289. Route::get('supply-orders/hanging', 'PracticeManagementController@supplyOrdersHanging')->name('supply-orders-hanging');
  290. Route::get('shipments', 'PracticeManagementController@shipments')->name('shipments');
  291. Route::get('shipments/ready-to-print', 'PracticeManagementController@shipmentsReadyToPrint')->name('shipments-ready-to-print');
  292. Route::get('shipments/waiting-for-picker', 'PracticeManagementController@shipmentsShipmentUnderway')->name('shipments-waiting-for-picker');
  293. Route::get('shipments/view/{shipment}', 'PracticeManagementController@shipment')->name('shipment');
  294. Route::get('shipments-multi-print/{ids?}', 'PracticeManagementController@shipmentsMultiPrint')->name('shipments-multi-print');
  295. Route::get('packs-multi-print', 'PracticeManagementController@packsMultiPrint')->name('packs-multi-print');
  296. Route::get('packs-multi-pdf/{ids?}', 'PracticeManagementController@packsMultiPDF')->name('packs-multi-pdf');
  297. Route::get('handouts', 'PracticeManagementController@handouts')->name('handouts');
  298. Route::get('generic-bills', 'PracticeManagementController@genericBills')->name('generic-bills');
  299. Route::get('mc-code-checks', 'PracticeManagementController@mcCodeChecks')->name('mc-code-checks');
  300. Route::get('remote-monitoring-admin', 'PracticeManagementController@remoteMonitoringAdmin')->name('remote-monitoring-admin');
  301. Route::get('remote-monitoring-admin-count', 'PracticeManagementController@remoteMonitoringAdminCount')->name('remote-monitoring-admin-count');
  302. Route::get('rpm-admin', 'PracticeManagementController@rpmMatrixForAdmin')->name('rpm-matrix-admin');
  303. Route::get('claims-report', 'PracticeManagementController@claimsReport')->name('claims-report');
  304. Route::get('problems-report', 'PracticeManagementController@problemsReport')->name('problems-report');
  305. });
  306. Route::get('supply-orders/cancelled-but-unacknowledged', 'PracticeManagementController@supplyOrdersCancelledButUnacknowledged')->name('supply-orders-cancelled-but-unacknowledged');
  307. Route::get('supply-orders/unsigned', 'PracticeManagementController@supplyOrdersUnsigned')->name('supply-orders-unsigned');
  308. Route::get('remote-monitoring', 'PracticeManagementController@remoteMonitoring')->name('remote-monitoring');
  309. Route::get('remote-monitoring-count', 'PracticeManagementController@remoteMonitoringCount')->name('remote-monitoring-count');
  310. Route::get('rpm-mcp', 'PracticeManagementController@remoteMonitoringMCP')->name('rpm-matrix-mcp');
  311. Route::get('rpm-rmm', 'PracticeManagementController@remoteMonitoringRMM')->name('rpm-matrix-rmm');
  312. Route::get('rpm-rme', 'PracticeManagementController@remoteMonitoringRME')->name('rpm-matrix-rme');
  313. //stat tree stuff
  314. Route::name('clauses.')->prefix('clauses/')->group(function () {
  315. Route::get('', 'ClauseController@list')->name('list');
  316. Route::get('replace-all', 'ClauseController@replaceAllPage')->name('replaceAllPage');
  317. });
  318. Route::name('statTrees.')->prefix('stat-trees')->group(function () {
  319. Route::get('', 'StatTreeController@list')->name('list');
  320. Route::get('create', 'StatTreeController@createPage')->name('createPage');
  321. Route::name('view.')->prefix('view/{statTree}')->group(function () {
  322. Route::get('', 'StatTreeController@dashboard2')->name('dashboard');
  323. Route::get('edit', 'StatTreeController@edit')->name('edit');
  324. Route::get('clausesJSON', 'StatTreeController@clausesJSON')->name('clausesJSON');
  325. Route::get('linesJSON', 'StatTreeController@linesJSON')->name('linesJSON');
  326. Route::get('old', 'StatTreeController@dashboard')->name('dashboard2');
  327. });
  328. Route::post('instantiate/{statTree}', 'StatTreeController@instantiate')->name('instantiate');
  329. Route::post('clone/{statTree}', 'StatTreeController@clone')->name('clone');
  330. });
  331. Route::name('statTreeLines.')->prefix('stat-tree-lines/')->group(function () {
  332. Route::get('', 'StatTreeLineController@list')->name('list');
  333. Route::name('view.')->prefix('view/{statTreeLine}')->group(function () {
  334. Route::get('', 'StatTreeLineController@dashboard')->name('dashboard');
  335. });
  336. Route::get('view-data/{line}', 'StatTreeLineController@viewData')->name('view-data');
  337. });
  338. Route::name('statTreeLineReports.')->prefix('stat-tree-line-reports/')->group(function () {
  339. Route::get('', 'StatTreeLineController@reports')->name('reports');
  340. Route::get('edit/{statTreeLine}', 'StatTreeLineController@editReport')->name('edit');
  341. Route::get('view/{statTreeLine}', 'StatTreeLineController@viewReport')->name('view');
  342. });
  343. // APIs
  344. Route::name('api.')->group(function () {
  345. //Clause
  346. Route::name('clause.')->prefix('clause/')->group(function () {
  347. Route::post('replace-all', 'ClauseController@replaceAll')->name('replaceAll');
  348. Route::post('create', 'ClauseController@create')->name('create');
  349. Route::post('update', 'ClauseController@update')->name('update');
  350. Route::post('remove', 'ClauseController@remove')->name('remove');
  351. });
  352. //Clause Arg
  353. Route::name('clauseArg.')->prefix('clause-arg/')->group(function () {
  354. Route::post('create', 'ClauseArgController@create')->name('create');
  355. Route::post('update', 'ClauseArgController@update')->name('update');
  356. Route::post('remove', 'ClauseArgController@remove')->name('remove');
  357. });
  358. //Stat Tree
  359. Route::name('statTree.')->prefix('stat-tree/')->group(function () {
  360. Route::post('create', 'StatTreeController@create')->name('create');
  361. Route::post('remove', 'StatTreeController@remove')->name('remove');
  362. Route::post('update-basic', 'StatTreeController@updateBasic')->name('updateBasic');
  363. Route::post('refresh-count', 'StatTreeController@refreshCount')->name('refreshCount');
  364. Route::post('replace-all-lines', 'StatTreeController@replaceAllLines')->name('replaceAllLines');
  365. Route::post('replace-all-lines-json', 'StatTreeController@replaceAllLinesJSON')->name('replaceAllLinesJSON');
  366. Route::post('refresh-tree-count-queries', 'StatTreeController@refreshTreeCountQueries')->name('refreshTreeCountQueries');
  367. Route::post('get-counts-for-pro', 'StatTreeController@getCountsForPro')->name('getCountsForPro');
  368. Route::any('get-counts-for-pros', 'StatTreeController@getCountsForPros')->name('getCountsForPros');
  369. });
  370. //Stat Tree Line
  371. Route::name('statTreeLine.')->prefix('stat-tree-line/')->group(function () {
  372. Route::post('refresh-count-query', 'StatTreeLineController@refreshCountQuery')->name('refreshCountQuery');
  373. Route::post('create', 'StatTreeLineController@create')->name('create');
  374. Route::post('remove', 'StatTreeLineController@remove')->name('remove');
  375. });
  376. //Stat Tree Line Report Column
  377. Route::name('statTreeLineReportColumn.')->prefix('stat-tree-line-report-column/')->group(function () {
  378. Route::post('create', 'StatTreeLineReportColumnController@create')->name('create');
  379. Route::post('update', 'StatTreeLineReportColumnController@update')->name('update');
  380. Route::post('remove', 'StatTreeLineReportColumnController@remove')->name('remove');
  381. });
  382. //Stat Tree Line Reports
  383. Route::name('statTreeLineReport.')->prefix('stat-tree-line-report/')->group(function () {
  384. Route::post('refresh-count-query', 'StatTreeLineController@refreshCountQuery')->name('refreshCountQuery');
  385. Route::post('create', 'StatTreeLineController@createReport')->name('create');
  386. Route::post('remove', 'StatTreeLineController@removeReport')->name('remove');
  387. Route::post('updateTitle', 'StatTreeLineController@updateTitle')->name('updateTitle');
  388. Route::post('updateModel', 'StatTreeLineController@updateModel')->name('updateModel');
  389. Route::post('addExistingClause', 'StatTreeLineController@addExistingClause')->name('addExistingClause');
  390. Route::post('addNewClause', 'StatTreeLineController@addNewClause')->name('addNewClause');
  391. Route::post('removeClause', 'StatTreeLineController@removeClause')->name('removeClause');
  392. Route::post('addReportColumn', 'StatTreeLineController@addReportColumn')->name('addReportColumn');
  393. Route::post('updateReportColumn', 'StatTreeLineController@updateReportColumn')->name('updateReportColumn');
  394. Route::post('removeReportColumn', 'StatTreeLineController@removeReportColumn')->name('removeReportColumn');
  395. Route::post('reorderReportColumns', 'StatTreeLineController@reorderReportColumns')->name('reorderReportColumns');
  396. });
  397. });
  398. });
  399. // Route::middleware('pro.auth.admin')->group(function () {
  400. Route::get('patients/view/mcp-requests/{patient?}', 'PatientController@mcpRequests')->name('patients.view.mcp-requests');
  401. Route::get('patients/view/eligible-refreshes/{patient}', 'PatientController@eligibleRefreshes')->name('patients.view.eligible-refreshes');
  402. Route::get('patients/view/insurance-coverage/{patient}', 'PatientController@insuranceCoverage')->name('patients.view.insurance-coverage');
  403. Route::get('patients/view/client-primarycoverages/{patient}', 'PatientController@clientPrimaryCoverages')->name('patients.view.client-primary-coverages');
  404. Route::get('patients/view/primary-coverage/{patient}', 'PatientController@primaryCoverage')->name('patients.view.primary-coverage');
  405. Route::get('patients/view/client-pro-access/{patient}', 'PatientController@clientProAccess')->name('patients.view.client-pro-access');
  406. Route::get('patients/view/client-documents/{patient}', 'PatientController@clientDocuments')->name('patients.view.client-documents');
  407. Route::get('patients/view/primary-coverage-form/{patient}', 'PatientController@primaryCoverageForm')->name('patients.view.primary-coverage-form');
  408. Route::get('patients/view/primary-coverage-manual-determination-modal/{patient}', 'PatientController@primaryCoverageManualDeterminationModal')->name('patients.view.primary-coverage-manual-determination-modal');
  409. // });
  410. Route::name('patients.view.')->prefix('patients/view/{patient}')->group(function () {
  411. Route::middleware(['pro.auth.can-access-patient', 'client.not-shadow-of-pro'])->group(function () {
  412. Route::get('', 'PatientController@dashboard')->name('dashboard');
  413. Route::get('canvas-migrate', 'PatientController@canvasMigrate')->name('migrate-canvas');
  414. Route::get('intake', 'PatientController@intake')->name('intake');
  415. Route::get('canvas', 'PatientController@canvas')->name('canvas');
  416. Route::get('intake', 'PatientController@intake')->name('intake');
  417. Route::get('care-plan', 'PatientController@carePlan')->name('care-plan');
  418. Route::get('medications', 'PatientController@medications')->name('medications');
  419. Route::get('dx-and-focus-areas', 'PatientController@dxAndFocusAreas')->name('dx-and-focus-areas');
  420. Route::get('care-team', 'PatientController@careTeam')->name('care-team');
  421. Route::get('devices', 'PatientController@devices')->name('devices');
  422. Route::get('measurements', 'PatientController@measurements')->name('measurements');
  423. Route::get('labs-and-studies', 'PatientController@labsAndStudies')->name('labs-and-studies');
  424. Route::get('history', 'PatientController@history')->name('history');
  425. Route::get('memos', 'PatientController@memos')->name('memos');
  426. Route::get('sms', 'PatientController@sms')->name('sms');
  427. Route::get('outgoing-sms-log', 'PatientController@outgoingSmsLog')->name('outgoing-sms-log');
  428. Route::get('review-requests', 'PatientController@reviewRequests')->name('review-requests');
  429. Route::get('sms-numbers', 'PatientController@smsNumbers')->name('sms-numbers');
  430. Route::get('immunizations', 'PatientController@immunizations')->name('immunizations');
  431. Route::get('allergies', 'PatientController@allergies')->name('allergies');
  432. Route::get('action-items', 'PatientController@actionItems')->name('action-items');
  433. Route::get('action-items-erx/view/{ticket}', 'PatientController@actionItemsErxSingle')->name('action-items-erx-single');
  434. Route::get('action-items-lab/view/{ticket}', 'PatientController@actionItemsLabSingle')->name('action-items-lab-single');
  435. Route::get('action-items-imaging/view/{ticket}', 'PatientController@actionItemsImagingSingle')->name('action-items-imaging-single');
  436. Route::get('action-items-equipment/view/{ticket}', 'PatientController@actionItemsEquipmentSingle')->name('action-items-equipment-single');
  437. Route::get('action-items-other/view/{ticket}', 'PatientController@actionItemsOtherSingle')->name('action-items-other-single');
  438. Route::get('action-items-erx/{filter?}', 'PatientController@actionItemsErx')->name('action-items-erx');
  439. Route::get('action-items-lab/{filter?}', 'PatientController@actionItemsLab')->name('action-items-lab');
  440. Route::get('action-items-imaging/{filter?}', 'PatientController@actionItemsImaging')->name('action-items-imaging');
  441. Route::get('action-items-equipment/{filter?}', 'PatientController@actionItemsEquipment')->name('action-items-equipment');
  442. Route::get('action-items-other/{filter?}', 'PatientController@actionItemsOther')->name('action-items-other');
  443. Route::get('notes/{filter?}', 'PatientController@notes')->name('notes');
  444. Route::name('notes.view.')->prefix('notes/view/{note}')->group(function () {
  445. Route::get('', 'NoteController@dashboard')->name('dashboard');
  446. Route::get('sign-confirmation', 'NoteController@signConfirmation')->name('sign-confirmation');
  447. Route::get('section-view/{section}/{view}/{page?}', 'NoteController@sectionView')->name('section-view');
  448. });
  449. Route::get('generic-bills', 'PatientController@genericBills')->name('generic-bills');
  450. Route::get('handouts', 'PatientController@handouts')->name('handouts');
  451. Route::get('rm-setup', 'PatientController@rmSetup')->name('rm-setup');
  452. Route::get('settings', 'PatientController@settings')->name('settings');
  453. Route::get('sms-reminders', 'PatientController@smsReminders')->name('sms-reminders');
  454. Route::get('measurement-confirmation-numbers', 'PatientController@measurementConfirmationNumbers')->name('measurement-confirmation-numbers');
  455. Route::get('pros', 'PatientController@pros')->name('pros');
  456. Route::get('pro-changes', 'PatientController@proChanges')->name('pro-changes');
  457. Route::get('account', 'PatientController@account')->name('account');
  458. Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
  459. Route::get('documents', 'PatientController@documents')->name('documents');
  460. Route::get('incoming-reports/{currentReport?}', 'PatientController@incomingReports')->name('incoming-reports');
  461. Route::get('education', 'PatientController@education')->name('education');
  462. Route::get('insurance-coverage-history', 'PatientController@insuranceCoverageHistory')->name('insurance-coverage-history');
  463. Route::get('messaging', 'PatientController@messaging')->name('messaging');
  464. Route::get('duplicate', 'PatientController@duplicate')->name('duplicate');
  465. Route::get('care-months', 'PatientController@careMonths')->name('care-months');
  466. Route::name('care-months.view.')->prefix('care-months/view/{careMonth}')->group(function () {
  467. Route::get('', 'CareMonthController@dashboard')->name('dashboard');
  468. });
  469. // appointment calendar
  470. Route::get('calendar/{currentAppointment?}', 'PatientController@calendar')->name('calendar');
  471. // programs
  472. Route::get('programs/{filter?}', 'PatientController@programs')->name('programs');
  473. // flowsheets
  474. Route::get('flowsheets/{filter?}', 'PatientController@flowsheets')->name('flowsheets');
  475. // vitals-settings
  476. Route::get('vitals-settings/{filter?}', 'PatientController@vitalsSettings')->name('vitals-settings');
  477. // vitals-graph
  478. Route::get('vitals-graph/{filter?}', 'PatientController@vitalsGraph')->name('vitals-graph');
  479. // sleep study
  480. Route::get('sleep-study/{filter?}', 'PatientController@sleepStudy')->name('sleep-study');
  481. Route::get('sleep-study-step', 'PatientController@sleepStudyStep')->name('sleep-study-step');
  482. // tickets (old/deprecated)
  483. Route::get('tickets/{type?}/{currentTicket?}', 'PatientController@tickets')->name('patient-tickets');
  484. // invoicing
  485. Route::get('invoicing/companies', 'PatientController@invoicingCompanies')->name('invoicing-companies');
  486. Route::get('invoicing/invoices/{customer}', 'PatientController@invoicingInvoices')->name('invoicing-invoices');
  487. Route::get('invoicing/customer-transactions/{customer}', 'PatientController@invoicingCustomerTransactions')->name('invoicing-customer-transactions');
  488. Route::get('invoicing/invoice-transactions/{invoice}', 'PatientController@invoicingInvoiceTransactions')->name('invoicing-invoice-transactions');
  489. // prescriptions (new)
  490. Route::get('prescriptions/{type?}/{currentErx?}', 'PatientController@prescriptions')->name('patient-prescriptions');
  491. Route::get('prescriptions-popup/{type?}/{currentErx?}', 'PatientController@prescriptionsPopup')->name('patient-prescriptions-popup');
  492. Route::get('prescriptions-list/{type?}/{currentErx?}', 'PatientController@prescriptionsList')->name('patient-prescriptions-list');
  493. // appointments
  494. Route::get('appointments/{forPro}/{status}', 'PatientController@appointments')->name('appointments');
  495. Route::get('supply-orders/{supplyOrder?}', 'PatientController@supplyOrders')->name('supply-orders');
  496. Route::get('shipments/{shipment?}', 'PatientController@shipments')->name('shipments');
  497. // CLAIMS RESOLVER
  498. Route::get('claims-resolver', 'PatientController@claimsResolver')->name('claims-resolver');
  499. Route::get('accounts', 'PatientController@accounts')->name('accounts');
  500. Route::get('rtm', 'PatientController@rtm')->name('rtm');
  501. });
  502. });
  503. Route::get('/protocol-builder/{patient}', 'PatientController@protocolBuilder')->name('protocol-builder');
  504. Route::get('/point/edit-hpi/{note}/{point}', 'NoteController@editHPI')->name('point-edit-hpi');
  505. Route::get('/point/hpi-log/{point}', 'NoteController@hpiLog')->name('point-hpi-log');
  506. Route::get('/point/review-log/{point}', 'NoteController@reviewLog')->name('point-review-log');
  507. Route::get('/point/plan-log/{point}', 'NoteController@planLog')->name('point-plan-log');
  508. Route::get('/note/pdf/{note}', 'NoteController@downloadAsPdf')->name('note-pdf');
  509. Route::get('/note/generate-cc/{note}', 'NoteController@generateCC')->name('note-generate-cc');
  510. Route::get('/note/ccm-agreement/{note}', 'NoteController@ccmAgreement')->name('ccm-agreement');
  511. Route::get('/note/rpm-agreement/{note}', 'NoteController@rpmAgreement')->name('rpm-agreement');
  512. Route::get('/segment-summary/{segment}', 'NoteController@segmentSummary')->name('segment-summary');
  513. Route::get('/mrv-summary/{note}', 'NoteController@mrvSummary')->name('mrv-summary');
  514. Route::get('/note-segment-view/{patient}/{note}/{segment}/{segmentInternalName}/{view}', 'NoteController@noteSegmentView')->name('note-segment-view');
  515. Route::get('/note-segment-view-by-name/{note}/{segmentInternalName}/{view}', 'NoteController@noteSegmentViewByName')->name('note-segment-view-by-name');
  516. Route::get('/module-view/{note}/{segmentInternalName}/{view}', 'NoteController@moduleView')->name('module-view');
  517. Route::get('/chart-segment-view/{patient}/{segmentInternalName}/{view}', 'NoteController@chartSegmentView')->name('chart-segment-view');
  518. Route::get('/note-rhs-sidebar/{patient}/{note}', 'NoteController@rhsSidebar')->name('note-rhs-sidebar');
  519. Route::get('/medications-center/{patient}/{note}', 'NoteController@medicationsCenter')->name('medications-center');
  520. Route::get('/medications-add-multi-preexisting/{note}', 'NoteController@medicationsAddMultiPreexisting')->name('medications-add-multi-preexisting');
  521. Route::get('/medications-reconcile/{patient}/{note}', 'NoteController@medicationsReconcile')->name('medications-reconcile');
  522. Route::get('/problems-center/{patient}/{note}', 'NoteController@problemsCenter')->name('problems-center');
  523. Route::get('/goals-center/{patient}/{note}', 'NoteController@goalsCenter')->name('goals-center');
  524. Route::get('/allergies-center/{patient}/{note}', 'NoteController@allergiesCenter')->name('allergies-center');
  525. Route::get('/careteam-center/{patient}/{note}', 'NoteController@careteamCenter')->name('careteam-center');
  526. Route::get('/supplements-center/{patient}/{note}', 'NoteController@supplementsCenter')->name('supplements-center');
  527. Route::get('/supplements-reconcile/{patient}/{note}', 'NoteController@supplementsReconcile')->name('supplements-reconcile');
  528. Route::get('/memos-thread/{patient}', 'PatientController@memosThread')->name('memos-thread');
  529. Route::get('/messages-thread/{patient}', 'PatientController@messagesThread')->name('messages-thread');
  530. Route::get('/nutrition-center/{patient}/{note}', 'NoteController@nutritionCenter')->name('nutrition-center');
  531. Route::get('/exercise-center/{patient}/{note}', 'NoteController@exerciseCenter')->name('exercise-center');
  532. Route::get('/behavior-center/{patient}/{note}', 'NoteController@behaviorCenter')->name('behavior-center');
  533. Route::get('/problems-quick-add/{patient}/{note}', 'NoteController@problemsQuickAdd')->name('problems-quick-add');
  534. //mb claim single view
  535. Route::get('mb-claims/view/{mbClaim}', 'PatientController@mbClaim')->name('mb-claim');
  536. // AJAX - used by process-claims
  537. Route::get('claims/current-mb-claim/{claimUid}', 'PracticeManagementController@currentMbClaim')->name('current-mb-claim');
  538. Route::get('claims/current-claim-lines/{claimUid}', 'PracticeManagementController@currentClaimLines')->name('current-claim-lines');
  539. // pro dashboard events (ajax)
  540. Route::get('pro-dashboard-event-dates/{from}/{to}', 'HomeController@dashboardAppointmentDates')->name('pro-dashboard-event-dates');
  541. Route::get('pro-dashboard-events/{from}/{to}', 'HomeController@dashboardAppointments')->name('pro-dashboard-events');
  542. Route::get('pro-dashboard-events-display/{from}/{to}', 'HomeController@dashboardAppointmentsDisplay')->name('pro-dashboard-events-display');
  543. // pro dashboard measurements
  544. Route::get('pro-dashboard-measurements/{filter}', 'HomeController@dashboardMeasurements')->name('pro-dashboard-measurements');
  545. // events for fc
  546. Route::get('/appointment/getAllAppointmentsForPros', 'AppointmentController@events')->name('events');
  547. //events for availability
  548. Route::post('/availability/load/{proUid}', 'PracticeManagementController@loadAvailability')->name('loadAvailability');
  549. Route::post('/pro-availability/filter', 'PracticeManagementController@proAvailabilityFilter')->name('pro-availability-filter');
  550. // load template set
  551. Route::get('/note-template-set/exam/{exam}/{template}', 'HomeController@noteExamTemplateSet');
  552. Route::get('/note-template-set/{section}/{template}', 'HomeController@noteTemplateSet');
  553. // Patient suggest
  554. Route::get('/patients-suggest', 'HomeController@patientsSuggest');
  555. // column suggest
  556. Route::get('/column-suggest', 'StatTreeLineController@columnSuggest');
  557. // Pharmacy suggest
  558. Route::get('/pharmacy-suggest', 'HomeController@pharmacySuggest');
  559. // Company/client suggest
  560. Route::get('/company-suggest', 'InvoiceController@companySuggestJSON')->name('company-suggest-json');
  561. Route::get('/client-suggest', 'InvoiceController@clientSuggestJSON')->name('client-suggest-json');
  562. Route::get('/customer-suggest', 'InvoiceController@customerSuggestJSON')->name('customer-suggest-json');
  563. Route::get('/customer/invoicesJSON/{customer}', 'InvoiceController@customerInvoicesJSON')->name('customer-invoices-json');
  564. // Pro suggest
  565. Route::get('/pro-suggest', 'HomeController@proSuggest');
  566. Route::get('/pro-display-name/{pro}', 'HomeController@proDisplayName');
  567. Route::get('/pro-uid/{id}', 'HomeController@proUid');
  568. // embeddable sections
  569. Route::get('/embed/{patient}/{section}/{selectable}', 'PatientController@embedSection')->name('embed-section');
  570. // AJAX presence poll
  571. Route::get('/patients/{patient}/presence', 'PatientController@presence');
  572. // refresh single ticket
  573. Route::get('/get-ticket/{ticket}', 'HomeController@getTicket');
  574. // rpm matrix single row
  575. Route::get('/rpm-matrix-row', 'PracticeManagementController@remoteMonitoring_Row');
  576. Route::get('rpm-matrix-row-mcp', 'PracticeManagementController@remoteMonitoring_RowMCP')->name('rpm-matrix-row-mcp');
  577. Route::get('rpm-matrix-row-rmm', 'PracticeManagementController@remoteMonitoring_RowRMM')->name('rpm-matrix-row-rmm');
  578. Route::get('rpm-matrix-row-rme', 'PracticeManagementController@remoteMonitoring_RowRME')->name('rpm-matrix-row-rme');
  579. Route::get('rpm-matrix-row-admin', 'PracticeManagementController@remoteMonitoring_RowADMIN')->name('rpm-matrix-row-admin');
  580. Route::get('/appointment-confirmation-history/{appointment}', 'AppointmentController@appointmentConfirmationHistory')->name('appointment-confirmation-history');
  581. // 2-pane outer page housing lhs (practice management) and rhs (video call)
  582. Route::get('/mc/{fragment?}', 'HomeController@mc')
  583. ->where('fragment', '.*')
  584. ->name('mc');
  585. // pro meeting
  586. Route::get('/pro/check-video/{uid}', 'PracticeManagementController@checkVideo');
  587. Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
  588. Route::post('/pro/meet/get-participant-info', 'PracticeManagementController@getParticipantInfo');
  589. Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
  590. Route::get('/patients-in-queue', 'PracticeManagementController@getPatientsInQueue');
  591. Route::get('/current-work', 'PracticeManagementController@currentWork');
  592. //Notes stuff
  593. Route::get('/note/{note_uid}', 'NoteController@renderNote')->name('render-note');
  594. Route::get('/section_create_form/{note_uid}/{section_template_uid}', 'NoteController@sectionCreateForm')->name('section_create_form');
  595. Route::get('/section_update_form/{section_uid}', 'NoteController@sectionUpdateForm')->name('section_update_form');
  596. // generic bills modal
  597. Route::get('/generic-bill-view/{entityType}/{entityUid}', 'HomeController@genericBill')->name('generic-bill-view');
  598. Route::get("/log_in_as", 'HomeController@logInAs')->name('log-in-as');
  599. Route::post("/process-log_in_as", 'HomeController@processLogInAs')->name('process-log-in-as');
  600. Route::post("/back_to_admin_pro", 'HomeController@backToAdminPro')->name('back-to-admin-pro');
  601. Route::get('/remote-monitoring-measurements/{careMonth}', 'PracticeManagementController@remoteMonitoringMeasurements')->name('remote-monitoring-measurements');
  602. Route::get('/patient-care-month-matrix/{careMonth}', 'PatientController@careMonthMatrix')->name('patient-care-month-matrix');
  603. Route::get('/pro-care-month-report', 'PracticeManagementController@careMonthReport')->name('pro-care-month-report');
  604. // fdb playground
  605. Route::get('/fdb-pg-rx', 'FDBPGController@rx')->name('fdb-pg-rx');
  606. Route::get('/fdb-med-suggest', 'FDBPGController@medSuggest');
  607. Route::get('/fdb-med-suggest/json', 'FDBPGController@medSuggestJSON');
  608. Route::get('/fdb-med-suggest-v2/json', 'FDBPGController@medSuggestV2JSON');
  609. Route::get('/fdb-routed-meds', 'FDBPGController@routedMeds');
  610. Route::get('/fdb-routed-dosages', 'FDBPGController@routedDosages');
  611. Route::get('/fdb-meds', 'FDBPGController@meds');
  612. Route::get('/fdb-side-effects', 'FDBPGController@sideEffects');
  613. Route::get('/fdb-geriatric-precautions', 'FDBPGController@geriatricPrecautions');
  614. Route::get('/fdb-indications', 'FDBPGController@indications');
  615. Route::get('/fdb-contraindications', 'FDBPGController@contraindications');
  616. Route::get('/fdb-dx-suggest', 'FDBPGController@dxSuggest');
  617. Route::get('/fdb-dx-suggest/json', 'FDBPGController@dxSuggestJSON');
  618. Route::get('/fdb-dx-suggest-v2/json', 'FDBPGController@dxSuggestV2JSON');
  619. Route::get('/fdb-dx-icds-for-dxid', 'FDBPGController@dxICDsForDxID');
  620. Route::get('/fdb-allergy-suggest', 'FDBPGController@allergySuggest');
  621. Route::get('/fdb-allergy-suggest/json', 'FDBPGController@allergySuggestJSON');
  622. Route::any('/fdb-drug-allergies', 'FDBPGController@drugAllergies');
  623. Route::any('/fdb-drug-drug-interaction', 'FDBPGController@drugDrugInteraction');
  624. Route::any('/fdb-drug-coadministration', 'FDBPGController@drugCoadministration');
  625. Route::any('/fdb-duplicate-therapy', 'FDBPGController@duplicateTherapy');
  626. Route::any('/fdb-rx-vigilance/{patient}', 'FDBPGController@rxVigilance');
  627. Route::any('/fdb-dx-vigilance/{patient}', 'FDBPGController@dxVigilance');
  628. Route::any('/fdb-allergy-vigilance/{patient}', 'FDBPGController@allergyVigilance');
  629. Route::get('/search-payer/json', 'PayerController@searchPayerV2JSON')->name('searchPayerV2JSON');
  630. Route::get('/search-facility/json', 'HomeController@facilitySuggestJSON')->name('facilitySuggestJSON');
  631. Route::get('print-note/{patient}/{note}', 'NoteController@print')->name('print-note');
  632. Route::get('resolve-note/{patient}/{note}', 'NoteController@resolve')->name('resolve-note');
  633. });
  634. Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
  635. Route::get("/get-default-section-data/{patientID}/{sectionTemplateID}", 'NoteController@getDefaultValueForSection')->name('get_default_section_data');
  636. Route::get("/get-segment-html/{segmentUid}/{sessionKey}", 'NoteController@getHtmlForSegment')->name('get_segment_html');
  637. Route::get("/ougoing-email-templates", 'HomeController@outgoingEmailTemplates')->name('outgoingEmailTemplates');
  638. Route::any("/nop", 'HomeController@nop')->name('nop');
  639. Route::get('/document-pdf/{uid}', 'DocumentsController@generateDocumentPDF')->name('generateDocumentPDF');
  640. // ic pages - client facing
  641. Route::get('/ic/home/{sessionKey?}', 'InvoiceController@icCustomerPortal')->name('icCustomerPortal');
  642. Route::get('/ic/pay/{invoiceUid}/{sessionKey?}', 'InvoiceController@icPayInvoice')->name('icPayInvoice');
  643. Route::get('/ic/manageAccount/{sessionKey?}', 'InvoiceController@icManageAccount')->name('icManageAccount');