diff --git a/src/app/modules/com/components/punto-inicio.component.ts b/src/app/modules/com/components/punto-inicio.component.ts index 016bacbeae..e82d4f8f9d 100644 --- a/src/app/modules/com/components/punto-inicio.component.ts +++ b/src/app/modules/com/components/punto-inicio.component.ts @@ -67,6 +67,11 @@ export class ComPuntoInicioComponent implements OnInit { public fechaDesde; public fechaHasta; public hoy = new Date(); + public rangoEtario: any; + public opcionesRangoEtario = [ + { id: 'pediatrico', nombre: 'Pediátrico' }, + { id: 'adultos', nombre: 'Adolescentes y Adultos' } + ]; constructor( private derivacionesService: DerivacionesService, @@ -159,6 +164,9 @@ export class ComPuntoInicioComponent implements OnInit { if (this.paciente) { query.paciente = `^${this.paciente}`; } + if (this.rangoEtario) { + query.rangoEtario = this.rangoEtario.id; + } let rangoFecha; let desde; @@ -237,6 +245,7 @@ export class ComPuntoInicioComponent implements OnInit { this.organizacionOrigen = null; this.organizacionDestino = null; this.paciente = null; + this.rangoEtario = null; this.tabIndex = index; this.ocultarSidebars(); this.cargarDerivaciones(); diff --git a/src/app/modules/com/components/punto-inicio.html b/src/app/modules/com/components/punto-inicio.html index 6abef92a9c..fdbd32a6d0 100644 --- a/src/app/modules/com/components/punto-inicio.html +++ b/src/app/modules/com/components/punto-inicio.html @@ -23,6 +23,9 @@ + + @@ -134,6 +137,9 @@ + + @@ -197,11 +203,11 @@
+ subtitulo="{{ derivacion.paciente | documento }}"> + subtitulo="{{ derivacion.paciente | documento }}">