-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(rup): nueva molecula para trastorno de acv * agrega control de cambios para hora de inicio
- Loading branch information
Showing
4 changed files
with
137 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
58 changes: 58 additions & 0 deletions
58
src/app/modules/rup/components/elementos/moleculaBase.html
This file contains 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,58 @@ | ||
<ng-container *ngIf="registro.concepto.semanticTag === 'trastorno'"> | ||
<form #form="ngForm" *ngIf="paciente"> | ||
<div *ngIf="elementoRUP && registro"> | ||
<plex-label *ngIf="evoluciones?.length" | ||
titulo="Fecha de inicio de los síntomas: {{ (consultaTrastornoOriginal?.registros[0]?.valor | date: 'dd/MM/yyyy hh:mm a') || 'Sin registro' }}" | ||
[tituloBold]="true"> | ||
</plex-label> | ||
<ng-container *ngIf="elementoRUP.requeridos?.length"> | ||
<plex-grid size="sm" type="full" cols="{{ elementoRUP.style.columns }}"> | ||
<div span="4"> | ||
<plex-label titulo="Estado actual" [tituloBold]="true"></plex-label> | ||
<plex-select *ngIf="!soloValores" [(ngModel)]="registro.valor.estado" name="estadoActual" | ||
[data]="estados" [required]="true" (change)="formatearEstado()"> | ||
</plex-select> | ||
<plex-label *ngIf="soloValores" case="capitalize">{{ registro.valor.estado }}</plex-label> | ||
</div> | ||
<ng-container *ngFor=" let item of elementoRUP.requeridos; let i=index"> | ||
<div *ngIf="item.elementoRUP" span="{{item.style.columns}}"> | ||
<ng-conteiner *ngIf="!evoluciones?.length || item.concepto.conceptId === '229059009'"> | ||
<!-- Si se esta evolucionando, solo se muestra el campo 'evolucion' --> | ||
<rup [elementoRUP]="item.elementoRUP" [paciente]="paciente" [params]="item.params" | ||
[prestacion]="prestacion" [registro]="registro.registros[i]" | ||
[soloValores]="soloValores" span="{{ item.style.columns }}" | ||
(change)="onChange($event)"> | ||
</rup> | ||
</ng-conteiner> | ||
</div> | ||
</ng-container> | ||
</plex-grid> | ||
</ng-container> | ||
</div> | ||
</form> | ||
</ng-container> | ||
<ng-container *ngIf="registro.concepto.semanticTag !== 'trastorno'"> | ||
<div *ngIf="(ultimaConsulta?.updatedAt || ultimaConsulta?.createdAt) && !validacion" class="row bg-faded" | ||
class="d-flex justify-content-start"> | ||
<div class="col m-0 p-0 bg-registro-anterior"> | ||
<span> | ||
Registros tomados el {{ (ultimaConsulta.updatedAt || ultimaConsulta.createdAt) | fecha }}, | ||
por | ||
{{ ultimaConsulta.createdBy | nombre }}</span> | ||
</div> | ||
</div> | ||
<!-- Moléculas --> | ||
<ng-container *ngIf="contentLoaded && elementoRUP.requeridos && elementoRUP.requeridos.length"> | ||
<div class="row" [ngClass]="{'d-flex justify-content-start': soloValores}"> | ||
<ng-container *ngFor="let item of requeridos; let i = index"> | ||
<div *ngIf="item.elementoRUP" | ||
class="col-{{ item.style.columns }} mr-{{ item.style?.offset ? item.style.offset : '0' }}"> | ||
<rup [elementoRUP]="item.elementoRUP" [paciente]="paciente" [params]="item.params" | ||
[prestacion]="prestacion" [registro]="registro.registros[i]" [soloValores]="soloValores" | ||
[style]="item.style" (change)="emitChange($event)"> | ||
</rup> | ||
</div> | ||
</ng-container> | ||
</div> | ||
</ng-container> | ||
</ng-container> |
This file contains 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 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