Skip to content
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

fix(RUP): control del filtro actual para solicitudes #1931

Merged
merged 1 commit into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class BuscadorComponent implements OnInit, OnChanges {
let planesCopia = JSON.parse(JSON.stringify(this.results[busquedaActual]['planes']));
let planes = [];
planesCopia.forEach(unPlan => {
unPlan.plan = true;
unPlan.esSolicitud = true;
planes.push(unPlan);
});
// agregamos los planes
Expand Down Expand Up @@ -367,6 +367,7 @@ export class BuscadorComponent implements OnInit, OnChanges {

public filtroBuscadorSnomed(key) {
this.filtroActual = key;

}

/**
Expand All @@ -376,7 +377,7 @@ export class BuscadorComponent implements OnInit, OnChanges {
*/
public seleccionarConcepto(concepto, index) {
gtag('add-concept', this.busquedaActual, this.search, index);

concepto.esSolicitud = concepto.esSolicitud || this.filtroActual === 'planes';
this.ejecucionService.agregarConcepto(
{
term: concepto.term,
Expand Down
4 changes: 2 additions & 2 deletions src/app/modules/rup/services/prestaciones.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ export class PrestacionesService {
public getCssClass(conceptoSNOMED, esSolicitud) {
let clase = conceptoSNOMED.semanticTag;

if (conceptoSNOMED.plan || (typeof esSolicitud !== 'undefined' && esSolicitud)) {
if (conceptoSNOMED.esSolicitud || (typeof esSolicitud !== 'undefined' && esSolicitud)) {
clase = 'solicitud';
} else if (conceptoSNOMED.semanticTag === 'régimen/tratamiento') {
clase = 'regimen';
Expand Down Expand Up @@ -774,7 +774,7 @@ export class PrestacionesService {
public getIcon(conceptoSNOMED, esSolicitud) {
let icon = conceptoSNOMED.semanticTag;

if (conceptoSNOMED.plan || (typeof esSolicitud !== 'undefined' && esSolicitud)) {
if (conceptoSNOMED.esSolicitud || (typeof esSolicitud !== 'undefined' && esSolicitud)) {
icon = 'plan';
} else {
switch (conceptoSNOMED.semanticTag) {
Expand Down