38 lines
840 B
PHP
38 lines
840 B
PHP
<?php
|
|
|
|
namespace App\Models\ExameLaboratorial\AgendamentoExame;
|
|
|
|
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
|
use App\Models\ExameLaboratorial\AgendamentoExame\Agendamento;
|
|
use App\Models\Model;
|
|
|
|
class AgendamentoHistoricoMedicamento extends Model
|
|
{
|
|
protected $table = 'exame_laboratorial_agendamento_historico_medicamento';
|
|
|
|
protected $fillable = [
|
|
'agendamento_id',
|
|
'data',
|
|
'uso_medicamento',
|
|
'paciente_id',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function usuario()
|
|
{
|
|
return $this->belongsTo(Usuario::class);
|
|
}
|
|
|
|
public function agendamento()
|
|
{
|
|
return $this->belongsTo(Agendamento::class);
|
|
}
|
|
}
|