This commit is contained in:
54
api/app/Models/ProntoAtendimento/PedidoExame/Laudo.php
Normal file
54
api/app/Models/ProntoAtendimento/PedidoExame/Laudo.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user