init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View 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);
}
}