This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Apac\SolicitacaoAutorizacaoProcedimentoSecundario;
|
||||
use App\Models\Cadastro\Estabelecimento\Unidade;
|
||||
use App\Models\Model;
|
||||
use App\Models\Sigtap\Ocupacao;
|
||||
use App\Models\Sigtap\Procedimento;
|
||||
|
||||
class AcompanhamentoOciProcedimentoRealizado extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_acompanhamento_oci_procedimento_realizado';
|
||||
|
||||
protected $casts = [
|
||||
'data_executada' => 'datetime:d/m/Y',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'acompanhamento_oci_id',
|
||||
'soap_id',
|
||||
'procedimento_id',
|
||||
'data_executada',
|
||||
'unidade_executora_id',
|
||||
'ocupacao_executora_id',
|
||||
'usuario_executor_nome',
|
||||
'apac_procedimento_secundario_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function acompanhamentoOci()
|
||||
{
|
||||
return $this->belongsTo(AcompanhamentoOci::class);
|
||||
}
|
||||
|
||||
public function soap()
|
||||
{
|
||||
return $this->belongsTo(AtendimentoSoap::class);
|
||||
}
|
||||
|
||||
public function procedimento()
|
||||
{
|
||||
return $this->belongsTo(Procedimento::class);
|
||||
}
|
||||
|
||||
public function unidadeExecutora()
|
||||
{
|
||||
return $this->belongsTo(Unidade::class);
|
||||
}
|
||||
|
||||
public function ocupacaoExecutora()
|
||||
{
|
||||
return $this->belongsTo(Ocupacao::class);
|
||||
}
|
||||
|
||||
public function apacProcedimentoSecundario()
|
||||
{
|
||||
return $this->belongsTo(SolicitacaoAutorizacaoProcedimentoSecundario::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user