This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\ExameLaboratorial;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\ExameLaboratorial\AgendamentoExameRetroativoService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class AgendamentoExameRetroativoController extends Controller
|
||||
{
|
||||
|
||||
protected $modulo = 'exame-laboratorial';
|
||||
protected $funcionalidade = 'agendamento-exame-retroativo';
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendamentoExameRetroativoService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getAgendamento($id)
|
||||
{
|
||||
return response()->json(AgendamentoExameRetroativoService::getAgendamento($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getDetalhamento($id)
|
||||
{
|
||||
return response()->json(AgendamentoExameRetroativoService::getDetalhamento($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function printEtiqueta($id)
|
||||
{
|
||||
return response()->json(AgendamentoExameRetroativoService::printEtiqueta($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function printProtocolo($id)
|
||||
{
|
||||
return response()->json(AgendamentoExameRetroativoService::printProtocolo($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getHistoricoMedicamento($id)
|
||||
{
|
||||
return response()->json(AgendamentoExameRetroativoService::getHistoricoMedicamento($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendamentoExameRetroativoService::store($request), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function getJornadas(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendamentoExameRetroativoService::getJornadas($request), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getSupervisor(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendamentoExameRetroativoService::getSupervisor($request), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getCotas(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(AgendamentoExameRetroativoService::getCotas($request), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user