Files
rkm-conectasus-ci-sandbox/api/app/Models/ExameImagem/Agendamento/AgendamentoExame.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

69 lines
1.5 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\Fechamento\Faturamento;
use App\Models\Parametrizacao\Exame\Exame;
use App\Models\Model;
class AgendamentoExame extends Model
{
protected $table = 'exame_imagem_agendamento_exame';
protected $fillable = [
'id',
'agendamento_id',
'soap_solicitacao_exame_item_id',
'exame_id',
'paciente_id',
'status_id',
'status_troca',
'resultado',
'arquivo',
'laudo_nome',
'usuario_id',
'acompanhamento_oci_id'
];
protected $casts = [
'laudo_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 exame()
{
return $this->belongsTo(Exame::class);
}
public function agendamento()
{
return $this->belongsTo(Agendamento::class);
}
public function faturamentos()
{
return $this->hasMany(Faturamento::class);
}
public function paciente()
{
return $this->belongsTo(Paciente::class);
}
public function usuario()
{
return $this->belongsTo(Usuario::class);
}
}