59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\ProntoAtendimento;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\ProntoAtendimento\RelatorioPrescricaoInternaService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioPrescricaoInternaController extends Controller
|
|
{
|
|
protected $modulo = 'pronto-atendimento';
|
|
protected $funcionalidade = 'relatorio-prescricao-interna';
|
|
|
|
public function index()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function autocompletePaciente()
|
|
{
|
|
return datatables()->of(RelatorioPrescricaoInternaService::autocompletePaciente())->toJson();
|
|
}
|
|
|
|
public function filtragemPorUnidade()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorUnidade(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function filtragemPorLocalAtendimento()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorLocalAtendimento(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function filtragemPorOcupacao()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorOcupacao(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function filtragemPorProfissional()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorProfissional(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function filtragemPorMedicamento()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorMedicamento(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function filtragemPorStatus()
|
|
{
|
|
return response()->json(RelatorioPrescricaoInternaService::filtragemPorStatus(), Response::HTTP_OK);
|
|
}
|
|
}
|