This commit is contained in:
67
api/app/Models/Ambulatorio/AtendimentoAntropometria.php
Normal file
67
api/app/Models/Ambulatorio/AtendimentoAntropometria.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user