This commit is contained in:
71
api/app/Models/Ambulatorio/AtendimentoRaas.php
Normal file
71
api/app/Models/Ambulatorio/AtendimentoRaas.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Ambulatorio;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\Raas\CaraterAtendimento;
|
||||
use App\Models\Raas\DestinoPaciente;
|
||||
use App\Models\Raas\LocalRealizacaoExame;
|
||||
use App\Models\Raas\MotivoSaidaPermanencia;
|
||||
use App\Models\Raas\OrigemPaciente;
|
||||
use App\Models\Sigtap\Classificacao;
|
||||
|
||||
class AtendimentoRaas extends Model
|
||||
{
|
||||
protected $table = 'ambulatorio_atendimento_raas';
|
||||
|
||||
protected $fillable = [
|
||||
'atendimento_id',
|
||||
'origem_paciente_id',
|
||||
'destino_paciente_id',
|
||||
'motivo_saida_permanencia_id',
|
||||
'carater_atendimento_id',
|
||||
'numero_autorizacao',
|
||||
'classificacao_id',
|
||||
'local_realizacao_exame_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'created_lotacao_id',
|
||||
'created_centro_custo_id',
|
||||
'updated_at',
|
||||
'updated_lotacao_id',
|
||||
'updated_centro_custo_id',
|
||||
];
|
||||
|
||||
public function atendimento()
|
||||
{
|
||||
return $this->belongsTo(Atendimento::class);
|
||||
}
|
||||
|
||||
public function origemPaciente()
|
||||
{
|
||||
return $this->belongsTo(OrigemPaciente::class);
|
||||
}
|
||||
|
||||
public function destinoPaciente()
|
||||
{
|
||||
return $this->belongsTo(DestinoPaciente::class);
|
||||
}
|
||||
|
||||
public function motivoSaidaPermanencia()
|
||||
{
|
||||
return $this->belongsTo(MotivoSaidaPermanencia::class);
|
||||
}
|
||||
|
||||
public function caraterAtendimento()
|
||||
{
|
||||
return $this->belongsTo(CaraterAtendimento::class);
|
||||
}
|
||||
|
||||
public function classificacao()
|
||||
{
|
||||
return $this->belongsTo(Classificacao::class);
|
||||
}
|
||||
|
||||
public function localRealizacaoExame()
|
||||
{
|
||||
return $this->belongsTo(LocalRealizacaoExame::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user