36 lines
913 B
PHP
36 lines
913 B
PHP
<?php
|
|
|
|
namespace App\Models\Ambulatorio;
|
|
|
|
use App\Models\Model;
|
|
use App\Models\Parametrizacao\ProcedimentoCirurgico;
|
|
|
|
class AtendimentoSoapSolicitacaoProcedimentoCirurgicoItem extends Model
|
|
{
|
|
protected $table = 'ambulatorio_atendimento_soap_solicitacao_proc_cirurgico_item';
|
|
|
|
protected $fillable = [
|
|
'solicitacao_proc_cirurgico_id',
|
|
'procedimento_cirurgico_id',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function solicitacaoProcedimentoCirurgico()
|
|
{
|
|
return $this->belongsTo(AtendimentoSoapSolicitacaoProcedimentoCirurgico::class, 'solicitacao_proc_cirurgico_id');
|
|
}
|
|
|
|
public function procedimentoCirurgico()
|
|
{
|
|
return $this->belongsTo(ProcedimentoCirurgico::class);
|
|
}
|
|
}
|