Example #1
0
        public void insert_states()
        {
            var states = new List<State>
                             {
                                 new State {Id = 1,Description = "Acre", Acronym = "AC"},
                                 new State {Id = 2,Description = "Alagoas", Acronym = "AL"},
                                 new State {Id = 3,Description = "Amapá", Acronym = "AP"},
                                 new State {Id = 4,Description = "Amazonas", Acronym = "AM"},
                                 new State {Id = 5,Description = "Bahia", Acronym = "BA"},
                                 new State {Id = 6,Description = "Ceará", Acronym = "CE"},
                                 new State {Id = 7,Description = "Distrito Federal", Acronym = "DF"},
                                 new State {Id = 8,Description = "Espírito Santo", Acronym = "ES"},
                                 new State {Id = 9,Description = "Goiás", Acronym = "GO"},
                                 new State {Id = 10,Description = "Maranhão", Acronym = "MA"},
                                 new State {Id = 11,Description = "Mato Grosso", Acronym = "MT"},
                                 new State {Id = 12,Description = "Mato Grosso do Sul", Acronym = "MS"},
                                 new State {Id = 13,Description = "Minas Gerais", Acronym = "MG"},
                                 new State {Id = 14,Description = "Pará", Acronym = "PA"},
                                 new State {Id = 15,Description = "Paraíba", Acronym = "PB"},
                                 new State {Id = 16,Description = "Paraná", Acronym = "PR"},
                                 new State {Id = 17,Description = "Pernambuco", Acronym = "PE"},
                                 new State {Id = 18,Description = "Piauí", Acronym = "PI"},
                                 new State {Id = 19,Description = "Rio de Janeiro", Acronym = "RJ"},
                                 new State {Id = 20,Description = "Rio Grande do Norte", Acronym = "RN"},
                                 new State {Id = 21,Description = "Rio Grande do Sul", Acronym = "RS"},
                                 new State {Id = 22,Description = "Rondônia", Acronym = "RO"},
                                 new State {Id = 23,Description = "Roraima", Acronym = "RR"},
                                 new State {Id = 24,Description = "Santa Catarina", Acronym = "SC"},
                                 new State {Id = 25,Description = "São Paulo", Acronym = "SP"},
                                 new State {Id = 26,Description = "Sergipe", Acronym = "SE"},
                                 new State {Id = 27,Description = "Tocantins", Acronym = "TO"},
                             };

            var reactionTypes = new Types<State>();

            reactionTypes.SaveList(states);
        }
Example #2
0
        public void insert_admission_options()
        {
            var admissions = new List<ReasonOfAdmission>
                                 {
                                     new ReasonOfAdmission
                                     {
                                         Id = 1,
                                         Description = "Cirúrgica"
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 2,
                                         Description = "Clínica",
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 3,
                                         Description = "Eletiva"
                                     },
                                     new ReasonOfAdmission
                                     {
                                         Id = 4,
                                         Description = "Emergência"
                                     }
                                 };

            var repository = new Types<ReasonOfAdmission>();
            repository.SaveList<ReasonOfAdmission>(admissions);
        }
Example #3
0
        public void insert_reactions_types()
        {
            var alergicaLeveModeradaGrave = new ReactionType() { Id = 1, Description = "Aloimunização Eritrocitária" };

            var aloimunizacaoEritrocitaria = new ReactionType() { Id = 2, Description = "Aloimunização HLA" };

            var aloimunizacaoHla = new ReactionType() { Id = 3, Description = "Imunomodulação" };

            var enxertoXHospedeiro = new ReactionType() { Id = 4, Description = "Lesão pulmonar relacionada a transfusão" };

            var febrilNaoHemolitica = new ReactionType() { Id = 5, Description = "Púrpura pós transfusional" };

            var hemoliticaImune = new ReactionType() { Id = 6, Description = "Alérgica: leve; moderada; grave" };

            var imunomodulacao = new ReactionType() { Id = 7, Description = "Enxerto x Hospedeiro" };

            var lesaoPulmonarRelacionadaATransfusao = new ReactionType() { Id = 8, Description = "Febril não hemolítica" };

            var purpuraPosTransfusional = new ReactionType() { Id = 9, Description = "Hemolítica Imune" };

            var types = new List<ReactionType>
            {
            alergicaLeveModeradaGrave,
            aloimunizacaoEritrocitaria,
            aloimunizacaoHla,
            enxertoXHospedeiro,
            febrilNaoHemolitica,
            hemoliticaImune,
            imunomodulacao,
            lesaoPulmonarRelacionadaATransfusao,
            purpuraPosTransfusional
            };

            var reactionTypes = new Types<ReactionType>();

            reactionTypes.SaveList(types);
        }
