55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Models\ProntoAtendimento\PedidoExame;
|
|
|
|
use App\Models\Model;
|
|
use App\Models\ProntoAtendimento\Atendimento\Enfermagem\AtendimentoEnfermagem;
|
|
use App\Models\ProntoAtendimento\Atendimento\ExameImagem\AtendimentoExameImagem;
|
|
use App\Models\ProntoAtendimento\Atendimento\Observacao\PacienteObservacao;
|
|
|
|
class Laudo extends Model
|
|
{
|
|
protected $table = 'pronto_atendimento_pedido_exame_laudo';
|
|
|
|
protected $fillable = [
|
|
'pedido_exame_id',
|
|
'atendimento_enfermagem_id',
|
|
'exame_imagem_id',
|
|
'paciente_observacao_id',
|
|
'nome',
|
|
'hash'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
'deleted_at',
|
|
'deleted_lotacao_id',
|
|
'deleted_centro_custo_id',
|
|
];
|
|
|
|
public function pedidoExame()
|
|
{
|
|
return $this->belongsTo(PedidoExame::class);
|
|
}
|
|
|
|
public function atendimentoEnfermagem()
|
|
{
|
|
return $this->belongsTo(AtendimentoEnfermagem::class);
|
|
}
|
|
|
|
public function atendimentoExameImagem()
|
|
{
|
|
return $this->belongsTo(AtendimentoExameImagem::class, 'exame_imagem_id');
|
|
}
|
|
|
|
public function pacienteObservacao()
|
|
{
|
|
return $this->belongsTo(PacienteObservacao::class);
|
|
}
|
|
}
|