This commit is contained in:
54
api/app/Models/Ambulatorio/AtendimentoGlicemiaCapilar.php
Normal file
54
api/app/Models/Ambulatorio/AtendimentoGlicemiaCapilar.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user