-
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-437): registro en rup para colposcopia
- Loading branch information
aldoEMatamala
committed
Dec 3, 2024
1 parent
fa06cac
commit c2a07b8
Showing
3 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
src/app/modules/rup/components/elementos/colposcopia.component.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,56 @@ | ||
<ng-container *ngIf="!soloValores"> | ||
<form #formColposcopia="ngForm"> | ||
<plex-select label='Colposcopia' [(ngModel)]="colposcopiaRegistro.colposcopia" name="colposcopia1" | ||
[data]="colposcopia"> | ||
</plex-select> | ||
<plex-text [(ngModel)]="colposcopiaRegistro.detalle" label="Detalle colposcopia" name="detalle" multiline="true" | ||
grow="full"> | ||
</plex-text> | ||
<plex-select label='Visibilidad de la unión escamocolumnar' [(ngModel)]="colposcopiaRegistro.visibilidadUEC" | ||
name="visibilidadUEC" [data]="visibilidadUEC"> | ||
</plex-select> | ||
<plex-radio [(ngModel)]="colposcopiaRegistro.zona" label="Zona de transformación" [data]="zonaTransformacion" | ||
name="zona"> | ||
</plex-radio> | ||
<plex-select label='Hallazgos colposcopicos' [(ngModel)]="colposcopiaRegistro.hallazgos" name="hallazgos" | ||
[data]="hallazgos"> | ||
</plex-select> | ||
<hr> | ||
<plex-wrapper> | ||
<plex-bool type="checkbox" label="¿Se toma biopsia?" [(ngModel)]="colposcopiaRegistro.biopsia" | ||
name="biopsia"> | ||
</plex-bool> | ||
<plex-text *ngIf="colposcopiaRegistro.biopsia" [(ngModel)]="colposcopiaRegistro.descripcionBiopsia" | ||
label="Descripción Biopsia" name="biopsiaDescripcion" multiline="true" grow="full"> | ||
</plex-text> | ||
</plex-wrapper> | ||
<plex-bool type="checkbox" label="¿Se evalua conducto endocervical?" | ||
[(ngModel)]="colposcopiaRegistro.evaluacionEndocervical" name="biopsia"> | ||
</plex-bool> | ||
<plex-radio label="Test de Schiller" [(ngModel)]="colposcopiaRegistro.testSchiller" name="biopsia" | ||
[data]="testSchiller"> | ||
</plex-radio> | ||
</form> | ||
</ng-container> | ||
<div *ngIf="soloValores"> | ||
<plex-label [tituloBold]="true" titulo="Colposcopia {{registro.valor.colposcopia?.colposcopia?.nombre }}" | ||
subtitulo="{{ registro.valor.colposcopia?.detalle}}"></plex-label> | ||
<plex-badge *ngIf="registro.valor.colposcopia?.zona" type="info" hintIcon="informacion">Zona Transformación | ||
{{registro.valor.colposcopia.zona}}</plex-badge> | ||
<plex-badge *ngIf="registro.valor.colposcopia.hallazgos" | ||
type="info">{{registro.valor.colposcopia?.hallazgos?.nombre}} | ||
</plex-badge> | ||
<plex-badge *ngIf="registro.valor.colposcopia.visibilidadUEC" type="info"> UEC | ||
{{registro.valor.colposcopia.visibilidadUEC.nombre}} | ||
</plex-badge> | ||
<plex-badge *ngIf="registro.valor.colposcopia.biopsia" type="info"> Se toma biopsia | ||
</plex-badge> | ||
<plex-badge *ngIf="!registro.valor.colposcopia.biopsia" type="info"> No toma biopsia | ||
</plex-badge> | ||
<plex-badge *ngIf="registro.valor.colposcopia.testSchiller" type="info">Test Schiller positivo | ||
</plex-badge> | ||
<plex-badge *ngIf="!registro.valor.colposcopia.testSchiller" type="info"> Test Schiller negativo | ||
</plex-badge> | ||
<plex-badge *ngIf="registro.valor.colposcopia.evaluacionEndocervical" type="info">Conducto endocervical evaluado | ||
</plex-badge> | ||
</div> |
55 changes: 55 additions & 0 deletions
55
src/app/modules/rup/components/elementos/colposcopia.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,55 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { RupElement } from '.'; | ||
import { RUPComponent } from '../core/rup.component'; | ||
import { Unsubscribe } from '@andes/shared'; | ||
|
||
@Component({ | ||
selector: 'app-colposcopia', templateUrl: './colposcopia.component.html' | ||
} | ||
) | ||
@RupElement('ColposcopiaComponent') | ||
|
||
export class ColposcopiaComponent extends RUPComponent implements OnInit { | ||
public colposcopiaRegistro: any = | ||
{ | ||
colpospia: null, | ||
detalle: null, | ||
visibilidadUEC: null, | ||
zona: null, | ||
biopsia: null, | ||
descripcionBiopsia: null, | ||
evaluacionEndocervical: null, | ||
testSchiller: null | ||
}; | ||
@Unsubscribe() | ||
ngOnInit() { | ||
if (!this.registro.valor) { | ||
this.registro.valor = {}; | ||
} | ||
if (!this.registro.valor.colposcopia) { | ||
this.registro.valor.colposcopia = this.colposcopiaRegistro; | ||
} | ||
} | ||
|
||
public colposcopia = [ | ||
{ id: 'adecuada', nombre: 'adecuada' }, | ||
{ id: 'inadecuada', nombre: 'inadecuada' } | ||
]; | ||
public visibilidadUEC = [ | ||
{ id: 'completamenteV', nombre: 'completamente visible' }, | ||
{ id: 'parcialmeteV', nombre: 'parcialmente visible' }, | ||
{ id: 'noVisible', nombre: 'no visible' } | ||
|
||
]; | ||
public zonaTransformacion = [{ id: '1', label: '1' }, { id: '2', label: '2' }, { id: '3', label: '3' }]; | ||
public hallazgos = [ | ||
{ id: 'normal', nombre: 'normal' }, | ||
{ id: 'grado 1', nombre: 'grado 1' }, | ||
{ id: 'grado 2', nombre: 'grado 2' }, | ||
{ id: 'sospechaInvasion', nombre: 'sospecha invasión' }, | ||
{ id: 'hallazgosVarios', nombre: 'hallazgos varios' }]; | ||
public testSchiller = [{ id: 'positivo', label: 'positivo' }, { id: 'negativo', label: 'negativo' }]; | ||
|
||
|
||
} | ||
|
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