44 lines
929 B
PHP
44 lines
929 B
PHP
<?php
|
|
|
|
namespace App\Models\AtencaoBasica\AtendimentoIndividual;
|
|
|
|
use App\Models\AtencaoBasica\AtendimentoIndividual\AtendimentoIndividual;
|
|
use App\Models\Model;
|
|
use App\Models\Parametrizacao\Exame\Exame;
|
|
|
|
class AtendimentoIndividualOutroExame extends Model
|
|
{
|
|
protected $table = 'atencao_basica_atendimento_individual_outro_exame';
|
|
|
|
protected $fillable = [
|
|
'exame_id',
|
|
'atendimento_individual_id',
|
|
];
|
|
|
|
protected $casts = [
|
|
'solicitado' => 'boolean',
|
|
'avaliado' => 'boolean',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function exame()
|
|
{
|
|
return $this->belongsTo(Exame::class);
|
|
}
|
|
|
|
public function atendimentoIndividual()
|
|
{
|
|
return $this->belongsTo(AtendimentoIndividual::class);
|
|
}
|
|
}
|
|
|
|
|
|
|