mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
190 lines
16 KiB
PHP
190 lines
16 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group(['middleware' => ['auth', 'disablebackbutton', 'user-locale','subscription-tracking', 'password-expiry']], function () {
|
|
/* Alerts */
|
|
Route::post('store_patient_alerts', 'AlertsController@store_patient_alerts');
|
|
Route::any('alerts/view_alerts', 'AlertsController@view_alerts');
|
|
Route::any('alerts/edit_alert/{id}', 'AlertsController@edit_alert');
|
|
Route::any('alerts/save_edit_alert', 'AlertsController@save_edit_alert')->name('alerts.save_edit_alert');
|
|
Route::any('alerts/delete_alert/{id}', 'AlertsController@delete_alert');
|
|
Route::resource('alerts', 'AlertsController');
|
|
|
|
/* Allergies */
|
|
Route::resource('allergies', 'AllergiesController');
|
|
Route::post('store_patient_allergies', 'AllergiesController@store_patient_allergies');
|
|
|
|
/* Consultation Controller */
|
|
Route::get('consultation/route', 'ConsultationController@route');
|
|
Route::any('consultation/create_with_notes', 'ConsultationController@create_with_notes');
|
|
Route::any('consultation/review_episode/{current_episode_id}/{parent_episode_id}/{type}', 'ConsultationController@review_episode');
|
|
Route::resource('consultation', 'ConsultationController');
|
|
Route::get('edit_patient_consultation', 'ConsultationController@edit_patient_consultation');
|
|
Route::any('opd_referral_notes_print/{patient_id}/{episode_id}', 'ConsultationController@opd_referral_notes_print')->name('consultation.opd_referral_notes_print');
|
|
Route::any('consultation/add_diagnosis', 'ConsultationController@add_diagnosis')->name('consultation.add_diagnosis');
|
|
Route::get('get_outcome_slug/{id}', 'ConsultationController@get_outcome_slug');
|
|
Route::get('delete_consultation_clinical_notes/{id}', 'ConsultationController@delete_consultation_clinical_notes');
|
|
Route::post('update_consultation_clinical_notes', 'ConsultationController@update_consultation_clinical_notes');
|
|
|
|
/* Triage Controller */
|
|
Route::any('/triage/add_symptom', 'TriageController@add_symptom')->name('triage.add_symptom');
|
|
Route::any('/triage/add_referral', 'TriageController@add_referral')->name('triage.add_referral');
|
|
Route::any('/triage/get_prompt', 'TriageController@get_prompt')->name('triage.get_prompt');
|
|
Route::any('/triage/create_without_etat', 'TriageController@create_without_etat')->name('triage.create_without_etat');
|
|
Route::any('/triage/store_without_etat', 'TriageController@store_without_etat')->name('triage.store_without_etat');
|
|
Route::any('/triage/show_without_etat/{id}', 'TriageController@show_without_etat');
|
|
Route::any('/triage/save_smart_triage_score', 'TriageController@save_smart_triage_score');
|
|
Route::any('/triage/smart_triage_report', 'TriageController@smart_triage_report')->name('triage.smart_triage_report');
|
|
Route::any('/triage/get_nutrition_status', 'NutritionController@get_nutrition_status')->name('triage.get_nutrition_status');
|
|
Route::resource('triage', 'TriageController');
|
|
|
|
Route::any('/triage/edit_for_post_discharge/{episode_id}', 'TriageController@edit_for_post_discharge');
|
|
Route::any('/triage/save_edits_for_post_discharge/', 'TriageController@save_edits_for_post_discharge')->name('triage.save_edits_for_post_discharge');
|
|
|
|
Route::post('/patient_documents/modal_store', 'PatientDocumentController@modal_store')->name('patient_documents.modal_store');
|
|
Route::resource('patient_documents', 'PatientDocumentController'); // Patient Documents
|
|
Route::get('set_episode_id/{id}/patient_documents', 'PatientDocumentController@set_episode_id');
|
|
Route::resource('patient_documents/store', 'PatientDocumentController@modal_store');
|
|
|
|
|
|
/* Patient Flow Monitoring Controller */
|
|
Route::any('/patient_flow_monitoring/index', 'PatientFlowMonitoringController@index')->name('patient_flow_monitoring.index');
|
|
Route::get('/patient_flow_monitoring/patient_route/{episode_id}/{route}', 'PatientFlowMonitoringController@patient_route');
|
|
Route::any('patient_flow_monitoring_admission', 'PatientFlowMonitoringController@inpatient_admission')->name('patient_flow_monitoring.inpatient_admission');
|
|
|
|
Route::any('/point_of_sale/order_items', 'PointOfSaleController@order_items')->name('point_of_sale.order_items');
|
|
Route::any('/point_of_sale/confirm_items', 'PointOfSaleController@confirm_items')->name('point_of_sale.confirm_items');
|
|
Route::any('/point_of_sale/confirm_pricing', 'PointOfSaleController@confirm_pricing')->name('point_of_sale.confirm_pricing');
|
|
Route::any('/point_of_sale/print/{id}', 'PointOfSaleController@print');
|
|
Route::any('/point_of_sale/print_pos_pdf', 'PointOfSaleController@print_pos_pdf');
|
|
Route::any('point_of_sale', 'PointOfSaleController@index')->name('point_of_sale.index');
|
|
|
|
// post discharge risk
|
|
Route::any('/post_discharge_risk/view_scores/', 'PostDischargeRiskController@view_scores')->name('post_discharge_risk.view_scores');
|
|
Route::any('/post_discharge_risk/vht_discharge_forms/', 'PostDischargeRiskController@vht_discharge_forms')->name('post_discharge_risk.vht_discharge_forms');
|
|
Route::any('/post_discharge_risk/save_edits_for_post_discharge/', 'PostDischargeRiskController@save_edits_for_post_discharge')->name('post_discharge_risk.save_edits_for_post_discharge');
|
|
Route::any('/post_discharge_risk/print_vht_discharge_forms/{discharge_risk_score_id}', 'PostDischargeRiskController@print_vht_discharge_forms');
|
|
Route::any('/post_discharge_risk/assign_vht/{discharge_risk_score_id}', 'PostDischargeRiskController@assign_vht');
|
|
Route::any('/post_discharge_risk/search_vht_by_name_village', 'PostDischargeRiskController@search_vht_by_name_village');
|
|
Route::any('/post_discharge_risk/get_info_about_vht/{vht_id}', 'PostDischargeRiskController@get_info_about_vht');
|
|
Route::any('/post_discharge_risk/save_assign_vht/', 'PostDischargeRiskController@save_assign_vht')->name('post_discharge_risk.save_assign_vht');
|
|
Route::any('/post_discharge_risk/retry_sending_message/{discharge_risk_score_id}', 'PostDischargeRiskController@retry_sending_message');
|
|
Route::any('/post_discharge_risk/view_follow_up_patients/', 'PostDischargeRiskController@view_follow_up_patients')->name('post_discharge_risk.view_follow_up_patients');
|
|
|
|
/* Patient Episode Controller */
|
|
|
|
Route::any('/patient_episodes/create_episode', 'PatientEpisodeController@create_episode')->name('patient_episodes.create_episode');
|
|
Route::any('/patient_episodes/set_patient_id/{id}', 'PatientEpisodeController@set_patient_id')->name('patient_episodes.set_patient_id');
|
|
Route::any('/patient_episodes/route_patient_episode', 'PatientEpisodeController@route_patient_episode')->name('patient_episodes.route_patient_episode');
|
|
Route::any('/patient_episodes/internal_clinic_transfer/{id}', 'PatientEpisodeController@internal_clinic_transfer')->name('patient_episodes.internal_clinic_transfer');
|
|
Route::any('/patient_episodes/save_internal_clinic_transfer', 'PatientEpisodeController@save_internal_clinic_transfer')->name('patient_episodes.save_internal_clinic_transfer');
|
|
Route::get('/patients/episode_summary/{episode_id}', 'PatientEpisodeController@episode_summary');
|
|
Route::any('/patient_episodes/delete_episode/{episode_id}', 'PatientEpisodeController@delete_episode');
|
|
Route::resource('patient_episodes', 'PatientEpisodeController');
|
|
|
|
/* create an episode with an allocated special clinic or ward */
|
|
Route::any('create_special_clinic_episode', 'PatientEpisodeController@create_special_clinic_episode')->name('patient_episodes.create_special_clinic_episode');
|
|
Route::any('create_episode_with_ward', 'PatientEpisodeController@create_episode_with_ward')->name('patient_episodes.create_episode_with_ward');
|
|
Route::any('admit_patient_with_episode', 'PatientEpisodeController@admit_patient_with_episode')->name('patient_episodes.admit_patient_with_episode');
|
|
|
|
/* create an episode with an allocated doctor */
|
|
Route::any('create_episode_with_doctor', 'PatientEpisodeController@create_episode_with_doctor')->name('patient_episodes.create_episode_with_doctor');
|
|
Route::any('create_episode_with_doctor_and_clinic', 'PatientEpisodeController@create_episode_with_doctor_and_clinic')->name('patient_episodes.create_episode_with_doctor_and_clinic');
|
|
|
|
/* Claim Number */
|
|
Route::any('edit_claim_number', 'PatientEpisodeController@edit_claim_number')->name('patient_episodes.edit_claim_number');
|
|
|
|
/* create an episode with a self lab request */
|
|
Route::any('create_episode_with_lab_self_request', 'PatientEpisodeController@create_episode_with_lab_self_request')->name('patient_episodes.create_episode_with_lab_self_request');
|
|
|
|
/* start an appointment with a clinic */
|
|
Route::any('start_appointment_with_clinic', 'PatientEpisodeController@start_appointment_with_clinic')->name('patient_episodes.start_appointment_with_doctor_and_clinic');
|
|
|
|
/* save a doctor transfer */
|
|
Route::any('/patient_episodes/save_doctor_transfer', 'PatientEpisodeController@save_doctor_transfer')->name('patient_episodes.save_doctor_transfer');
|
|
Route::any('patient_episodes/get_assigned_doctor/{episode_id}', 'PatientEpisodeController@get_assigned_doctor');
|
|
|
|
/*merge patient episodes */
|
|
Route::any('episode_merge_preview', 'PatientEpisodeController@episode_merge_preview');
|
|
Route::any('patient_episodes_merge', 'PatientEpisodeController@merge_patient_episodes')->name('patient_episodes.merge');
|
|
Route::any('complete_episodes_merge', 'PatientEpisodeController@complete_episodes_merge')->name('patient_episodes.complete_merge');
|
|
Route::any('display_original_and_duplicate_episodes', 'PatientEpisodeController@display_original_and_duplicate_episodes');
|
|
|
|
//check for consultation
|
|
Route::any('check_clinical_consultation_payment', 'PatientEpisodeController@check_clinical_consultation_payment');
|
|
|
|
/* Patient Controller */
|
|
Route::get('/patients/inactive', 'PatientController@inactive')->name('patients.inactive');
|
|
Route::any('/patients/patient_cards/search_patient_cards_to_print', 'PatientController@search_patient_cards_to_print')->name('patients.search_patient_cards_to_print');
|
|
Route::post('/patients/patient_cards/print_patients_cards', 'PatientController@print_patients_cards')->name('patients.print_patients_cards');
|
|
Route::get('/patients/follow_up', 'PatientAppointmentsController@follow_up')->name('patients.follow_up');
|
|
Route::get('/patients/appointment_requests', 'PatientAppointmentsController@appointment_requests')->name('patients.appointment_requests');
|
|
Route::get('/patients/confirm_appointment/{id}', 'PatientAppointmentsController@confirm_appointment');
|
|
Route::any('/patients/save_confirmed_appointment', 'PatientAppointmentsController@save_confirmed_appointment')->name('patients.save_confirmed_appointment');
|
|
Route::any('/patients/follow_up_fetch_patients', 'PatientAppointmentsController@follow_up_fetch_patients')->name('patients.follow_up_fetch_patients');
|
|
Route::any('/patients/create_appointment', 'PatientAppointmentsController@create_appointment')->name('patients.create_appointment');
|
|
Route::any('/patients/save_appointment', 'PatientAppointmentsController@save_appointment')->name('patients.save_appointment');
|
|
Route::any('/patients/complete_appointment/{id}', 'PatientAppointmentsController@complete_appointment');
|
|
Route::any('/patients/cancel_patient_appointment/{id}', 'PatientAppointmentsController@cancel_patient_appointment');
|
|
Route::any('/patients/reschedule_appointment/{id}', 'PatientAppointmentsController@reschedule_appointment');
|
|
Route::any('/patients/save_rescheduled_appointment', 'PatientAppointmentsController@save_rescheduled_appointment')->name('patients.save_rescheduled_appointment');
|
|
Route::get('/patients/search_patient_by_name_number', 'PatientController@search_patient_by_name_number')->name('patients.search_patient_by_name_number');
|
|
Route::get('/patients/update_patient_info/{id}', 'PatientController@update_patient_info')->name('patients.update_patient_info');
|
|
Route::get('/patients/create', 'PatientController@create')->name('patients.create');
|
|
Route::any('/patients/selected', 'PatientController@select')->name('patients.selected');
|
|
Route::any('/patients/select', 'PatientController@select')->name('patients.select');
|
|
Route::post('/activate{id}/patients', 'PatientController@activate')->name('patients.activate');
|
|
Route::any('/patients/get_counties/{id}', 'ResidenceController@get_counties')->name('patients.get_counties');
|
|
Route::any('/patients/get_subcounties/{id}', 'ResidenceController@get_subcounties')->name('patients.get_subcounties');
|
|
Route::any('/patients/get_parishes/{id}', 'ResidenceController@get_parishes')->name('patients.get_parishes');
|
|
Route::any('/patients/get_villages/{id}', 'ResidenceController@get_villages')->name('patients.get_villages');
|
|
Route::get('/patients/search_residences', 'PatientController@search_residences')->name('patients.search_residences');
|
|
Route::any('/patients/save_patient_with_episode', 'PatientController@save_patient_with_episode')->name('patients.save_patient_with_episode');
|
|
Route::any('/patients/check_duplicate_patients', 'PatientController@check_duplicate_patients')->name('patients.check_duplicate_patients');
|
|
Route::post('/patients/delete_patient_with_reason', 'PatientController@delete_patient_with_reason')->name('patients.delete_patient_with_reason');
|
|
Route::any('/patients/search', 'PatientController@search')->name('patients.search');
|
|
Route::any('patients/add_company', 'PatientController@add_company')->name('patients.add_company');
|
|
Route::any('patients/add_country', 'PatientController@add_country')->name('patients.add_country');
|
|
Route::any('patients/quick_add_district_residence', 'PatientController@quick_add_district_residence');
|
|
Route::any('patients/quick_add_village_residence', 'PatientController@quick_add_village_residence');
|
|
Route::any('patients/quick_add_residence', 'ResidenceController@quick_add_residence');
|
|
Route::any('patients/get_fingerprint/{id}', 'PatientController@get_fingerprint');
|
|
Route::any('patients/fetch_fingerprint_from_scanner/', 'PatientController@fetch_fingerprint_from_scanner');
|
|
Route::any('patients/compare_fingerprint_from_scanner/', 'PatientController@compare_fingerprint_from_scanner');
|
|
|
|
/* patient residences */
|
|
Route::get('patient_residence/{disctrict_id}', 'ResidenceController@get_residence');
|
|
Route::get('patient_residence/search_districts', 'ResidenceController@search_districts');
|
|
Route::get('patient_residence/search_counties', 'ResidenceController@search_counties');
|
|
Route::get('patient_residence/search_subcounties', 'ResidenceController@search_subcounties');
|
|
Route::get('patient_residence/search_parishes', 'ResidenceController@search_parishes');
|
|
Route::get('patient_residence/search_villages', 'ResidenceController@search_villages');
|
|
Route::get('patient_residence/district/{district_id}', 'ResidenceController@get_residence_district');
|
|
Route::get('patient_residence/county/{county_id}', 'ResidenceController@get_residence_county');
|
|
Route::get('patient_residence/sub_county/{sub_county_id}', 'ResidenceController@get_residence_sub_county');
|
|
Route::get('patient_residence/parish/{parish_id}', 'ResidenceController@get_residence_parish');
|
|
|
|
Route::resource('patients', 'PatientController');
|
|
|
|
Route::any('add_new_occupation_dynamically', 'ResidenceController@add_new_occupation_dynamically');
|
|
Route::any('add_new_district_dynamically', 'ResidenceController@add_new_district_dynamically');
|
|
Route::any('add_new_county_dynamically', 'ResidenceController@add_new_county_dynamically');
|
|
Route::any('add_new_subcounty_dynamically', 'ResidenceController@add_new_subcounty_dynamically');
|
|
Route::any('add_new_parish_dynamically', 'ResidenceController@add_new_parish_dynamically');
|
|
Route::any('add_new_village_dynamically', 'ResidenceController@add_new_village_dynamically');
|
|
|
|
// duplicate patients
|
|
Route::any('possible_duplicate_patients/{id}', 'PatientController@possible_duplicate_patients');
|
|
Route::post('display_original_and_duplicate_patients', 'PatientController@display_original_and_duplicate_patients');
|
|
Route::any('merge_patient_records', 'PatientController@merge_records')->name('patients.merge_records');
|
|
|
|
//patient appointments report
|
|
Route::any('patient_appointments_report', 'PatientAppointmentsController@patient_appointments_report')->name('patients.patient_appointments_report');
|
|
Route::post('view_dna_patient_demographic', 'PatientController@view_dna_patient_demographic');
|
|
Route::any('store_appointment_comment', 'PatientAppointmentsController@store_appointment_comment');
|
|
|
|
Route::any('patient_card/{id}', 'PatientController@patient_card');
|
|
Route::get('patient_cards', 'PatientController@patient_cards')->name('patients.patient_cards');
|
|
});
|