2021-10-04 16:24:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/** @var \Laravel\Lumen\Routing\Router $router */
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Application Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register all of the routes for an application.
|
|
|
|
| It is a breeze. Simply tell Lumen the URIs it should respond to
|
|
|
|
| and give it the Closure to call when that URI is requested.
|
|
|
|
|
|
|
|
|
*/
|
2022-02-16 14:03:56 +00:00
|
|
|
|
2022-02-21 12:58:11 +00:00
|
|
|
//$router->get('pdf-viewer', 'HelperController@pdfView');
|
2022-02-16 14:03:56 +00:00
|
|
|
|
2021-10-19 14:35:01 +00:00
|
|
|
$router->group(['prefix' => '', 'middleware' => 'auth'], function () use ($router) {
|
|
|
|
// Insurances routes
|
|
|
|
$router->group(['prefix' => '/insurances'], function () use ($router) {
|
2021-10-27 12:48:07 +00:00
|
|
|
$router->get('', 'InsuranceController@getInsurances');
|
2021-11-09 08:30:31 +00:00
|
|
|
$router->get('networks', 'InsuranceController@getInsurancesNetworks');
|
|
|
|
$router->put('{id}/add-beneficiaries', 'InsuranceController@addBeneficiaries');
|
2022-02-01 17:19:29 +00:00
|
|
|
$router->put('{id}/delete-beneficiaries', 'InsuranceController@deleteBeneficiaries');
|
2022-02-04 16:56:40 +00:00
|
|
|
$router->put('{id}/stop', 'InsuranceController@stopInsurance');
|
2022-02-08 08:36:06 +00:00
|
|
|
$router->put('{id}/renew', 'InsuranceController@renewInsurance');
|
2021-11-09 08:30:31 +00:00
|
|
|
|
|
|
|
// Subscriptions
|
2021-10-27 12:48:07 +00:00
|
|
|
$router->group(['prefix' => '/subscriptions'], function () use ($router) {
|
2021-11-04 17:07:15 +00:00
|
|
|
$router->post('bonus-amount', 'InsuranceSubscriptionController@calculateBonusAmount');
|
|
|
|
$router->post('upload-images', 'InsuranceSubscriptionController@uploadImages');
|
|
|
|
$router->post('', 'InsuranceSubscriptionController@subscribe');
|
|
|
|
$router->put('{id}/validate', 'InsuranceSubscriptionController@validateSubscription');
|
|
|
|
$router->put('{id}/reject', 'InsuranceSubscriptionController@rejectSubscription');
|
2022-05-02 07:03:42 +00:00
|
|
|
// $router->put('{id}/pay', 'InsuranceSubscriptionController@paySubscription'); //OLD
|
2021-11-04 17:07:15 +00:00
|
|
|
$router->get('', 'InsuranceSubscriptionController@getSubscriptions');
|
2021-10-27 12:48:07 +00:00
|
|
|
});
|
2022-03-29 19:20:43 +00:00
|
|
|
|
|
|
|
// Factures
|
|
|
|
$router->group(['prefix' => '/invoices'], function () use ($router) {
|
|
|
|
$router->get('', 'InsuranceInvoiceController@getInvoices');
|
|
|
|
$router->put('{id}/pay', 'InsuranceInvoiceController@payInvoice');
|
2022-03-30 10:32:40 +00:00
|
|
|
$router->get('generate', 'InsuranceInvoiceController@generateInvoices');
|
2022-03-31 11:57:44 +00:00
|
|
|
$router->get('reminder', 'InsuranceInvoiceController@reminderInvoices');
|
2022-03-29 19:20:43 +00:00
|
|
|
});
|
2021-10-19 14:35:01 +00:00
|
|
|
});
|
2021-11-15 15:01:54 +00:00
|
|
|
|
|
|
|
// Insurances routes
|
|
|
|
$router->group(['prefix' => '/insured'], function () use ($router) {
|
|
|
|
//Search
|
2021-11-15 15:59:42 +00:00
|
|
|
$router->get('', 'InsuredController@getInsured');
|
2021-11-15 15:01:54 +00:00
|
|
|
});
|
|
|
|
|
2021-11-19 16:07:42 +00:00
|
|
|
$router->get('drugs-and-devices', 'HealthCareSheetController@getDrugsAndDevices');
|
|
|
|
$router->post('drugs-and-devices', 'HealthCareSheetController@storeDrugsAndDevices');
|
2021-11-25 06:59:44 +00:00
|
|
|
$router->get('provider-classes', 'HealthCareSheetController@getNetworkProviderClasses');
|
|
|
|
$router->get('acts', 'HealthCareSheetController@getNetworkActs');
|
|
|
|
|
2021-11-26 07:28:58 +00:00
|
|
|
$router->get('health-care-sheets', 'HealthCareSheetController@getHealthCareSheets');
|
2022-02-21 07:56:25 +00:00
|
|
|
$router->post('health-care-sheets/check-insurance-coverage-amount', 'HealthCareSheetController@checkInsuranceCoverageAmount');
|
2021-11-29 07:34:35 +00:00
|
|
|
$router->put('health-care-sheets', 'HealthCareSheetController@treatHealthCareSheet');
|
2021-11-29 12:02:14 +00:00
|
|
|
$router->post('health-care-sheets/performances-amount', 'HealthCareSheetController@calculateConsultationPerformancesAmount');
|
2021-11-25 06:59:44 +00:00
|
|
|
$router->post('health-care-sheets/consultation', 'HealthCareSheetController@storeHealthCareSheetConsultation');
|
|
|
|
$router->post('health-care-sheets/execution', 'HealthCareSheetController@storeHealthCareSheetExecution');
|
2021-12-07 08:29:00 +00:00
|
|
|
$router->get('health-care-sheets/{id}', 'HealthCareSheetController@getOneHealthCareSheets');
|
2021-12-21 13:50:05 +00:00
|
|
|
$router->put('health-care-sheets/{id}', 'HealthCareSheetController@updateHealthCareSheet');
|
2021-11-15 15:01:54 +00:00
|
|
|
|
2022-01-25 23:16:26 +00:00
|
|
|
$router->get('invoices', 'InvoiceController@getInvoices');
|
2022-03-28 23:49:57 +00:00
|
|
|
$router->put('invoices/{id}', 'InvoiceController@treatInvoice');
|
2022-01-24 08:04:44 +00:00
|
|
|
$router->get('generate-invoice', 'InvoiceController@generateInvoice');
|
2022-01-31 15:51:39 +00:00
|
|
|
|
2022-02-01 10:58:58 +00:00
|
|
|
$router->get('authorizations-care-requests', 'AuthorizationCareRequestController@getAll');
|
2022-01-31 15:51:39 +00:00
|
|
|
$router->post('authorizations-care-requests', 'AuthorizationCareRequestController@store');
|
2022-02-01 10:58:58 +00:00
|
|
|
$router->put('authorizations-care-requests', 'AuthorizationCareRequestController@treatRequest');
|
2022-04-06 09:50:29 +00:00
|
|
|
|
|
|
|
$router->get('exclusions/{network_id}', 'HelperController@getNetworkExclusions');
|
2022-04-14 14:21:57 +00:00
|
|
|
$router->post('password-validation', 'HelperController@passwordValidation');
|
2021-10-04 16:24:39 +00:00
|
|
|
});
|