-
Notifications
You must be signed in to change notification settings - Fork 12
V3.4.0 #388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
V3.4.0 #388
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
b5ab0bf
nueva route carpetas en config
NicoDino d3701e0
reubico ruta carpetaPaciente
NicoDino fe46a5c
creo endpoint para consultar ultima nroCarpeta del efector
NicoDino f9567b5
funcionalidad para incrementar nroCarpeta
NicoDino 67dcf4a
lint
NicoDino a373425
aggregate gethistorial
NicoDino d11f709
merge master
NicoDino 4064445
merge
NicoDino 784ce28
get ultima carpeta pac para sugerencia y post incrementar nro carpeta
NicoDino 97b8cf0
+ aggregate p/ obtener sobreturnos paciente
NicoDino 7d8eae5
3.4.0
condorpiedra 0fc3160
Merge pull request #339 from andes/historial-paciente-controller
condorpiedra be5a4f7
job actualización de carpetas desde SIPS
NicoDino b57c0ae
job logger
NicoDino 4888266
update schema organizacion
NicoDino 3781318
update config example
NicoDino c43a2d5
lint
NicoDino 5a3371b
fix cambio carpeta sobreturnos
NicoDino d40bfe0
agrego chequeos para organizaciones inexistentes en col ultimaCarpeta
NicoDino 168e890
Merge pull request #371 from andes/fix-update-paciente
condorpiedra 0f1e1c8
se modifica job de Pecas Consolidado
kroce b6d682a
fix login mobile no-profesional
liquid36 0bb2f7e
Merge branch 'v3.4.0' into Pecas
condorpiedra 3456383
Update version
condorpiedra 0989054
Merge branch 'v3.4.0' into mobile-no-profesional
condorpiedra 0cc1f02
Merge pull request #379 from andes/mobile-no-profesional
condorpiedra ce651fc
Merge pull request #374 from andes/Pecas
condorpiedra 75bcdf8
Merge pull request #364 from andes/carpetas-job-cleanPR
condorpiedra 81036f8
fix ruta carpetapaciente schema en carpetascontroller
NicoDino 8cc5fde
nuevo permiso edicion carpetas desde punto de inicio turnos
NicoDino f5fba5e
mejora aggregate getHistorial paciente
NicoDino 8966fa9
fix ruta import carpetapacienteschema
NicoDino fbaf3c8
mejora patch avisosuspension/motivoconsulta
NicoDino 9954aad
Merge pull request #382 from andes/issue663
condorpiedra 7093752
Merge pull request #385 from andes/fix-arancelamiento
condorpiedra e94619c
Agregamos codigo y nombre del financiador al devolver las obra social…
silviroa b858cf1
actualización de changelog
condorpiedra 3ef4b5d
Merge branch 'master' into v3.4.0
liquid36 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import * as mongoose from 'mongoose'; | ||
|
|
||
| export let logJobsSchema = new mongoose.Schema({ | ||
| job: { | ||
| type: String, | ||
| enum: ['actualizar agendas', 'actualizar carpetas', 'actualizar turnos del dia', 'cda sips', 'farmacias', | ||
| 'integracion andes', 'integracion hpn', 'integracion sips', 'mpi corrector', 'mpi updater', 'recordar turnos', | ||
| 'recordatorio agenda', 'robo sender'] | ||
| }, | ||
| error: mongoose.Schema.Types.Mixed, | ||
| createdAt: Date, | ||
| createdBy: mongoose.Schema.Types.Mixed | ||
|
|
||
| }); | ||
|
|
||
| export let logJobs = mongoose.model('logJobs', logJobsSchema, 'logJobs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
|
|
||
| import * as carpetasCtrl from './../modules/turnos/controller/carpetasController/carpetasController'; | ||
|
|
||
| function run() { | ||
| carpetasCtrl.migrar(); | ||
| } | ||
|
|
||
| export = run; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| import * as pecasCtrl from './../modules/estadistica/pecas/controller/agenda'; | ||
| import * as moment from 'moment'; | ||
|
|
||
| function run() { | ||
| pecasCtrl.consultaPecas(); | ||
| let start = moment(new Date().setHours(0, 0, 0, 0)).subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'); | ||
| let end = moment(new Date().setHours(23, 59, 0, 0)).subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss'); | ||
| pecasCtrl.consultaPecas(start, end); | ||
| } | ||
|
|
||
| export = run; |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import * as express from 'express'; | ||
| import * as ultimaCarpeta from '../schemas/ultimaCarpeta'; | ||
| import { mongooseDebugMode } from '../../../config.private'; | ||
| import * as mongoose from 'mongoose'; | ||
|
|
||
| let router = express.Router(); | ||
|
|
||
| router.get('/ultimaCarpeta', function (req: any, res, next) { | ||
| if (req.user.organizacion && req.user.organizacion.id) { | ||
|
|
||
| let idOrganizacion = new mongoose.Types.ObjectId(req.user.organizacion.id); | ||
| ultimaCarpeta.findOne({ idEfector: idOrganizacion }, function (err, data: any) { | ||
| if (err) { | ||
| return next(err); | ||
| } | ||
| if (data) { | ||
| data.ultimaCarpeta = data.ultimaCarpeta + 1; | ||
| res.json(data.ultimaCarpeta); | ||
| } else { | ||
| res.json(0); | ||
| } | ||
| }); | ||
| } | ||
| }); | ||
|
|
||
| router.post('/incrementarCuenta', function (req: any, res, next) { | ||
| if (req.user.organizacion && req.user.organizacion.id) { | ||
| let idOrganizacion = new mongoose.Types.ObjectId(req.user.organizacion.id); | ||
| ultimaCarpeta.findOne({ idEfector: idOrganizacion }, function (err, data: any) { | ||
| if (err) { | ||
| return next(err); | ||
| } | ||
| if (data) { | ||
| let update = { | ||
| ultimaCarpeta: data.ultimaCarpeta + 1 | ||
| }; | ||
| ultimaCarpeta.update({ idEfector: idOrganizacion }, { $set: update }, { new: true }, function (errUpdate, dataUpdate) { | ||
| if (err) { | ||
| return next(errUpdate); | ||
| } | ||
| res.json(dataUpdate); | ||
| }); | ||
| } else { | ||
| res.json(); | ||
| } | ||
| }); | ||
| } | ||
| }); | ||
|
|
||
| export = router; |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import * as mongoose from 'mongoose'; | ||
|
|
||
| let ultimaCarpetaSchema = new mongoose.Schema({ | ||
| idEfector: String, | ||
| ultimaCarpeta: Number | ||
|
|
||
| }); | ||
|
|
||
| let ultimaCarpeta = mongoose.model('ultimaCarpeta', ultimaCarpetaSchema, 'ultimaCarpeta'); | ||
| export = ultimaCarpeta; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La palabra 'puede' en el nombre de un permiso es redundante.