Skip to content
Open
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 @@ -11,6 +11,7 @@ export class MoleculaBaseComponent extends RUPComponent implements OnInit {
public contentLoaded = false;
public ultimaConsulta;
public validacion = false;
mostrarTituloSubmolecula = false;
public estados = [
{ id: 'resuelto', nombre: 'Resuelto' },
{ id: 'activo', nombre: 'Activo' }
Expand All @@ -19,6 +20,10 @@ export class MoleculaBaseComponent extends RUPComponent implements OnInit {
public evoluciones;

ngOnInit() {
if (this.params?.mostrarTituloSubmolecula) {
}

this.mostrarTituloSubmolecula = this.params?.mostrarTituloSubmolecula || false;
if (this.registro.concepto.semanticTag === 'trastorno') {
if (!this.registro.valor) {
this.registro.valor = { estado: 'activo' };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<div *ngIf="mostrarTituloSubmolecula" class="rup-submolecula-titulo mb-2" style="margin-top: 10px;">
<span class="text-bold text-capitalize" style="font-size: 1.0rem;color:#00a8e0">{{registro.nombre ||
registro.concepto.term}}</span>
</div>
<ng-container *ngIf="registro.concepto.semanticTag === 'trastorno'">
<form #form="ngForm" *ngIf="paciente">
<div *ngIf="elementoRUP && registro">
Expand Down Expand Up @@ -55,4 +59,6 @@
</ng-container>
</div>
</ng-container>
</ng-container>
</ng-container>

<hr *ngIf="mostrarTituloSubmolecula" style="height:2px; border:none; background-color:#727070a2;">