42 lines
880 B
PHP
42 lines
880 B
PHP
<?php
|
|
|
|
namespace App\Models\Ambulatorio;
|
|
|
|
use App\Models\Almoxarifado\SaidaItem;
|
|
use App\Models\Model;
|
|
|
|
class AtendimentoMedicamento extends Model
|
|
{
|
|
protected $table = 'ambulatorio_atendimento_medicamento';
|
|
|
|
protected $fillable = [
|
|
'atendimento_id',
|
|
'pre_atendimento_id',
|
|
'saida_item_id',
|
|
];
|
|
|
|
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 almoxarifadoSaidaItem()
|
|
{
|
|
return $this->belongsTo(SaidaItem::class, 'saida_item_id');
|
|
}
|
|
}
|