resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/reports', function () {
return "Reports";
});
@@ -0,0 +1,135 @@
<?php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => ['auth', 'disablebackbutton', 'user-locale','subscription-tracking', 'password-expiry']], function () {
// Memorised Reports
Route::resource('reports', 'StreamlineReportsController');
Route::resource('streamline_reports', 'StreamlineReportsController');
Route::any('opd_attendance_referrals_diagnosis_totals', 'HmisController@opd_attendance_referrals_diagnosis_totals');
Route::get('charge-book', 'StreamlineReportsController@charge_book')->name('reports.charge-book');
Route::get('charge-book/print', 'StreamlineReportsController@charge_book_print')->name('reports.charge-book.print');
Route::get('health_unit_quarterly_report', 'StreamlineReportsController@health_unit_quarterly_report')->name('streamline_reports.health_unit_quarterly_report');
Route::get('list/hmis-reports', 'StreamlineReportsController@list_hmis_reports');
Route::get('list_memorised_reports', 'StreamlineReportsController@listReports');
Route::any('weekly_epidemiological_surveillance_form', 'HmisController@weekly_epidemiological_surveillance_surveillance_form');
Route::any('weekly_epidemiological_surveillance_cases_details/{diagnosis_id}', 'HmisController@weekly_epidemiological_surveillance_cases_details');
Route::any('weekly_epidemiological_surveillance_deaths_details/{diagnosis_id}', 'HmisController@weekly_epidemiological_surveillance_deaths_details');
Route::any('/streamline_reports/streamline_reports_details', 'StreamlineReportsController@streamline_reports_details')->name('streamline_reports.streamline_reports_details');
Route::any('/streamline_reports/diagnosis_drill_down/{diagnosis_id}/{gender}', 'StreamlineReportsController@diagnosis_drill_down')->name('streamline_reports.diagnosis_drill_down');
Route::any('/streamline_reports/treatments_drill_down/{drug_id}', 'StreamlineReportsController@treatments_drill_down')->name('streamline_reports.treatments_drill_down');
Route::any('/streamline_reports/investigations_drill_down/{investigation_id}', 'StreamlineReportsController@investigations_drill_down')->name('streamline_reports.investigations_drill_down');
Route::any('/streamline_reports/symptoms_drill_down/{symptom_id}', 'StreamlineReportsController@symptoms_drill_down')->name('streamline_reports.symptoms_drill_down');
Route::any('/streamline_reports/print_patient_visits_report', 'StreamlineReportsController@print_patient_visits_report')->name('streamline_reports.print_patient_visits_report');
Route::any('/streamline_reports/patient_visits_breakdown/{title}/{patients}', 'StreamlineReportsController@patient_visits_breakdown');
Route::any('/streamline_reports/doctors_performance_report_details', 'StreamlineReportsController@doctors_performance_report_details');
Route::any('bmi_report', 'StreamlineReportsController@bmi_report');
Route::any('bmi_report_details', 'StreamlineReportsController@bmi_report_details');
Route::any('family_planning_report', 'StreamlineReportsController@family_planning_report');
Route::any('family_planning_report_details', 'StreamlineReportsController@family_planning_report_details');
Route::any('rdt_report', 'StreamlineReportsController@rdt_report');
Route::any('anaesthesia_report', 'StreamlineReportsController@anaesthesia_report');
Route::any('surgery_report', 'StreamlineReportsController@surgery_report');
Route::any('ward_re_admittance_report', 'StreamlineReportsController@ward_re_admittance_report')->name('ward_re_admittance_report');
Route::any('/memorised_reports/patients_lost_to_follow_up', 'StreamlineReportsController@patients_lost_to_follow_up')->name('memorised_reports.patients_lost_to_follow_up');
Route::any('/memorised_reports/days_drugs_out_of_stock', 'StreamlineReportsController@days_drugs_out_of_stock')->name('memorised_reports.days_drugs_out_of_stock');
Route::any('/memorised_reports/view_investigation_specimen_report', 'StreamlineReportsController@view_investigation_specimen_report')->name('memorised_reports.view_investigation_specimen_report');
Route::any('procedures_report','StreamlineReportsController@procedures_report');
Route::any('tb_screening_report', 'StreamlineReportsController@tb_screening_report')->name('streamline_reports.tb_screening_report');
Route::any('tb_screening_report_presumptive_details', 'StreamlineReportsController@tb_screening_report_presumptive')->name('streamline_reports.tb_screening_report_presumptive');
Route::any('tb_screening_report_triage_details', 'StreamlineReportsController@tb_screening_report_triage_details')->name('streamline_reports.tb_screening_report_triage');
Route::any('performed_services_report','StreamlineReportsController@performed_services_report');
Route::any('memorised_reports/maternity_report', 'StreamlineReportsController@maternity_report');
Route::any('maternity_report_details', 'StreamlineReportsController@maternity_report_details')->name('streamline_reports.maternity_report_details');
Route::any('tb_screening_triage_presumptives', 'StreamlineReportsController@tb_screening_triage_presumptives')->name('streamline_reports.tb_screening_triage_presumptives');
Route::match(array('GET','POST'), '/hmis/108/surgical-procedures', 'HmisController@hmis_108_procedures');
Route::match(array('GET','POST'), '/hmis/108/radiology-and-imaging', 'HmisController@hmis_108_radiology_and_imaging');
Route::match(array('GET','POST'), '/hmis/108/admissions-and-deaths', 'HmisController@hmis_108_admissions_and_deaths');
Route::match(array('GET','POST'), '/hmis/108/mental-health', 'HmisController@hmis_108_mental_health');
Route::match(array('GET','POST'), '/hmis/108/other-sections', 'HmisController@hmis_108_others');
Route::match(array('GET','POST'), '/hmis/108/special-services', 'HmisController@hmis_108_special_services');
Route::match(array('GET','POST'), '/hmis/033b/weekly_cases_and_deaths', 'HmisController@weekly_cases_and_deaths');
Route::match(array('GET','POST'), '/hmis/105/monthly-outpatient-diagnoses', 'HmisController105@monthly_outpatient_diagnoses');
// HMIS Reports
Route::any('/hmis/105', 'HmisController105@hmis_105');
Route::get('/hmis/105/print/{date_from}/{date_to}', 'HmisController105@print_hmis_105');
Route::post('/hmis/105/print_Hmis_105_information', 'HmisController105@print_Hmis_105_information')->name('hmis_105.print_Hmis_105_information');
Route::any('/hmis/105/risky-behaviours', 'HmisController105@risky_behaviours');
Route::post('/hmis/105/risky-behaviours/drill-down', 'HmisController105@risky_behaviour_drill');
Route::any('/hmis/108/surgical-procedures', 'HmisController@hmis_108_procedures');
Route::any('/hmis/108/radiology-and-imaging', 'HmisController@hmis_108_radiology_and_imaging');
Route::any('/hmis/108/admissions-and-deaths', 'HmisController@hmis_108_admissions_and_deaths');
Route::any('/hmis/108/mental-health', 'HmisController@hmis_108_mental_health');
Route::any('/hmis/108/other-sections', 'HmisController@hmis_108_others');
Route::any('/hmis/108/special-services', 'HmisController@hmis_108_special_services');
Route::any('/hmis/033b/weekly_cases_and_deaths', 'HmisController@weekly_cases_and_deaths');
Route::get('opd_attendance_details/{patients}', 'HmisController105@opd_attendance_drill');
Route::get('census_info_drill/{patients}/{page?}', 'HmisController@hmis_108_drill');
Route::post('hmis-108-patient-information', 'HmisController@hmis_108_drill')->name('hmis_108.drill_down');
Route::get('opd_referral_details/{patients}', 'HmisController105@opd_referral_drill');
Route::get('opd-diagnosis-details/{patients}', 'HmisController105@opd_diagnosis_drill');
Route::resource('hmis_reports', 'HmisController');
Route::any('expired_drugs_report', 'HmisController@expired_drugs_report');
Route::any('drug_stock_level', 'HmisController@drug_stock_level');
Route::any('essential_medicines_report', 'HmisController@essential_medicines_report');
Route::any('out_patient_register_report', 'HmisController@out_patient_register_report');
Route::any('out_patient_register_report_2', 'HmisController@out_patient_register_report_2');
Route::any('hmis/002/page-1', 'HmisController002@page_1');
Route::any('hmis/002/page-2', 'HmisController002@page_2')->name('hmis_report_002_page_2');
Route::any('hmis/002/page-1/print/{start_date}/{end_date}', 'HmisController002@page_1_print');
Route::post('hmis/002/page-2/print', 'HmisController002@page_2_print');
Route::get('/hmis_data', 'HmisController105@hmis_data');
Route::any('drug_consumption_report', 'HmisController@drug_consumption_report');
Route::any('drug_consumption_analysis', 'HmisController@drug_consumption_analysis');
Route::any('streamline_outpatient_report', 'HmisController@streamline_outpatient_report');
Route::any('streamline_outpatient_income_details', 'HmisController@streamline_outpatient_income_details')->name('streamline_outpatient_income_details');
Route::any('streamline_outpatient_details', 'HmisController@streamline_outpatient_details')->name('streamline_outpatient_details');
Route::any('streamline_outpatient_attendance_details', 'HmisController@streamline_outpatient_attendance_details');
Route::any('disease_prevalence_charts', 'HmisController@disease_prevalence_charts')->name('disease_prevalence_charts');
Route::any('/hmis/108', 'HmisController@hmis_108')->name('hmis.108');
Route::post('/hmis/108/print_Hmis_108_information', 'HmisController@print_Hmis_108_information')->name('hmis_108.print_Hmis_108_information');
Route::post('/hmis/033b/print', 'HmisController@print_hmis_033b')->name('print_hmis_033b');
Route::any('admission_details/{ward_id}/{from}/{to}', 'HmisController108@admission_details');
// Dashboard Reports
Route::any('reports_dashboard/list', 'ReportsDashboardController@list')->name('reports_dashboard.list');
Route::any('reports_dashboard/top_diagnoses', 'ReportsDashboardController@top_diagnoses')->name('reports_dashboard.top_diagnoses');
Route::post('print_top_diagnoses', 'ReportsDashboardController@print_top_diagnoses')->name('reports_dashboard.print_top_diagnoses');
Route::any('reports_dashboard/top_drugs', 'ReportsDashboardController@top_drugs')->name('reports_dashboard.top_drugs');
Route::any('reports_dashboard/top_investigations', 'ReportsDashboardController@top_investigations')->name('reports_dashboard.top_investigations');
Route::any('reports_dashboard/diagnosis_details/{id}', 'ReportsDashboardController@diagnosis_details');
Route::any('reports_dashboard/attendance', 'ReportsDashboardController@attendance')->name('reports_dashboard.attendance');
Route::any('reports_dashboard/top_suppliers', 'ReportsDashboardController@top_suppliers')->name('reports_dashboard.top_suppliers');
Route::any('reports_dashboard/top_staff', 'ReportsDashboardController@top_staff')->name('reports_dashboard.top_staff');
Route::any('reports_dashboard/staff_overview_investigations', 'ReportsDashboardController@staff_overview_investigations')->name('reports_dashboard.staff_overview_investigations');
Route::any('reports_dashboard/average_patient_wait_times', 'ReportsDashboardController@average_patient_wait_times')->name('reports_dashboard.average_patient_wait_times');
Route::any('reports_dashboard/pharmacy_overview', 'ReportsDashboardController@pharmacy_overview')->name('reports_dashboard.pharmacy_overview');
Route::any('reports_dashboard/pharmacy_lists', 'ReportsDashboardController@pharmacy_lists')->name('reports_dashboard.pharmacy_lists');
Route::any('reports_dashboard/inpatient_statistics', 'ReportsDashboardController@inpatient_statistics')->name('reports_dashboard.inpatient_statistics');
Route::any('reports_dashboard/pharmacy_patient_statistics', 'ReportsDashboardController@pharmacy_patient_statistics')->name('reports_dashboard.pharmacy_patient_statistics');
Route::any('reports_dashboard/pharmacy_patient_prescriptions', 'ReportsDashboardController@pharmacy_patient_prescriptions')->name('reports_dashboard.pharmacy_patient_prescriptions');
Route::any('reports_dashboard/pharmacy_patient_dispensings', 'ReportsDashboardController@pharmacy_patient_dispensings')->name('reports_dashboard.pharmacy_patient_dispensings');
// Nira Reports
Route::get('/reports/nira/birth', 'NiraReportController@birth_report');
Route::get('/reports/nira/death', 'NiraReportController@death_report');
/* Mental Health Reports */
Route::any('/mental_health_reports/diagnosed_patients', 'MentalHealthReportsController@diagnosed_patients')->name('mental_health_reports.diagnosed_patients');
Route::any('/mental_health_reports/persons_taking_psychotropic_drugs', 'MentalHealthReportsController@persons_taking_psychotropic_drugs')->name('mental_health_reports.persons_taking_psychotropic_drugs');
Route::any('/mental_health_reports/diagnosed_persons_who_received_treatment', 'MentalHealthReportsController@diagnosed_persons_who_received_treatment')->name('mental_health_reports.diagnosed_persons_who_received_treatment');
Route::any('/mental_health_reports/patients_lost_to_follow_up', 'MentalHealthReportsController@patients_lost_to_follow_up')->name('mental_health_reports.patients_lost_to_follow_up');
Route::any('/mental_health_reports/days_drugs_out_of_stock', 'MentalHealthReportsController@days_drugs_out_of_stock')->name('mental_health_reports.days_drugs_out_of_stock');
Route::get('get_registration_field_options', 'StreamlineReportsController@get_registration_field_options');
Route::any('/memorised_reports/view_eye_clinic_report', 'StreamlineReportsController@view_eye_clinic_report')->name('memorised_reports.view_eye_clinic_report');
Route::any('/memorised_reports/print_eye_clinic_report/{start_date}/{end_date}', 'StreamlineReportsController@print_eye_clinic_report')->name('memorised_reports.print_eye_clinic_report');
});