45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\AtencaoBasica;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\AtencaoBasica\RelatorioCadastroConsistente\RelatorioCadastroConsistenteService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioCadastroConsistenteController extends Controller
|
|
{
|
|
protected $modulo = 'atencao-basica';
|
|
protected $funcionalidade = 'relatorio-cadastro-consistente';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
return response()->json([], Response::HTTP_OK);
|
|
}
|
|
|
|
public function getUnidades()
|
|
{
|
|
return response()->json(RelatorioCadastroConsistenteService::getUnidades(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getAreas()
|
|
{
|
|
return response()->json(RelatorioCadastroConsistenteService::getAreas(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getMicroAreas()
|
|
{
|
|
return response()->json(RelatorioCadastroConsistenteService::getMicroAreas(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(RelatorioCadastroConsistenteService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function getPacientes()
|
|
{
|
|
return response()->json(RelatorioCadastroConsistenteService::getPacientes(), Response::HTTP_OK);
|
|
}
|
|
}
|