57 lines
1.1 KiB
PHP
57 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Ambulatorio;
|
|
|
|
use App\Models\Geral\Ciap;
|
|
use App\Models\Model;
|
|
use App\Models\Sigtap\Cid;
|
|
|
|
class AtendimentoSoapAntecedenteProblemaCondicao extends Model
|
|
{
|
|
protected $table = 'ambulatorio_atendimento_soap_antecedente_problema_condicao';
|
|
|
|
protected $casts = [
|
|
'inicio' => 'datetime:d/m/Y',
|
|
'fim' => 'datetime:d/m/Y',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'antecedente_id',
|
|
'ciap_id',
|
|
'cid_id',
|
|
'situacao_id',
|
|
'inicio',
|
|
'fim',
|
|
'observacao',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'created_lotacao_id',
|
|
'created_centro_custo_id',
|
|
'updated_at',
|
|
'updated_lotacao_id',
|
|
'updated_centro_custo_id',
|
|
];
|
|
|
|
public function antecedente()
|
|
{
|
|
return $this->belongsTo(AtendimentoSoapAntecedente::class);
|
|
}
|
|
|
|
public function ciap()
|
|
{
|
|
return $this->belongsTo(Ciap::class);
|
|
}
|
|
|
|
public function cid()
|
|
{
|
|
return $this->belongsTo(Cid::class);
|
|
}
|
|
|
|
public function situacao()
|
|
{
|
|
return $this->belongsTo(ProblemaCondicaoSituacao::class);
|
|
}
|
|
}
|