web.php 65 KB

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