Skip to content

Commit f20089a

Browse files
committed
(MONIT):"Agregar parámetro en moléculas para visualizar titulo"
1 parent fe18d9e commit f20089a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/modules/rup/components/elementos/moleculaBase.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class MoleculaBaseComponent extends RUPComponent implements OnInit {
1111
public contentLoaded = false;
1212
public ultimaConsulta;
1313
public validacion = false;
14+
mostrarTituloSubmolecula = false;
1415
public estados = [
1516
{ id: 'resuelto', nombre: 'Resuelto' },
1617
{ id: 'activo', nombre: 'Activo' }
@@ -19,6 +20,10 @@ export class MoleculaBaseComponent extends RUPComponent implements OnInit {
1920
public evoluciones;
2021

2122
ngOnInit() {
23+
if (this.params?.mostrarTituloSubmolecula) {
24+
}
25+
26+
this.mostrarTituloSubmolecula = this.params?.mostrarTituloSubmolecula || false;
2227
if (this.registro.concepto.semanticTag === 'trastorno') {
2328
if (!this.registro.valor) {
2429
this.registro.valor = { estado: 'activo' };

src/app/modules/rup/components/elementos/moleculaBase.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<div *ngIf="mostrarTituloSubmolecula" class="rup-submolecula-titulo mb-2">
2+
<plex-title [titulo]="registro.nombre || registro.concepto.term" size="sm" [tituloBold]="true"></plex-title>
3+
</div>
14
<ng-container *ngIf="registro.concepto.semanticTag === 'trastorno'">
25
<form #form="ngForm" *ngIf="paciente">
36
<div *ngIf="elementoRUP && registro">

0 commit comments

Comments
 (0)