This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Integracao\Erpsaude;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Integracao\Erpsaude\RelatorioAtendimentoService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class RelatorioAtendimentoController extends Controller
|
||||
{
|
||||
protected $modulo = 'integracao';
|
||||
protected $funcionalidade = 'erpsaude-relatorio-atendimento';
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(RelatorioAtendimentoService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(RelatorioAtendimentoService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function autocompletePaciente()
|
||||
{
|
||||
return datatables()->of(RelatorioAtendimentoService::autocompletePaciente())->toJson();
|
||||
}
|
||||
|
||||
public function filtragemPorDiaSemana()
|
||||
{
|
||||
return response()->json(RelatorioAtendimentoService::filtragemPorDiaSemana(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
public function filtragemPorTipoAlta()
|
||||
{
|
||||
return response()->json(RelatorioAtendimentoService::filtragemPorTipoAlta(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function filtragemPorProfissional()
|
||||
{
|
||||
return response()->json(RelatorioAtendimentoService::filtragemPorProfissional(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function filtragemPorCid()
|
||||
{
|
||||
return response()->json(RelatorioAtendimentoService::filtragemPorCid(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user