123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <?php
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
- /*
- * if no pro performer, then redirect to /login2
- * [Cell Number] [Password] field -> proLogInWithPassword -> /pro/dashboard
- * -> they are authenticated in... see the home dashboard... logout button to -> /login
- */
- Route::get('login', 'LoginController@showLoginForm')->name('login');
- Route::post('login', 'LoginController@login');
- Route::get('logout', 'LoginController@logout');
- Route::get('request_password_reset', 'LoginController@showRequestPasswordReset')->name('request_password_reset');
- Route::post('request_password_reset', 'LoginController@processRequestPasswordReset')->name('process_request_password_reset');
- Route::get('self_reset_password', 'LoginController@showSelfResetPassword')->name('self_reset_password');
- Route::post('self_reset_password', 'LoginController@processSelfResetPassword')->name('process_self_reset_password');
- Route::get('/pro_log_in_with_session_key/{sessionKey}/{appAccessUID?}', 'LoginController@loginWithSessionKey')->name('login_with_session_key');
- Route::post('logout', 'LoginController@logout')->name('logout');
- Route::post('/confirm_sms_auth_token', 'HomeController@postConfirmSmsAuthToken')->name('post-confirm_sms_auth_token');
- Route::post('/resend_sms_auth_token', 'HomeController@resendSmsAuthToken')->name('post-resend_sms_auth_token');
- Route::post('/set_password', 'HomeController@postSetPassword')->name('post-set_password');
- Route::post('/set_security_questions', 'HomeController@postSetSecurityQuestions')->name('post-set_security_questions');
- Route::get("/guest/section/{accessToken}", 'GuestController@section')->name('guest_section_access');
- Route::get("/guest/handout/{handoutClientUid}", 'GuestController@handout')->name('guest_handout_access');
- Route::get("/appointment-confirmation/{appointmentUid}", 'GuestController@appointmentConfirmation')->name('appointment_confirmation');
- Route::post("/process-appointment-confirmation", 'GuestController@processAppointmentConfirmation')->name('process-appointment_confirmation');
- Route::get('/ticket-download-as-pdf/{ticket}', 'TicketController@downloadAsPdf')->name('ticket-download-as-pdf');
- Route::get('/prescription-download-as-pdf/{prescription}', 'PatientController@downloadPrescriptionAsPdf')->name('prescription-download-as-pdf');
- Route::any('/prescription-transmit/{prescription}', 'PatientController@transmitPrescription')->name('prescription-transmit');
- Route::get('/get-ticket-faxes/{ticket}', 'TicketController@getTicketFaxes')->name('get-ticket-faxes');
- Route::middleware('pro.auth')->group(function () {
- //complete authentication
- Route::get('/confirm_sms_auth_token', 'HomeController@confirmSmsAuthToken')->name('confirm_sms_auth_token');
- Route::get('/set_password', 'HomeController@setPassword')->name('set_password');
- Route::get('/set_security_questions', 'HomeController@setSecurityQuestions')->name('set_security_questions');
- Route::get('/blank', 'HomeController@blank')->name('blank');
- Route::get('/', 'HomeController@dashboard')->name('dashboard');
- Route::get('/pro-dashboard-measurements-tab/{page?}', 'HomeController@dashboardMeasurementsTab')->name('dashboard-measurements-tab');
- Route::get('/new-patient', 'HomeController@newPatient')->name('new-patient');
- Route::get('/new-non-mcn-patient', 'HomeController@newNonMcnPatient')->name('new-non-mcn-patient');
- Route::get('/pros/{filter?}', 'HomeController@patients')->name('pros');
- Route::get('/unmapped-sms/{filter?}', 'HomeController@unmappedSMS')->name('unmapped-sms');
- Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
- Route::name('admin.')->prefix('a')->middleware('pro.auth.admin')->group(function () {
- // TODO
- Route::get('dashboard', 'HomeController@dashboard_ADMIN')->name('dashboard');
- Route::get('pros', 'AdminController@patients')->name('pros');
- Route::get('notes', 'AdminController@notes')->name('notes');
- Route::get('notes-pending-summary-suggestion', 'AdminController@notes_pending_summary_suggestion')->name('notes_pending_summary_suggestion');
- Route::get('notes-rejected-summary-suggestion', 'AdminController@notes_rejected_summary_suggestion')->name('notes_rejected_summary_suggestion');
- Route::get('appointments', 'AdminController@appointments')->name('appointments');
- Route::get('bills', 'AdminController@bills')->name('bills');
- Route::get('erx-and-orders', 'AdminController@erx_and_orders')->name('erx_and_orders');
- Route::get('reports', 'AdminController@reports')->name('reports');
- Route::get('supply-orders', 'AdminController@supply_orders')->name('supply_orders');
- Route::get('get-create-new-patient-script-template', 'AdminController@getCreateNewPatientScriptTemplate')->name('getCreateNewPatientScriptTemplate');
- });
- Route::name('practice-management.')->prefix('practice-management')->group(function () {
- Route::get('my-tickets/{filter?}', 'PracticeManagementController@myTickets')->name('myTickets');
- Route::get('my-text-shortcuts', 'PracticeManagementController@myTextShortcuts')->name('myTextShortcuts');
- Route::get('my-favorites/{filter?}', 'PracticeManagementController@myFavorites')->name('myFavorites');
- Route::get('pro-availability/{proUid?}', 'PracticeManagementController@proAvailability')->name('proAvailability');
- Route::get('calendar/{proUid?}', 'PracticeManagementController@calendar')->name('proCalendar');
- Route::get('tickets', 'PracticeManagementController@tickets')->name('tickets');
- Route::get('handouts', 'PracticeManagementController@handouts')->name('handouts');
- });
- Route::name('pros.view.')->prefix('pros/view/{patient}')->group(function () {
- Route::middleware(['pro.auth.can-access-patient', 'client.shadow-of-pro'])->group(function () {
-
- Route::get('', 'PatientController@dashboard')->name('dashboard');
- Route::get('canvas-migrate', 'PatientController@canvasMigrate')->name('migrate-canvas');
- Route::get('intake', 'PatientController@intake')->name('intake');
- Route::get('canvas', 'PatientController@canvas')->name('canvas');
- Route::get('intake', 'PatientController@intake')->name('intake');
- Route::get('care-plan', 'PatientController@carePlan')->name('care-plan');
- Route::get('medications', 'PatientController@medications')->name('medications');
- Route::get('dx-and-focus-areas', 'PatientController@dxAndFocusAreas')->name('dx-and-focus-areas');
- Route::get('care-team', 'PatientController@careTeam')->name('care-team');
- Route::get('devices', 'PatientController@devices')->name('devices');
- Route::get('measurements', 'PatientController@measurements')->name('measurements');
- Route::get('labs-and-studies', 'PatientController@labsAndStudies')->name('labs-and-studies');
- Route::get('history', 'PatientController@history')->name('history');
- Route::get('memos', 'PatientController@memos')->name('memos');
- Route::get('sms', 'PatientController@sms')->name('sms');
- Route::get('sms-numbers', 'PatientController@smsNumbers')->name('sms-numbers');
- Route::get('immunizations', 'PatientController@immunizations')->name('immunizations');
- Route::get('allergies', 'PatientController@allergies')->name('allergies');
- Route::get('action-items', 'PatientController@actionItems')->name('action-items');
- Route::get('action-items-erx/view/{ticket}', 'PatientController@actionItemsErxSingle')->name('action-items-erx-single');
- Route::get('action-items-lab/view/{ticket}', 'PatientController@actionItemsLabSingle')->name('action-items-lab-single');
- Route::get('action-items-imaging/view/{ticket}', 'PatientController@actionItemsImagingSingle')->name('action-items-imaging-single');
- Route::get('action-items-equipment/view/{ticket}', 'PatientController@actionItemsEquipmentSingle')->name('action-items-equipment-single');
- Route::get('action-items-other/view/{ticket}', 'PatientController@actionItemsOtherSingle')->name('action-items-other-single');
- Route::get('action-items-erx/{filter?}', 'PatientController@actionItemsErx')->name('action-items-erx');
- Route::get('action-items-lab/{filter?}', 'PatientController@actionItemsLab')->name('action-items-lab');
- Route::get('action-items-imaging/{filter?}', 'PatientController@actionItemsImaging')->name('action-items-imaging');
- Route::get('action-items-equipment/{filter?}', 'PatientController@actionItemsEquipment')->name('action-items-equipment');
- Route::get('action-items-other/{filter?}', 'PatientController@actionItemsOther')->name('action-items-other');
- Route::get('notes/{filter?}', 'PatientController@notes')->name('notes');
- Route::name('notes.view.')->prefix('notes/view/{note}')->group(function () {
- Route::get('', 'NoteController@dashboard')->name('dashboard');
- Route::get('sign-confirmation', 'NoteController@signConfirmation')->name('sign-confirmation');
- Route::get('section-view/{section}/{view}/{page?}', 'NoteController@sectionView')->name('section-view');
- });
- Route::get('generic-bills', 'PatientController@genericBills')->name('generic-bills');
- Route::get('handouts', 'PatientController@handouts')->name('handouts');
- Route::get('rm-setup', 'PatientController@rmSetup')->name('rm-setup');
- Route::get('settings', 'PatientController@settings')->name('settings');
- Route::get('sms-reminders', 'PatientController@smsReminders')->name('sms-reminders');
- Route::get('measurement-confirmation-numbers', 'PatientController@measurementConfirmationNumbers')->name('measurement-confirmation-numbers');
- Route::get('pros', 'PatientController@pros')->name('pros');
- Route::get('account', 'PatientController@account')->name('account');
- Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
- Route::get('documents', 'PatientController@documents')->name('documents');
- Route::get('incoming-reports/{currentReport?}', 'PatientController@incomingReports')->name('incoming-reports');
- Route::get('education', 'PatientController@education')->name('education');
- Route::get('messaging', 'PatientController@messaging')->name('messaging');
- Route::get('duplicate', 'PatientController@duplicate')->name('duplicate');
- Route::get('care-months', 'PatientController@careMonths')->name('care-months');
- Route::name('care-months.view.')->prefix('care-months/view/{careMonth}')->group(function () {
- Route::get('', 'CareMonthController@dashboard')->name('dashboard');
- });
- // appointment calendar
- Route::get('calendar/{currentAppointment?}', 'PatientController@calendar')->name('calendar');
- // programs
- Route::get('programs/{filter?}', 'PatientController@programs')->name('programs');
- // flowsheets
- Route::get('flowsheets/{filter?}', 'PatientController@flowsheets')->name('flowsheets');
- // vitals-settings
- Route::get('vitals-settings/{filter?}', 'PatientController@vitalsSettings')->name('vitals-settings');
- // vitals-graph
- Route::get('vitals-graph/{filter?}', 'PatientController@vitalsGraph')->name('vitals-graph');
- // tickets (old/deprecated)
- Route::get('tickets/{type?}/{currentTicket?}', 'PatientController@tickets')->name('patient-tickets');
- // prescriptions (new)
- Route::get('prescriptions/{type?}/{currentErx?}', 'PatientController@prescriptions')->name('patient-prescriptions');
- Route::get('prescriptions-popup/{type?}/{currentErx?}', 'PatientController@prescriptionsPopup')->name('patient-prescriptions-popup');
- Route::get('prescriptions-list/{type?}/{currentErx?}', 'PatientController@prescriptionsList')->name('patient-prescriptions-list');
- // appointments
- Route::get('appointments/{forPro}/{status}', 'PatientController@appointments')->name('appointments');
- Route::get('supply-orders/{supplyOrder?}', 'PatientController@supplyOrders')->name('supply-orders');
- Route::get('shipments/{shipment?}', 'PatientController@shipments')->name('shipments');
- // CLAIMS RESOLVER
- Route::get('claims-resolver', 'PatientController@claimsResolver')->name('claims-resolver');
- Route::get('accounts', 'PatientController@accounts')->name('accounts');
- Route::get('view/client-pro-access', 'PatientController@clientProAccess')->name('client-pro-access');
- });
- });
- Route::get('/point/edit-hpi/{note}/{point}', 'NoteController@editHPI')->name('point-edit-hpi');
- Route::get('/point/hpi-log/{point}', 'NoteController@hpiLog')->name('point-hpi-log');
- Route::get('/point/review-log/{point}', 'NoteController@reviewLog')->name('point-review-log');
- Route::get('/point/plan-log/{point}', 'NoteController@planLog')->name('point-plan-log');
- Route::get('/note/pdf/{note}', 'NoteController@downloadAsPdf')->name('note-pdf');
- Route::get('/note/generate-cc/{note}', 'NoteController@generateCC')->name('note-generate-cc');
- Route::get('/note/ccm-agreement/{note}', 'NoteController@ccmAgreement')->name('ccm-agreement');
- Route::get('/note/rpm-agreement/{note}', 'NoteController@rpmAgreement')->name('rpm-agreement');
- Route::get('/segment-summary/{segment}', 'NoteController@segmentSummary')->name('segment-summary');
- Route::get('/note-segment-view/{patient}/{note}/{segment}/{segmentInternalName}/{view}', 'NoteController@noteSegmentView')->name('note-segment-view');
- Route::get('/chart-segment-view/{patient}/{segmentInternalName}/{view}', 'NoteController@chartSegmentView')->name('chart-segment-view');
- Route::get('/note-rhs-sidebar/{patient}/{note}', 'NoteController@rhsSidebar')->name('note-rhs-sidebar');
- Route::get('/medications-center/{patient}/{note}', 'NoteController@medicationsCenter')->name('medications-center');
- Route::get('/medications-reconcile/{patient}/{note}', 'NoteController@medicationsReconcile')->name('medications-reconcile');
- Route::get('/problems-center/{patient}/{note}', 'NoteController@problemsCenter')->name('problems-center');
- Route::get('/goals-center/{patient}/{note}', 'NoteController@goalsCenter')->name('goals-center');
- Route::get('/allergies-center/{patient}/{note}', 'NoteController@allergiesCenter')->name('allergies-center');
- Route::get('/careteam-center/{patient}/{note}', 'NoteController@careteamCenter')->name('careteam-center');
- Route::get('/supplements-center/{patient}/{note}', 'NoteController@supplementsCenter')->name('supplements-center');
- Route::get('/supplements-reconcile/{patient}/{note}', 'NoteController@supplementsReconcile')->name('supplements-reconcile');
- Route::get('/memos-thread/{patient}', 'PatientController@memosThread')->name('memos-thread');
- Route::get('/messages-thread/{patient}', 'PatientController@messagesThread')->name('patient-messages-thread');
- Route::get('/nutrition-center/{patient}/{note}', 'NoteController@nutritionCenter')->name('nutrition-center');
- Route::get('/exercise-center/{patient}/{note}', 'NoteController@exerciseCenter')->name('exercise-center');
- Route::get('/behavior-center/{patient}/{note}', 'NoteController@behaviorCenter')->name('behavior-center');
- Route::get('/problems-quick-add/{patient}/{note}', 'NoteController@problemsQuickAdd')->name('problems-quick-add');
- //mb claim single view
- Route::get('mb-claims/view/{mbClaim}', 'PatientController@mbClaim')->name('mb-claim');
- // AJAX - used by process-claims
- Route::get('claims/current-mb-claim/{claimUid}', 'PracticeManagementController@currentMbClaim')->name('current-mb-claim');
- Route::get('claims/current-claim-lines/{claimUid}', 'PracticeManagementController@currentClaimLines')->name('current-claim-lines');
- // pro dashboard events (ajax)
- Route::get('pro-dashboard-event-dates/{from}/{to}', 'HomeController@dashboardAppointmentDates')->name('pro-dashboard-event-dates');
- Route::get('pro-dashboard-events/{from}/{to}', 'HomeController@dashboardAppointments')->name('pro-dashboard-events');
- Route::get('pro-dashboard-events-display/{from}/{to}', 'HomeController@dashboardAppointmentsDisplay')->name('pro-dashboard-events-display');
- // pro dashboard measurements
- Route::get('pro-dashboard-measurements/{filter}', 'HomeController@dashboardMeasurements')->name('pro-dashboard-measurements');
- // events for fc
- Route::get('/appointment/getAllAppointmentsForPros', 'AppointmentController@events')->name('events');
- //events for availability
- Route::post('/availability/load/{proUid}', 'PracticeManagementController@loadAvailability')->name('loadAvailability');
- Route::post('/pro-availability/filter', 'PracticeManagementController@proAvailabilityFilter')->name('pro-availability-filter');
- // load template set
- Route::get('/note-template-set/exam/{exam}/{template}', 'HomeController@noteExamTemplateSet');
- Route::get('/note-template-set/{section}/{template}', 'HomeController@noteTemplateSet');
- // Patient suggest
- Route::get('/pros-suggest', 'HomeController@patientsSuggest');
- // column suggest
- Route::get('/column-suggest', 'StatTreeLineController@columnSuggest');
- // Pharmacy suggest
- Route::get('/pharmacy-suggest', 'HomeController@pharmacySuggest');
- // Pro suggest
- Route::get('/pro-suggest', 'HomeController@proSuggest');
- Route::get('/pro-display-name/{pro}', 'HomeController@proDisplayName');
- // embeddable sections
- Route::get('/embed/{patient}/{section}/{selectable}', 'PatientController@embedSection')->name('embed-section');
- // AJAX presence poll
- Route::get('/pros/{patient}/presence', 'PatientController@presence');
- // refresh single ticket
- Route::get('/get-ticket/{ticket}', 'HomeController@getTicket');
- Route::get('/appointment-confirmation-history/{appointment}', 'AppointmentController@appointmentConfirmationHistory')->name('appointment-confirmation-history');
- // 2-pane outer page housing lhs (practice management) and rhs (video call)
- Route::get('/mc/{fragment?}', 'HomeController@mc')
- ->where('fragment', '.*')
- ->name('mc');
- // pro meeting
- Route::get('/pro/check-video/{uid}', 'PracticeManagementController@checkVideo');
- Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
- Route::post('/pro/meet/get-participant-info', 'PracticeManagementController@getParticipantInfo');
- Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
- Route::get('/pros-in-queue', 'PracticeManagementController@getPatientsInQueue');
- Route::get('/current-work', 'PracticeManagementController@currentWork');
- //Notes stuff
- Route::get('/note/{note_uid}', 'NoteController@renderNote')->name('render-note');
- Route::get('/section_create_form/{note_uid}/{section_template_uid}', 'NoteController@sectionCreateForm')->name('section_create_form');
- Route::get('/section_update_form/{section_uid}', 'NoteController@sectionUpdateForm')->name('section_update_form');
- // generic bills modal
- Route::get('/generic-bill-view/{entityType}/{entityUid}', 'HomeController@genericBill')->name('generic-bill-view');
- Route::get("/log_in_as", 'HomeController@logInAs')->name('log-in-as');
- Route::post("/process-log_in_as", 'HomeController@processLogInAs')->name('process-log-in-as');
- Route::post("/back_to_admin_pro", 'HomeController@backToAdminPro')->name('back-to-admin-pro');
- Route::get('/remote-monitoring-measurements/{careMonth}', 'PracticeManagementController@remoteMonitoringMeasurements')->name('remote-monitoring-measurements');
- Route::get('/patient-care-month-matrix/{careMonth}', 'PatientController@careMonthMatrix')->name('patient-care-month-matrix');
- Route::get('/pro-care-month-report', 'PracticeManagementController@careMonthReport')->name('pro-care-month-report');
- // fdb playground
- Route::get('/fdb-pg-rx', 'FDBPGController@rx')->name('fdb-pg-rx');
- Route::get('/fdb-med-suggest', 'FDBPGController@medSuggest');
- Route::get('/fdb-med-suggest/json', 'FDBPGController@medSuggestJSON');
- Route::get('/fdb-med-suggest-v2/json', 'FDBPGController@medSuggestV2JSON');
- Route::get('/fdb-routed-meds', 'FDBPGController@routedMeds');
- Route::get('/fdb-routed-dosages', 'FDBPGController@routedDosages');
- Route::get('/fdb-meds', 'FDBPGController@meds');
- Route::get('/fdb-side-effects', 'FDBPGController@sideEffects');
- Route::get('/fdb-geriatric-precautions', 'FDBPGController@geriatricPrecautions');
- Route::get('/fdb-indications', 'FDBPGController@indications');
- Route::get('/fdb-contraindications', 'FDBPGController@contraindications');
- Route::get('/fdb-dx-suggest', 'FDBPGController@dxSuggest');
- Route::get('/fdb-dx-suggest/json', 'FDBPGController@dxSuggestJSON');
- Route::get('/fdb-dx-suggest-v2/json', 'FDBPGController@dxSuggestV2JSON');
- Route::get('/fdb-dx-icds-for-dxid', 'FDBPGController@dxICDsForDxID');
- Route::get('/fdb-allergy-suggest', 'FDBPGController@allergySuggest');
- Route::get('/fdb-allergy-suggest/json', 'FDBPGController@allergySuggestJSON');
- Route::any('/fdb-drug-allergies', 'FDBPGController@drugAllergies');
- Route::any('/fdb-drug-drug-interaction', 'FDBPGController@drugDrugInteraction');
- Route::any('/fdb-drug-coadministration', 'FDBPGController@drugCoadministration');
- Route::any('/fdb-duplicate-therapy', 'FDBPGController@duplicateTherapy');
- Route::any('/fdb-rx-vigilance/{patient}', 'FDBPGController@rxVigilance');
- Route::any('/fdb-dx-vigilance/{patient}', 'FDBPGController@dxVigilance');
- Route::any('/fdb-allergy-vigilance/{patient}', 'FDBPGController@allergyVigilance');
- Route::get('/search-payer/json', 'PayerController@searchPayerV2JSON')->name('searchPayerV2JSON');
- Route::get('/search-facility/json', 'HomeController@facilitySuggestJSON')->name('facilitySuggestJSON');
- Route::get('messages', 'MessageController@index')->name('messages');
- Route::get('internal-messages', 'InternalMessageController@index')->name('internal-messages');
- Route::get('messages/clients', 'MessageController@clients')->name('messages-clients');
- Route::get('messages/send-from-pros', 'MessageController@sendFromPros')->name('messages-send-from-pros');
- Route::get('messages/proofread', 'MessageController@proofread')->name('messages-proofread');
- Route::get('messages/thread', 'MessageController@thread')->name('messages-thread');
- Route::get('messages/{message}/attachments', 'MessageController@attachments')->name('messages-attachments');
- Route::get("/video-test", 'VideoTestController@index')->name('video-test');
- });
- Route::post("/process_form_submit", 'NoteController@processFormSubmit')->name('process_form_submit');
- Route::get("/get-default-section-data/{patientID}/{sectionTemplateID}", 'NoteController@getDefaultValueForSection')->name('get_default_section_data');
- Route::get("/get-segment-html/{segmentUid}/{sessionKey}", 'NoteController@getHtmlForSegment')->name('get_segment_html');
- Route::get("/ougoing-email-templates", 'HomeController@outgoingEmailTemplates')->name('outgoingEmailTemplates');
- Route::any("/nop", 'HomeController@nop')->name('nop');
|