63 lines
1.4 KiB
PHP
63 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Models\ExameImagem\Agendamento;
|
|
|
|
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
|
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
|
use App\Models\ExameImagem\Agendamento\Agendamento;
|
|
use App\Models\ExameImagem\Agendamento\AgendamentoExame;
|
|
use App\Models\ExameImagem\Fechamento\Faturamento;
|
|
use App\Models\Parametrizacao\Exame\Exame;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AgendamentoHistorico extends Model
|
|
{
|
|
protected $table = 'exame_imagem_historico_alteracao';
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'agendamento_id',
|
|
'paciente_id',
|
|
'agendamento_exame_id',
|
|
'resultado',
|
|
'arquivo',
|
|
'laudo_nome',
|
|
'usuario_id',
|
|
];
|
|
|
|
protected $casts = [
|
|
'data' => 'datetime:d/m/Y',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
|
|
public function agendamento()
|
|
{
|
|
return $this->belongsTo(Agendamento::class);
|
|
}
|
|
|
|
public function paciente()
|
|
{
|
|
return $this->belongsTo(Paciente::class);
|
|
}
|
|
|
|
public function agendamentoExame()
|
|
{
|
|
return $this->belongsTo(AgendamentoExame::class);
|
|
}
|
|
|
|
public function usuario()
|
|
{
|
|
return $this->belongsTo(Usuario::class);
|
|
}
|
|
|
|
}
|