55 lines
1.1 KiB
PHP
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);
|
|
}
|
|
}
|