This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Cadastro\Estabelecimento\Unidade;
|
||||
use App\Models\Model;
|
||||
use App\Models\Parametrizacao\Exame\Exame;
|
||||
|
||||
class AtendimentoSoapSolicitacaoExameItem extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_atendimento_soap_solicitacao_exame_item';
|
||||
|
||||
protected $casts = [
|
||||
'descartado_exame_laboratorial' => 'boolean',
|
||||
'agendado_exame_laboratorial' => 'boolean',
|
||||
'data_agendada' => 'datetime:d/m/Y',
|
||||
'descartado_exame_imagem' => 'boolean',
|
||||
'agendado_exame_imagem' => 'boolean',
|
||||
'faz_parte_oci' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'solicitacao_exame_id',
|
||||
'exame_id',
|
||||
'descartado_exame_laboratorial',
|
||||
'agendado_exame_laboratorial',
|
||||
'status_id',
|
||||
'data_agendada',
|
||||
'unidade_executora_id',
|
||||
'ocupacao_executora_id',
|
||||
'usuario_executor_nome',
|
||||
'descartado_exame_imagem',
|
||||
'agendado_exame_imagem',
|
||||
'faz_parte_oci',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function solicitacaoExame()
|
||||
{
|
||||
return $this->belongsTo(AtendimentoSoapSolicitacaoExame::class);
|
||||
}
|
||||
|
||||
public function exame()
|
||||
{
|
||||
return $this->belongsTo(Exame::class);
|
||||
}
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(AtendimentoSoapSolicitacaoExameItemStatus::class);
|
||||
}
|
||||
|
||||
public function unidadeExecutora()
|
||||
{
|
||||
return $this->belongsTo(Unidade::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user