-
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(in): registro de respiracion asistida para internacion
- Loading branch information
Showing
12 changed files
with
129 additions
and
30 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
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
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
21 changes: 21 additions & 0 deletions
21
src/app/modules/rup/components/elementos/desteteVentilacionMecanica.component.ts
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,21 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { RUPComponent } from './../core/rup.component'; | ||
import { RupElement } from '.'; | ||
|
||
@Component({ | ||
selector: 'rup-destete-ventilacion-mecanica', | ||
templateUrl: 'desteteVentilacionMecanica.html' | ||
}) | ||
@RupElement('DesteteVentilacionMecanicaComponent') | ||
export class DesteteVentilacionMecanicaComponent extends RUPComponent implements OnInit { | ||
public hoy = new Date(); | ||
public fechaDestete: Date; | ||
|
||
ngOnInit() { | ||
this.fechaDestete = this.registro?.valor?.fecha || null; | ||
} | ||
|
||
changeValue() { | ||
this.registro.valor = { fecha : this.fechaDestete }; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/app/modules/rup/components/elementos/desteteVentilacionMecanica.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,9 @@ | ||
<plex-datetime *ngIf="!soloValores" type="datetime" name="fechaHasta" label="Fecha hasta" [(ngModel)]="fechaDestete" | ||
[required]="true" [max]="hoy" (change)="changeValue()"> | ||
</plex-datetime> | ||
|
||
<ng-container *ngIf="soloValores"> | ||
<p class="readonly"> | ||
<plex-label><b>Fecha hasta: </b> {{ registro.valor.fecha | date:'dd/MM/yyyy HH:mm' }}</plex-label> | ||
</p> | ||
</ng-container> |
29 changes: 29 additions & 0 deletions
29
src/app/modules/rup/components/elementos/respiracionAsistida.component.ts
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,29 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { RUPComponent } from './../core/rup.component'; | ||
import { RupElement } from '.'; | ||
|
||
@Component({ | ||
selector: 'rup-respiracion-asistida', | ||
templateUrl: 'respiracionAsistida.html' | ||
}) | ||
@RupElement('RespiracionAsistidaComponent') | ||
export class RespiracionAsistidaComponent extends RUPComponent implements OnInit { | ||
public dispositivos = []; | ||
public hoy = new Date(); | ||
public respirador: { | ||
dispositivo: any; | ||
fechaDesde: Date; | ||
}; | ||
|
||
ngOnInit() { | ||
this.dispositivoService.search().subscribe(disp => this.dispositivos = disp); | ||
this.respirador = this.registro.valor || { dispositivo: null, fechaDesde: null}; | ||
} | ||
|
||
setValues() { | ||
this.registro.valor = { | ||
dispositivo: this.respirador.dispositivo, | ||
fechaDesde: this.respirador.fechaDesde | ||
}; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/app/modules/rup/components/elementos/respiracionAsistida.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,17 @@ | ||
<div class="w-100"> | ||
<plex-grid *ngIf="!soloValores" cols="2"> | ||
<plex-select name="dispositivo" label="Dispositivo" [(ngModel)]="respirador.dispositivo" idField="_id" labelField="descripcion" | ||
[required]="true" [data]="dispositivos" (change)="setValues()"></plex-select> | ||
<plex-datetime type="datetime" name="fechaDesde" label="Fecha desde" [(ngModel)]="respirador.fechaDesde" [required]="true" | ||
[max]="hoy" (change)="setValues()"></plex-datetime> | ||
</plex-grid> | ||
|
||
<ng-container *ngIf="soloValores"> | ||
<p class="readonly"> | ||
<plex-label><b>Dispositivo: </b> {{ registro.valor.dispositivo.descripcion }}</plex-label> | ||
</p> | ||
<p class="readonly"> | ||
<plex-label><b>Fecha desde: </b> {{ registro.valor.fechaDesde | date:'dd/MM/yyyy HH:mm' }}</plex-label> | ||
</p> | ||
</ng-container> | ||
</div> |
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
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