28 lines
733 B
PHP
28 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Impressao\ExameImagem;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Cadastro\SujeitoAtencao\UsuarioRegistroTipo;
|
|
use App\Services\ExameImagem\RelatorioLancamentoService;
|
|
use App\Utils\Exports\Pdf1;
|
|
|
|
|
|
class RelatorioLancamentoController extends Controller
|
|
{
|
|
private const TITLE = 'RESULTADO DO EXAME';
|
|
private const TEMPLATE = 'exame-imagem.lancamento';
|
|
|
|
public static function getTemplate($idPaciente)
|
|
{
|
|
return [
|
|
'lancamento' => RelatorioLancamentoService::getLancamento($idPaciente),
|
|
];
|
|
}
|
|
|
|
public function __invoke($idPaciente)
|
|
{
|
|
return Pdf1::generate(self::TITLE, self::TEMPLATE, self::getTemplate($idPaciente));
|
|
}
|
|
}
|