38 lines
964 B
PHP
38 lines
964 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Ambulatorio;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Ambulatorio\RelatorioQuantitativoCidService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioQuantitativoCidController extends Controller
|
|
{
|
|
protected $modulo = 'ambulatorio';
|
|
protected $funcionalidade = 'relatorio-quantitativo-cid';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioQuantitativoCidService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
return response()->json(RelatorioQuantitativoCidService::create(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioQuantitativoCidService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function autocomplete()
|
|
{
|
|
return datatables()->of(RelatorioQuantitativoCidService::autocomplete())->toJson();
|
|
}
|
|
}
|