From 105d384e9fb61523eb4e38c4e6c6b441e4250edd Mon Sep 17 00:00:00 2001 From: Joao Kieras <jpko19@inf.ufpr.br> Date: Mon, 25 Jul 2022 10:40:51 -0300 Subject: [PATCH] Add new convert --- src/libs/convert/peePorCategoria.js | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/libs/convert/peePorCategoria.js diff --git a/src/libs/convert/peePorCategoria.js b/src/libs/convert/peePorCategoria.js new file mode 100644 index 00000000..f95d5a16 --- /dev/null +++ b/src/libs/convert/peePorCategoria.js @@ -0,0 +1,50 @@ +/* +Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre +Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR + +This file is part of simcaq-node. + +simcaq-node is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +simcaq-node is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with simcaq-node. If not, see <https://www.gnu.org/licenses/>. +*/ + +module.exports = function peeCategory(id) { + switch (id) { + case 1: + return 'cegueira'; + case 2: + return 'baixa_visao'; + case 3: + return 'surdez'; + case 4: + return 'deficiencia_auditiva'; + case 5: + return 'surdo_cegueira'; + case 6: + return 'deficiencia_fisica'; + case 7: + return 'deficiencia_intelectual'; + case 8: + return 'deficiencia_multiplas'; + case 9: + return 'autismo'; + case 10: + return 'sindrome_asperger'; + case 11: + return 'sindrome_rett'; + case 12: + return 'transtorno_desintegrativo_da_infancia'; + case 13: + return 'superdotado'; + } +}; -- GitLab