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