init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Medico\AtendimentoMedicoTipo as Model;
use Illuminate\Database\Seeder;
class AtendimentoMedicoTipo_20240506081318 extends Seeder
{
public function run()
{
$tipos = [
['id' => 1, 'nome' => 'ATENDIMENTO MÉDICO SIMPLES'],
['id' => 2, 'nome' => 'ATENDIMENTO MÉDICO ESTRUTURADO'],
];
SeederUtil::saveList(Model::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,17 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Medico\DeclaracaoComparecimentoTipo as Model;
use Illuminate\Database\Seeder;
class DeclaracaoComparecimentoTipo_20240506081506 extends Seeder
{
public function run()
{
$tipos = [
['id' => 1, 'nome' => 'PACIENTE'],
['id' => 2, 'nome' => 'ACOMPANHANTE'],
];
SeederUtil::saveList(Model::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,38 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\EncaminhamentoEspecialidade as Model;
use App\Models\Sigtap\Ocupacao;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class AtendimentoEncaminhamentoEspecialidade_20240506081625 extends Seeder
{
public function run()
{
$ocupacaoCodigos = [
'221205', '2231A1', '2231F8', '2231F9', '2231G1', '223119', '223150', '223305',
'225103', '225105', '225106', '225109', '225110', '225112', '225115', '225118',
'225120', '225121', '225122', '225124', '225125', '225127', '225130', '225133',
'225135', '225136', '225139', '225140', '225142', '225145', '225148', '225150',
'225151', '225154', '225155', '225160', '225165', '225170', '225175', '225180',
'225185', '225195', '225203', '225210', '225215', '225220', '225225', '225230',
'225235', '225240', '225250', '225255', '225260', '225265', '225270', '225275',
'225280', '225285', '225290', '225295', '225305', '225310', '225315', '225320',
'225325', '225330', '225335', '225340', '225345', '225350', '225355'
];
DB::transaction(function () use ($ocupacaoCodigos) {
$ids = Ocupacao::whereIn('codigo', $ocupacaoCodigos)->get()->pluck('id');
Model::truncate();
foreach ($ids as $id) {
$ocupacoesId[] = ['ocupacao_id' => $id];
}
SeederUtil::saveList(Model::class, $ocupacoesId);
});
}
}

View File

@@ -0,0 +1,21 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\OrigemEntrada as Model;
use Illuminate\Database\Seeder;
class OrigemEntrada_20240506081749 extends Seeder
{
public function run()
{
$origens = [
['id' => 1, 'nome' => 'ESPONTÂNEA'],
['id' => 2, 'nome' => 'SAMU'],
['id' => 3, 'nome' => 'AMBULÂNCIA'],
['id' => 4, 'nome' => 'RENOVIAS'],
['id' => 5, 'nome' => 'INTERVIAS'],
['id' => 6, 'nome' => 'BOMBEIROS'],
];
SeederUtil::saveList(Model::class, $origens, 'id');
}
}

View File

@@ -0,0 +1,23 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Desfecho as Model;
use Illuminate\Database\Seeder;
class FaaDesfecho_20240506081839 extends Seeder
{
public function run()
{
$desfechos = [
['id' => 1, 'nome' => 'Alta médica'],
['id' => 2, 'nome' => 'Evasão'],
['id' => 3, 'nome' => 'Encaminhamento hospitalar'],
['id' => 4, 'nome' => 'Aguardando vaga hospitalar'],
['id' => 5, 'nome' => 'Óbito'],
['id' => 6, 'nome' => 'Paciente atendido'],
['id' => 7, 'nome' => 'FAA Extraviada'],
['id' => 8, 'nome' => 'FAA Cancelada'],
];
SeederUtil::saveList(Model::class, $desfechos, 'id');
}
}

View File

@@ -0,0 +1,29 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\PacienteTraumaStatus as Model;
use Illuminate\Database\Seeder;
class PacienteTraumaStatus_20240506082008 extends Seeder
{
public function run()
{
$traumaStatus = [
['id' => 1, 'nome' => 'Alterações'],
['id' => 2, 'nome' => 'Anisocoria'],
['id' => 3, 'nome' => 'Assimétrica'],
['id' => 4, 'nome' => 'Ausente'],
['id' => 5, 'nome' => 'Com lesões'],
['id' => 6, 'nome' => 'Isocóricas'],
['id' => 7, 'nome' => 'Lentificada'],
['id' => 8, 'nome' => 'Midríase'],
['id' => 9, 'nome' => 'Normal'],
['id' => 10, 'nome' => 'Obstrução'],
['id' => 11, 'nome' => 'Presente'],
['id' => 12, 'nome' => 'Pérveas'],
['id' => 13, 'nome' => 'Sem lesões'],
['id' => 14, 'nome' => 'Simétrica'],
];
SeederUtil::saveList(Model::class, $traumaStatus,'id');
}
}

View File

@@ -0,0 +1,41 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Triagem\OrigemDorToracica as Model;
use Illuminate\Database\Seeder;
class StatusFormularioDorToracica_20240506082121 extends Seeder
{
public function run()
{
$tipos = [
['id' => 1, 'nome' => 'Constrição'],
['id' => 2, 'nome' => 'Queimação'],
['id' => 3, 'nome' => 'Compressão'],
['id' => 4, 'nome' => 'Peso'],
['id' => 5, 'nome' => 'Dor surda'],
['id' => 6, 'nome' => 'Retroesternal'],
['id' => 7, 'nome' => 'MSE'],
['id' => 8, 'nome' => 'Face'],
['id' => 9, 'nome' => 'Pescoço'],
['id' => 10, 'nome' => 'Dentes'],
['id' => 11, 'nome' => 'Inter escapular'],
['id' => 12, 'nome' => 'Epigástrica'],
['id' => 13, 'nome' => 'Exercício'],
['id' => 14, 'nome' => 'Excitação'],
['id' => 15, 'nome' => 'Estresse'],
['id' => 16, 'nome' => 'Frio'],
['id' => 17, 'nome' => 'Refeições copiosas'],
['id' => 18, 'nome' => 'Duração da dor'],
['id' => 19, 'nome' => 'HAS'],
['id' => 20, 'nome' => 'DM'],
['id' => 21, 'nome' => 'Dislipidemia'],
['id' => 22, 'nome' => 'História familiar'],
['id' => 23, 'nome' => 'Idade maior de sessenta'],
['id' => 24, 'nome' => 'Obesidade'],
['id' => 25, 'nome' => 'Tabagismo'],
['id' => 26, 'nome' => 'Revascularizado prévio'],
];
SeederUtil::saveList(Model::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,20 @@
<?php
use App\Models\ProntoAtendimento\ClassificacaoRisco\Tipo as Model;
use Illuminate\Database\Seeder;
class ClassificacaoRiscoTipo_20240506082254 extends Seeder
{
public function run()
{
$tipos = [
['id' => 1, 'nome' => 'Não urgente', 'cor' => '#0000FF', 'cor_nome' => 'Azul', 'ordem' => 1],
['id' => 2, 'nome' => 'Pouco urgente','cor' => '#008000','cor_nome' => 'Verde', 'ordem' => 2],
['id' => 3, 'nome' => 'Urgente', 'cor' => '#FFFF00', 'cor_nome' => 'Amarelo', 'ordem' => 3],
['id' => 4, 'nome' => 'Muito urgente', 'cor' => '#FF7F00', 'cor_nome' => 'Laranja', 'ordem' => 4],
['id' => 5, 'nome' => 'Emergência', 'cor' => '#FF0000', 'cor_nome' => 'Vermelho', 'ordem' => 5]
];
SeederUtil::saveList(Model::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,20 @@
<?php
use App\Models\ProntoAtendimento\ClassificacaoRisco\ClassificacaoRisco as Model;
use Illuminate\Database\Seeder;
class ClassificacaoRisco_20240506082413 extends Seeder
{
public function run()
{
$classificacoesRisco = [
['id' => 1, 'tipo_id' => 1, 'nome' => 'Não urgente'],
['id' => 2, 'tipo_id' => 2, 'nome' => 'Pouco urgente'],
['id' => 3, 'tipo_id' => 3, 'nome' => 'Urgente'],
['id' => 4, 'tipo_id' => 4, 'nome' => 'Muito urgente'],
['id' => 5, 'tipo_id' => 5, 'nome' => 'Emergência']
];
SeederUtil::saveList(Model::class, $classificacoesRisco, 'id');
}
}

View File

@@ -0,0 +1,18 @@
<?php
use App\Models\ProntoAtendimento\Plantao\EscalaTipo as Model;
use Illuminate\Database\Seeder;
class EscalaTipo_20240506083125 extends Seeder
{
public function run()
{
$tipos = [
['id' => 1, 'descricao' => 'FIXA'],
['id' => 2, 'descricao' => 'DINÂMICA'],
['id' => 3, 'descricao' => 'ÚNICA']
];
SeederUtil::saveList(Model::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,35 @@
<?php
use App\Models\ProntoAtendimento\Plantao\Status as Model;
use Illuminate\Database\Seeder;
class PlantaoStatus_20240506083229 extends Seeder
{
public function run()
{
$status = [
[
'id' => 1,
'nome' => 'CADASTRADO',
'cor' => 'none',
],
[
'id' => 2,
'nome' => 'CONFIRMADO',
'cor' => 'success',
],
[
'id' => 3,
'nome' => 'COM ATENDIMENTO',
'cor' => 'primary',
],
[
'id' => 4,
'nome' => 'PLANTONISTA AUSENTE',
'cor' => 'warning',
],
];
SeederUtil::saveList(Model::class, $status, 'id');
}
}

View File

@@ -0,0 +1,19 @@
<?php
use App\Models\ProntoAtendimento\Raat\Agente as Model;
use Illuminate\Database\Seeder;
class RaatAgente_20240506083443 extends Seeder
{
public function run()
{
$agentes = [
['id' => 1, 'nome' => 'QUÍMICO'],
['id' => 2, 'nome' => 'FÍSICO'],
['id' => 3, 'nome' => 'BIOLÓGICO'],
['id' => 4, 'nome' => 'ERGONÔMICO'],
];
SeederUtil::saveList(Model::class, $agentes, 'id');
}
}

View File

@@ -0,0 +1,28 @@
<?php
use App\Models\ProntoAtendimento\Raat\CausaAcidente as Model;
use Illuminate\Database\Seeder;
class RaatCausaAcidente_20240506083539 extends Seeder
{
public function run()
{
$causas = [
['id' => 1, 'nome' => 'ACIDENTE AUTOMOBILISTICO'],
['id' => 2, 'nome' => 'ACIDENTE BICICLETA'],
['id' => 3, 'nome' => 'ACIDENTE MOTO'],
['id' => 4, 'nome' => 'ANIMAIS E INSETO'],
['id' => 5, 'nome' => 'CORPO ESTRANHO'],
['id' => 6, 'nome' => 'CORRENTE ELETRICA'],
['id' => 7, 'nome' => 'ESFORÇO FISICO/REPETITIVO'],
['id' => 8, 'nome' => 'MAQUINAS/EQUIPAMENTOS'],
['id' => 9, 'nome' => 'PRODUTO QUIMICO'],
['id' => 10, 'nome' => 'QUEDA DE ALTURA'],
['id' => 11, 'nome' => 'QUEDA DA PRORIA ALTURA'],
['id' => 12, 'nome' => 'SUBSTANCIA QUENTE/FRIA'],
['id' => 13, 'nome' => 'OUTROS'],
];
SeederUtil::saveList(Model::class, $causas, 'id');
}
}

View File

@@ -0,0 +1,19 @@
<?php
use App\Models\ProntoAtendimento\Raat\ClassificacaoInicial as Model;
use Illuminate\Database\Seeder;
class RaatClassificacaoInicial_20240506083656 extends Seeder
{
public function run()
{
$classificacoes = [
['id' => 1, 'nome' => 'LEVE'],
['id' => 2, 'nome' => 'MODERADO'],
['id' => 3, 'nome' => 'GRAVE'],
['id' => 4, 'nome' => 'FATAL'],
];
SeederUtil::saveList(Model::class, $classificacoes, 'id');
}
}

View File

@@ -0,0 +1,32 @@
<?php
use App\Models\ProntoAtendimento\Raat\Diagnostico as Model;
use Illuminate\Database\Seeder;
class RaatDiagnostico_20240506083739 extends Seeder
{
public function run()
{
$diagnosticos = [
['id' => 1, 'nome' => 'AMPUTAÇÃO'],
['id' => 2, 'nome' => 'CONCUSSÃO'],
['id' => 3, 'nome' => 'CONTUSÃO'],
['id' => 4, 'nome' => 'ENTORSE'],
['id' => 5, 'nome' => 'ESCORIAÇÕES'],
['id' => 6, 'nome' => 'ESMAGAMENTO'],
['id' => 7, 'nome' => 'FERIMENTO CORTE CONTUSO (FCC)'],
['id' => 8, 'nome' => 'FRATURA'],
['id' => 9, 'nome' => 'INTOX/ENVENENAMENTO'],
['id' => 10, 'nome' => 'LUXAÇÃO'],
['id' => 11, 'nome' => 'PERFURAÇÃO'],
['id' => 12, 'nome' => 'POLITRAUMATISMO'],
['id' => 13, 'nome' => 'QUEIMADURA/QUIMICA'],
['id' => 14, 'nome' => 'SURDEZ'],
['id' => 15, 'nome' => 'TCE'],
['id' => 16, 'nome' => 'TRAUMA'],
['id' => 17, 'nome' => 'OUTROS'],
];
SeederUtil::saveList(Model::class, $diagnosticos, 'id');
}
}

View File

@@ -0,0 +1,43 @@
<?php
use App\Models\ProntoAtendimento\Raat\ParteCorpoAtingida as Model;
use Illuminate\Database\Seeder;
class RaatParteCorpoAtingida_20240506083834 extends Seeder
{
public function run()
{
$partesCorpoAtingida = [
['id' => 1, 'nome' => 'ABDÔMEN'],
['id' => 2, 'nome' => 'ANTEBRAÇO'],
['id' => 3, 'nome' => 'BOCA'],
['id' => 4, 'nome' => 'CABEÇA'],
['id' => 5, 'nome' => 'COLUNA'],
['id' => 6, 'nome' => 'COSTAS'],
['id' => 7, 'nome' => 'COTOVELO'],
['id' => 8, 'nome' => 'COXA'],
['id' => 9, 'nome' => 'DEDOS DA MÃO'],
['id' => 10, 'nome' => 'DEDO DO PÉ'],
['id' => 11, 'nome' => 'FACE'],
['id' => 12, 'nome' => 'JOELHO'],
['id' => 13, 'nome' => 'MÃO'],
['id' => 14, 'nome' => 'NARIZ'],
['id' => 15, 'nome' => 'OLHO'],
['id' => 16, 'nome' => 'OMBRO'],
['id' => 17, 'nome' => 'ORELHA'],
['id' => 18, 'nome' => 'PERNA'],
['id' => 19, 'nome' => 'PESCOÇO'],
['id' => 20, 'nome' => 'PUNHO'],
['id' => 21, 'nome' => 'PÉ'],
['id' => 22, 'nome' => 'QUADRIL'],
['id' => 23, 'nome' => 'QUEIXO'],
['id' => 24, 'nome' => 'SUPERCÍLIOS'],
['id' => 25, 'nome' => 'TESTA'],
['id' => 26, 'nome' => 'TÓRAX'],
['id' => 27, 'nome' => 'TORNOZELO'],
['id' => 28, 'nome' => 'OUTROS'],
];
SeederUtil::saveList(Model::class, $partesCorpoAtingida, 'id');
}
}

View File

@@ -0,0 +1,19 @@
<?php
use App\Models\ProntoAtendimento\Raat\RegimeTrabalho as Model;
use Illuminate\Database\Seeder;
class RaatRegimeTrabalho_20240506083944 extends Seeder
{
public function run()
{
$regimesTrabalho = [
['id' => 1, 'nome' => 'COM REGIME'],
['id' => 2, 'nome' => 'AUTÔMONO'],
['id' => 3, 'nome' => 'FUNCIONÁRIO PÚBLICO'],
['id' => 4, 'nome' => 'OUTRO']
];
SeederUtil::saveList(Model::class, $regimesTrabalho, 'id');
}
}

View File

@@ -0,0 +1,18 @@
<?php
use App\Models\ProntoAtendimento\Raat\TipoAcidente as Model;
use Illuminate\Database\Seeder;
class RaatTipoAcidente_20240506084104 extends Seeder
{
public function run()
{
$tiposAcidente = [
['id' => 1, 'nome' => 'TÍPICO'],
['id' => 2, 'nome' => 'TRAJETO'],
['id' => 3, 'nome' => 'DOENÇA OCUPAÇÃO']
];
SeederUtil::saveList(Model::class, $tiposAcidente, 'id');
}
}

View File

@@ -0,0 +1,21 @@
<?php
use App\Models\ProntoAtendimento\Aih\CaraterInternacao as Model;
use Illuminate\Database\Seeder;
class AihCaraterInternacao_20240506084640 extends Seeder
{
public function run()
{
$caraters = [
['id' => 1, 'nome' => 'ACIDENTE NO LOCAL DE TRABALHO OU A SERVIÇO DA EMPRESA'],
['id' => 2, 'nome' => 'ACIDENTE NO TRAJETO PARA O TRABALHO'],
['id' => 3, 'nome' => 'ELETIVO'],
['id' => 4, 'nome' => 'OUTROS TIPO DE ACIDENTE DE TRANSITO'],
['id' => 5, 'nome' => 'OUTROS TIPOS DE LESÕES E ENVENENAMENTOS POR AGENTES QUÍMICOS OU FISICOS'],
['id' => 6, 'nome' => 'URGÊNCIA'],
];
SeederUtil::saveList(Model::class, $caraters, 'id');
}
}

View File

@@ -0,0 +1,18 @@
<?php
use App\Models\ProntoAtendimento\Aih\CausaExterna as Model;
use Illuminate\Database\Seeder;
class AihCausaExterna_20240506084807 extends Seeder
{
public function run()
{
$causas = [
['id' => 1, 'nome' => 'ACIDENTE DE TRÂNSITO'],
['id' => 2, 'nome' => 'ACIDENTE DE TRABALHO TÍPICO'],
['id' => 3, 'nome' => 'ACIDENTE DE TRABALHO TRAJETO'],
];
SeederUtil::saveList(Model::class, $causas, 'id');
}
}

View File

@@ -0,0 +1,29 @@
<?php
use App\Models\ProntoAtendimento\Aih\Clinica as Model;
use Illuminate\Database\Seeder;
class AihClinica_20240506084921 extends Seeder
{
public function run()
{
$clinicas = [
['id' => 1, 'nome' => 'CIRURGIA'],
['id' => 2, 'nome' => 'CLÍNICA MÉDICA'],
['id' => 3, 'nome' => 'CRÔNICOS'],
['id' => 4, 'nome' => 'HOSPITAL DIA - AIDS'],
['id' => 5, 'nome' => 'HOSPITAL DIA - CIRÚRGICOS'],
['id' => 6, 'nome' => 'HOSPITAL DIA - FIBROSE CÍSTICA'],
['id' => 7, 'nome' => 'HOSPITAL DIA - GERIATRIA'],
['id' => 8, 'nome' => 'HOSPITAL DIA - INTERCORRÊNCIA PÓS-TRANSP'],
['id' => 9, 'nome' => 'HOSPITAL DIA - SAÚDE MENTAL'],
['id' => 10, 'nome' => 'OBSTETRÍCIA'],
['id' => 11, 'nome' => 'PEDIATRIA'],
['id' => 12, 'nome' => 'PNEUMOLOGIA SANITÁRIA'],
['id' => 13, 'nome' => 'PSIQUIATRIA'],
['id' => 14, 'nome' => 'REABILITAÇÃO'],
];
SeederUtil::saveList(Model::class, $clinicas, 'id');
}
}

View File

@@ -0,0 +1,21 @@
<?php
use App\Models\ProntoAtendimento\Aih\VinculoPrevidencia as Model;
use Illuminate\Database\Seeder;
class AihVinculoPrevidencia_20240506085009 extends Seeder
{
public function run()
{
$vinculos = [
['id' => 1, 'nome' => 'EMPREGADO'],
['id' => 2, 'nome' => 'EMPREGADOR'],
['id' => 3, 'nome' => 'AUTÔNOMO'],
['id' => 4, 'nome' => 'DESEMPREGADO'],
['id' => 5, 'nome' => 'APOSENTADO'],
['id' => 6, 'nome' => 'NÃO SEGURADO'],
];
SeederUtil::saveList(Model::class, $vinculos, 'id');
}
}

View File

@@ -0,0 +1,40 @@
<?php
use App\Models\ProntoAtendimento\PrescricaoInternaLocalAplicacao as Model;
use Illuminate\Database\Seeder;
class PrescricaoInternaLocalAplicacao_20240506085054 extends Seeder
{
public function run()
{
$locais = [
['id' => 1, 'descricao' => 'MEMBRO SUPERIOR DIREITO'],
['id' => 2, 'descricao' => 'MEMBRO SUPERIOR ESQUERDO'],
['id' => 3, 'descricao' => 'MEMBRO INFERIOR DIREITO'],
['id' => 4, 'descricao' => 'MEMBRO INFERIOR ESQUERDO'],
['id' => 5, 'descricao' => 'GLÚTEO DIREITO'],
['id' => 6, 'descricao' => 'GLÚTEO ESQUERDO'],
['id' => 7, 'descricao' => 'VASTO LATERAL COXA DIREITA'],
['id' => 8, 'descricao' => 'VASTO LATERAL COXA ESQUERDA'],
['id' => 9, 'descricao' => 'DELTOIDE DIREITO'],
['id' => 10, 'descricao' => 'DELTOIDE ESQUERDO'],
['id' => 11, 'descricao' => 'VENTRO GLUTEO DIREITO'],
['id' => 12, 'descricao' => 'VENTRO GLUTEO ESQUERDO'],
['id' => 13, 'descricao' => 'JUGULAR DIREITA'],
['id' => 14, 'descricao' => 'JUGULAR ESQUERDA'],
['id' => 15, 'descricao' => 'ABDOMEN'],
['id' => 16, 'descricao' => 'INTERESCAPULAR'],
['id' => 17, 'descricao' => 'NASAL'],
['id' => 18, 'descricao' => 'OLHO DIREITO'],
['id' => 19, 'descricao' => 'OLHO ESQUERDO'],
['id' => 20, 'descricao' => 'ORAL'],
['id' => 21, 'descricao' => 'OUVIDO DIREITO'],
['id' => 22, 'descricao' => 'OUVIDO ESQUERDO'],
['id' => 23, 'descricao' => 'RETAL'],
['id' => 24, 'descricao' => 'SUBLINGUAL'],
['id' => 25, 'descricao' => 'TÓPICO'],
];
SeederUtil::saveList(Model::class, $locais, 'id');
}
}

View File

@@ -0,0 +1,16 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Desfecho as Model;
use Illuminate\Database\Seeder;
class Desfecho_20240906094816 extends Seeder
{
public function run()
{
$desfecho = [
['id' => 8, 'nome' => 'FAA Cancelada'],
];
SeederUtil::saveList(Model::class, $desfecho, 'id');
}
}

View File

@@ -0,0 +1,18 @@
<?php
use App\Enums\ProntoAtendimento\Atendimento\DorToracica;
use App\Models\ProntoAtendimento\Atendimento\Triagem\OrigemDorToracica;
use Illuminate\Database\Seeder;
class StatusFormularioDorToracica_20241105113330 extends Seeder
{
public function run()
{
$tipos = [
['id' => DorToracica::DURACAO_DA_DOR_MAIOR_10_MINUTOS, 'nome' => 'Duração da dor (> 10 minutos)'],
];
SeederUtil::saveList(OrigemDorToracica::class, $tipos, 'id');
}
}

View File

@@ -0,0 +1,18 @@
<?php
use App\Models\ProntoAtendimento\Atendimento\Triagem\DorToracicaSinalInstabilidade;
use Illuminate\Database\Seeder;
class DorToracicaSinalInstabilidade_20241106145435 extends Seeder
{
public function run()
{
$sinais = [
['id' => 1, 'nome' => 'Dor torácica refratária'],
['id' => 2, 'nome' => 'Arritmia ventricular complexa'],
['id' => 3, 'nome' => 'Edema pulmonar e/ou choque'],
];
SeederUtil::saveList(DorToracicaSinalInstabilidade::class, $sinais, 'id');
}
}

View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class AtestadoModelo_20260515085950 extends Seeder
{
public function run()
{
$modelos = [
['id' => 1, 'nome' => 'PADRAO'],
['id' => 2, 'nome' => 'EM BRANCO'],
['id' => 3, 'nome' => 'PERIODO MANHA'],
['id' => 4, 'nome' => 'PERIODO TARDE'],
['id' => 5, 'nome' => 'PERIODO NOITE'],
['id' => 6, 'nome' => 'QUANTIDADE HORAS'],
];
DB::table('pronto_atendimento_atestado_modelo')
->upsert($modelos, ['id'], ['nome']);
}
}