Example #4
0
 public void insert_specialties()
 {
     var specialties = new List<Specialty> {
     new Specialty { Description = "Acupuntura" },
     new Specialty { Description = "Alergia e Imunologia" },
     new Specialty { Description = "Anestesiologia" },
     new Specialty { Description = "Angiologia" },
     new Specialty { Description = "Cancerologia (oncologia)" },
     new Specialty { Description = "Cardiologia" },
     new Specialty { Description = "Cirurgia Cardiovascular" },
     new Specialty { Description = "Cirurgia da Mão" },
     new Specialty { Description = "Cirurgia neurológica" },
     new Specialty { Description = "Cirurgia do Aparelho Digestório" },
     new Specialty { Description = "Cirurgia Geral" },
     new Specialty { Description = "Cirurgia Pediátrica" },
     new Specialty { Description = "Cirurgia Plástica" },
     new Specialty { Description = "Cirurgia Torácica" },
     new Specialty { Description = "Cirurgia Vascular" },
     new Specialty { Description = "Clínica Médica (Medicina interna)" },
     new Specialty { Description = "Coloproctologia" },
     new Specialty { Description = "Dermatologia" },
     new Specialty { Description = "Endocrinologia e Metabologia" },
     new Specialty { Description = "Endoscopia" },
     new Specialty { Description = "Gastroenterologia" },
     new Specialty { Description = "Genética médica" },
     new Specialty { Description = "Geriatria" },
     new Specialty { Description = "Ginecologia e Obstetrícia" },
     new Specialty { Description = "Hematologia e Hemoterapia" },
     new Specialty { Description = "Homeopatia" },
     new Specialty { Description = "Infectologia" },
     new Specialty { Description = "Mastologia" },
     new Specialty { Description = "Medicina de Família e Comunidade" },
     new Specialty { Description = "Medicina do Trabalho" },
     new Specialty { Description = "Medicina do Tráfego" },
     new Specialty { Description = "Medicina Esportiva" },
     new Specialty { Description = "Medicina Física e Reabilitação" },
     new Specialty { Description = "Medicina Intensiva" },
     new Specialty { Description = "Medicina Legal e Perícia Médica (ou medicina forense)" },
     new Specialty { Description = "Medicina Nuclear" },
     new Specialty { Description = "Medicina Preventiva e Social" },
     new Specialty { Description = "Nefrologia" },
     new Specialty { Description = "Neurocirurgia" },
     new Specialty { Description = "Neurologia" },
     new Specialty { Description = "Nutrologia" },
     new Specialty { Description = "Oftalmologia" },
     new Specialty { Description = "Ortopedia e Traumatologia" },
     new Specialty { Description = "Otorrinolaringologia" },
     new Specialty { Description = "Patologia" },
     new Specialty { Description = "Patologia Clínica/Medicina laboratorial" },
     new Specialty { Description = "Pediatria" },
     new Specialty { Description = "Pneumologia" },
     new Specialty { Description = "Psiquiatria" },
     new Specialty { Description = "Radiologia e Diagnóstico por Imagem" },
     new Specialty { Description = "Radioterapia" },
     new Specialty { Description = "Reumatologia" },
     new Specialty { Description = "Urologia" }
     };
     var typesRepository = new Types<Specialty>();
     typesRepository.SaveList<Specialty>(specialties);
 }
Example #5
0
        public void insert_Historical_Action_Types()
        {
            var list = new List<HistoricalActionType>
                           {
                               new HistoricalActionType{Id = 1,Description = "incluiu"},
                               new HistoricalActionType{Id = 2,Description = "alterou"},
                               new HistoricalActionType{Id = 3,Description = "excluiu"},
                               new HistoricalActionType{Id = 4,Description = "viu"},
                               new HistoricalActionType{Id = 5,Description = "fechou"},
                               new HistoricalActionType{Id = 6,Description = "reabriu"},
                               new HistoricalActionType{Id = 7,Description = "imprimiu"},
                           };
            var types = new Types<HistoricalActionType>();

            types.SaveList(list);
        }
Example #6
0
        public void insert_hemotransfusion_types()
        {
            var types = new List<HemotransfusionType>
            {
                new HemotransfusionType {Id=1, Description = "Criopreciptado" },
                new HemotransfusionType {Id=2, Description = "Concentrado de hemácias" },
                new HemotransfusionType {Id=3, Description = "Concentrado de neutrófilos" },
                new HemotransfusionType {Id=4, Description = "Concentrado de plaquetas" },
                new HemotransfusionType {Id=5, Description = "Plasma" }
            };

            var reactionTypes = new Types<HemotransfusionType>();

            reactionTypes.SaveList(types);
        }
Example #7
0
        public void insert_diagnostic_types()
        {
            var types = new List<DiagnosticType>
                            {
                                new DiagnosticType() {Id = 1, Description = "Principal" },
                                new DiagnosticType() {Id = 2, Description = "Associados e/ou Outros" }
                            };

            var typesRepository = new Types<DiagnosticType>();

            typesRepository.SaveList(types);
        }
Example #8
0
        public void insert_Conditions_Of_The_Patient_At_Discharge()
        {
            var types = new List<ConditionAtDischarge>
                            {
                                new ConditionAtDischarge() {Id = 1, Description = "Curado" },
                                new ConditionAtDischarge() {Id = 2, Description = "Melhorado" },
                                new ConditionAtDischarge() {Id = 3, Description = "Desistência de tratamento" },
                            };

            var typesRepository = new Types<ConditionAtDischarge>();

            typesRepository.SaveList(types);
        }
Example #9
0
        public void insert_allergies_types()
        {
            var types = new List<AllergyType>
                            {
                                new AllergyType {Id = 1, Description = "Angioedema" },
                                new AllergyType {Id = 2, Description = "Urticária" },
                                new AllergyType {Id = 3, Description = "Choque Anafilático" },
                                new AllergyType {Id = 4, Description = "Broncoespasmo" },
                                new AllergyType {Id = 5, Description = "Laringoespasmo" },
                                new AllergyType {Id = 6, Description = "Outros" }
                            };

            var typesRepository = new Types<AllergyType>();

            typesRepository.SaveList(types);
        }