This commit is contained in:
68
api/app/Models/ExameImagem/Agendamento/AgendamentoExame.php
Normal file
68
api/app/Models/ExameImagem/Agendamento/AgendamentoExame.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\ExameImagem\Agendamento;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
||||
use App\Models\Cadastro\SujeitoAtencao\Usuario;
|
||||
use App\Models\ExameImagem\Agendamento\Agendamento;
|
||||
use App\Models\ExameImagem\Fechamento\Faturamento;
|
||||
use App\Models\Parametrizacao\Exame\Exame;
|
||||
use App\Models\Model;
|
||||
|
||||
class AgendamentoExame extends Model
|
||||
{
|
||||
protected $table = 'exame_imagem_agendamento_exame';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'agendamento_id',
|
||||
'soap_solicitacao_exame_item_id',
|
||||
'exame_id',
|
||||
'paciente_id',
|
||||
'status_id',
|
||||
'status_troca',
|
||||
'resultado',
|
||||
'arquivo',
|
||||
'laudo_nome',
|
||||
'usuario_id',
|
||||
'acompanhamento_oci_id'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'laudo_data' => 'datetime:d/m/Y',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'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 agendamento()
|
||||
{
|
||||
return $this->belongsTo(Agendamento::class);
|
||||
}
|
||||
|
||||
public function faturamentos()
|
||||
{
|
||||
return $this->hasMany(Faturamento::class);
|
||||
}
|
||||
|
||||
public function paciente()
|
||||
{
|
||||
return $this->belongsTo(Paciente::class);
|
||||
}
|
||||
|
||||
public function usuario()
|
||||
{
|
||||
return $this->belongsTo(Usuario::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user