This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\ProntoAtendimento\Atendimento\Enfermagem;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class PedidoExameCannotChangeStatusException extends Exception
|
||||
{
|
||||
public function render($request)
|
||||
{
|
||||
return response()->json([
|
||||
'error' => 'Um ou mais pedidos de exames não permitem alterar o status de seus exames!'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\ProntoAtendimento\Atendimento\Enfermagem;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class PedidoExameItemCannotChangeStatusException extends Exception
|
||||
{
|
||||
public function render($request)
|
||||
{
|
||||
return response()->json([
|
||||
'error' => 'Um ou mais itens do pedido de exames não permitem alterar!'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\ProntoAtendimento\Atendimento\Enfermagem;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class PrescricaoInternaAplicacaoCannotChangeStatusException extends Exception
|
||||
{
|
||||
public function render($request)
|
||||
{
|
||||
return response()->json([
|
||||
'error' => 'Uma ou mais aplicações da prescrição interna não permitem alterar o status!'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\ProntoAtendimento\Atendimento\Enfermagem;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ServicoEnfermagemCannotChangeStatusException extends Exception
|
||||
{
|
||||
public function render($request)
|
||||
{
|
||||
return response()->json([
|
||||
'error' => 'Um ou mais serviços de enfermagem não permitem alterar o status!'
|
||||
], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user