This commit is contained in:
28
api/app/Models/Geral/Ciap.php
Normal file
28
api/app/Models/Geral/Ciap.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Ciap extends Model
|
||||
{
|
||||
protected $table = 'geral_ciap';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'codigo',
|
||||
'grupo_id',
|
||||
'sexo_id',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function codigosEsus()
|
||||
{
|
||||
return $this->hasMany(CiapCodigoEsus::class);
|
||||
}
|
||||
}
|
||||
21
api/app/Models/Geral/CiapCid.php
Normal file
21
api/app/Models/Geral/CiapCid.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class CiapCid extends Model
|
||||
{
|
||||
protected $table = 'geral_ciap_cid';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'codigo_ciap',
|
||||
'codigo_cid',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
25
api/app/Models/Geral/CiapCodigoEsus.php
Normal file
25
api/app/Models/Geral/CiapCodigoEsus.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class CiapCodigoEsus extends Model
|
||||
{
|
||||
protected $table = 'geral_ciap_codigo_esus';
|
||||
|
||||
protected $fillable = [
|
||||
'ciap_id',
|
||||
'codigo',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function ciap()
|
||||
{
|
||||
return $this->belongsTo(Ciap::class);
|
||||
}
|
||||
}
|
||||
20
api/app/Models/Geral/Configuracao.php
Normal file
20
api/app/Models/Geral/Configuracao.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Configuracao extends Model
|
||||
{
|
||||
protected $table = 'geral_configuracao';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'maximo_tentativa_login',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
20
api/app/Models/Geral/DiaSemana.php
Normal file
20
api/app/Models/Geral/DiaSemana.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class DiaSemana extends Model
|
||||
{
|
||||
protected $table = 'geral_dia_semana';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
20
api/app/Models/Geral/DocumentoTipo.php
Normal file
20
api/app/Models/Geral/DocumentoTipo.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class DocumentoTipo extends Model
|
||||
{
|
||||
protected $table = 'geral_documento_tipo';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
26
api/app/Models/Geral/FaixaEtaria.php
Normal file
26
api/app/Models/Geral/FaixaEtaria.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
use App\Models\ProntoAtendimento\Plantao\Plantao;
|
||||
|
||||
class FaixaEtaria extends Model
|
||||
{
|
||||
protected $table = 'geral_faixa_etaria';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function plantoes()
|
||||
{
|
||||
return $this->hasMany(Plantao::class);
|
||||
}
|
||||
}
|
||||
21
api/app/Models/Geral/GlasgowAberturaOcular.php
Normal file
21
api/app/Models/Geral/GlasgowAberturaOcular.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GlasgowAberturaOcular extends Model
|
||||
{
|
||||
protected $table = 'geral_glasgow_abertura_ocular';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'pontos',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
22
api/app/Models/Geral/GlasgowInterpretacaoResultado.php
Normal file
22
api/app/Models/Geral/GlasgowInterpretacaoResultado.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GlasgowInterpretacaoResultado extends Model
|
||||
{
|
||||
protected $table = 'geral_glasgow_interpretacao_resultado';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'min',
|
||||
'max',
|
||||
'descricao',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
21
api/app/Models/Geral/GlasgowReatividadePupilar.php
Normal file
21
api/app/Models/Geral/GlasgowReatividadePupilar.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GlasgowReatividadePupilar extends Model
|
||||
{
|
||||
protected $table = 'geral_glasgow_reatividade_pupilar';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'pontos',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
21
api/app/Models/Geral/GlasgowRespostaMotora.php
Normal file
21
api/app/Models/Geral/GlasgowRespostaMotora.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GlasgowRespostaMotora extends Model
|
||||
{
|
||||
protected $table = 'geral_glasgow_resposta_motora';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'pontos',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
21
api/app/Models/Geral/GlasgowRespostaVerbal.php
Normal file
21
api/app/Models/Geral/GlasgowRespostaVerbal.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GlasgowRespostaVerbal extends Model
|
||||
{
|
||||
protected $table = 'geral_glasgow_resposta_verbal';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'pontos',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
21
api/app/Models/Geral/GrupoCiap.php
Normal file
21
api/app/Models/Geral/GrupoCiap.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class GrupoCiap extends Model
|
||||
{
|
||||
protected $table = 'geral_ciap_grupo';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'descricao',
|
||||
'codigo',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
24
api/app/Models/Geral/InterpretacaoImc.php
Normal file
24
api/app/Models/Geral/InterpretacaoImc.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class InterpretacaoImc extends Model
|
||||
{
|
||||
protected $table = 'geral_interpretacao_imc';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'min',
|
||||
'max',
|
||||
'descricao',
|
||||
'classificacao',
|
||||
'grau_obesidade',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
42
api/app/Models/Geral/LmsParametro.php
Normal file
42
api/app/Models/Geral/LmsParametro.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Cadastro\SujeitoAtencao\Sexo;
|
||||
use App\Models\Model;
|
||||
|
||||
class LmsParametro extends Model
|
||||
{
|
||||
protected $table = 'geral_lms_parametro';
|
||||
|
||||
protected $fillable = [
|
||||
'tipo_id',
|
||||
'sexo_id',
|
||||
'mes',
|
||||
'l',
|
||||
'm',
|
||||
's',
|
||||
'sd_3_negativo',
|
||||
'sd_2_negativo',
|
||||
'sd_1_negativo',
|
||||
'sd_0',
|
||||
'sd_1',
|
||||
'sd_2',
|
||||
'sd_3',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function tipo()
|
||||
{
|
||||
return $this->belongsTo(LmsParametroTipo::class);
|
||||
}
|
||||
|
||||
public function sexo()
|
||||
{
|
||||
return $this->belongsTo(Sexo::class);
|
||||
}
|
||||
}
|
||||
25
api/app/Models/Geral/LmsParametroTipo.php
Normal file
25
api/app/Models/Geral/LmsParametroTipo.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class LmsParametroTipo extends Model
|
||||
{
|
||||
protected $table = 'geral_lms_parametro_tipo';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function lmsParametros()
|
||||
{
|
||||
return $this->hasMany(LmsParametro::class, 'tipo_id');
|
||||
}
|
||||
}
|
||||
20
api/app/Models/Geral/MedidaTempo.php
Normal file
20
api/app/Models/Geral/MedidaTempo.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class MedidaTempo extends Model
|
||||
{
|
||||
protected $table = 'geral_medida_tempo';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
20
api/app/Models/Geral/TipoMedidaAltura.php
Normal file
20
api/app/Models/Geral/TipoMedidaAltura.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class TipoMedidaAltura extends Model
|
||||
{
|
||||
protected $table = 'geral_tipo_medida_altura';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
20
api/app/Models/Geral/Turno.php
Normal file
20
api/app/Models/Geral/Turno.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Geral;
|
||||
|
||||
use App\Models\Model;
|
||||
|
||||
class Turno extends Model
|
||||
{
|
||||
protected $table = 'geral_turno';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'nome'
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user