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,67 @@
<?php
namespace App\Models\Ambulatorio;
use App\Models\Model;
class AtendimentoAntropometria extends Model
{
protected $table = 'ambulatorio_atendimento_antropometria';
protected $casts = [
'medido_em' => 'datetime:d/m/Y',
];
protected $fillable = [
'atendimento_id',
'pre_atendimento_id',
'pos_consulta_id',
'soap_id',
'medido_em',
'peso',
'altura',
'perimetro_cefalico',
'circunferencia_abdominal',
'perimetro_panturrilha',
'comprimento_pe_direito',
'largura_pe_direito',
'circunferencia_pe_direito',
'comprimento_pe_esquerdo',
'largura_pe_esquerdo',
'circunferencia_pe_esquerdo',
];
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 preAtendimento()
{
return $this->belongsTo(AtendimentoPreAtendimento::class);
}
public function posConsulta()
{
return $this->belongsTo(AtendimentoPosConsulta::class);
}
public function soap()
{
return $this->belongsTo(AtendimentoSoap::class);
}
public function soapObjetivoAntropometria()
{
return $this->hasOne(AtendimentoSoapObjetivoAntropometria::class);
}
}