Files
rkm-conectasus-ci-sandbox/api/app/Models/Ambulatorio/AtendimentoGlicemiaCapilar.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

55 lines
1.1 KiB
PHP

<?php
namespace App\Models\Ambulatorio;
use App\Models\Model;
class AtendimentoGlicemiaCapilar extends Model
{
protected $table = 'ambulatorio_atendimento_glicemia_capilar';
protected $fillable = [
'atendimento_id',
'pre_atendimento_id',
'pos_consulta_id',
'soap_id',
'valor',
'momento_coleta_id',
];
protected $hidden = [
'created_at',
'updated_at',
];
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 momentoColeta()
{
return $this->belongsTo(GlicemiaCapilarMomentoColeta::class);
}
public function soap()
{
return $this->belongsTo(AtendimentoSoap::class);
}
public function soapObjetivoGlicemiaCapilar()
{
return $this->hasOne(AtendimentoSoapObjetivoGlicemiaCapilar::class);
}
}