91 lines
1.9 KiB
PHP
91 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace App\Models\ExameImagem\Fechamento;
|
|
|
|
use App\Models\Cadastro\Estabelecimento\Unidade;
|
|
use App\Models\Cadastro\SujeitoAtencao\Lotacao;
|
|
use App\Models\Cadastro\SujeitoAtencao\Paciente;
|
|
use App\Models\ExameImagem\Agendamento\Agendamento;
|
|
use App\Models\ExameImagem\Agendamento\AgendamentoExame;
|
|
use App\Models\Model;
|
|
use App\Models\Parametrizacao\Exame\Exame;
|
|
use App\Models\Sigtap\Ocupacao;
|
|
|
|
class Faturamento extends Model
|
|
{
|
|
|
|
protected $table = 'exame_imagem_fechamento_faturamento';
|
|
|
|
protected $fillable = [
|
|
'agendamento_id',
|
|
'exame_id',
|
|
'paciente_id',
|
|
'grupo_id',
|
|
'unidade_id',
|
|
'agendamento_exame_id',
|
|
'bpa_procedimento_id',
|
|
'apac_procedimento_secundario_id',
|
|
'procedimento_id',
|
|
'lotacao_id',
|
|
'quantidade',
|
|
'ocupacao_id',
|
|
'usuario_id',
|
|
];
|
|
|
|
protected $casts = [
|
|
'data' => 'datetime:d/m/Y',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
'deleted_at',
|
|
'deleted_lotacao_id',
|
|
'deleted_centro_custo_id',
|
|
];
|
|
|
|
|
|
public function ocupacao()
|
|
{
|
|
return $this->belongsTo(Ocupacao::class);
|
|
}
|
|
|
|
public function lotacao()
|
|
{
|
|
return $this->belongsTo(Lotacao::class);
|
|
}
|
|
|
|
public function exame()
|
|
{
|
|
return $this->belongsTo(Exame::class);
|
|
}
|
|
|
|
public function agendamento()
|
|
{
|
|
return $this->belongsTo(Agendamento::class);
|
|
}
|
|
|
|
public function unidade()
|
|
{
|
|
return $this->belongsTo(Unidade::class);
|
|
}
|
|
|
|
public function agendamentoExame()
|
|
{
|
|
return $this->belongsTo(AgendamentoExame::class);
|
|
}
|
|
|
|
public function paciente()
|
|
{
|
|
return $this->belongsTo(Paciente::class);
|
|
}
|
|
|
|
public function procedimento()
|
|
{
|
|
return $this->belongsTo(SigtapProcedimento::class);
|
|
}
|
|
}
|