Skip to content

Commit

Permalink
Regenerar registros: Identificar paciente inactivo
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanIRamirez committed Mar 5, 2024
1 parent 361ca2a commit cb154d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
11 changes: 7 additions & 4 deletions src/app/cda/components/paciente/paciente-listado.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<div *ngIf="type == 'default' && listado && listado.length">
<plex-list [striped]="true" height="70%">
<plex-heading>
<b label></b>
<b label>Documento</b>
<b label>Apellido y Nombre</b>
<b label>Nacimiento</b>
<b></b>
<b label></b>
</plex-heading>
<ng-container *ngFor="let paciente of listado">
<plex-item (click)="seleccionar(paciente)" (mouseenter)="hoverPaciente(paciente)"
[selected]="paciente.id == seleccionado?.id">
<plex-label>
<img *ngIf="paciente.foto" src="{{ paciente.foto }}">
<img *ngIf="!paciente.foto" src='data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20id%3D"Layer_4"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20xmlns%3Axlink%3D"http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink"%20x%3D"0px"%20y%3D"0px"%0D%0A%09%20width%3D"480px"%20height%3D"535px"%20viewBox%3D"0%200%20480%20535"%20enable-background%3D"new%200%200%20480%20535"%20xml%3Aspace%3D"preserve">%0D%0A<g%20id%3D"Layer_3">%0D%0A%09<linearGradient%20id%3D"SVGID_1_"%20gradientUnits%3D"userSpaceOnUse"%20x1%3D"240"%20y1%3D"535"%20x2%3D"240"%20y2%3D"4.882812e-04">%0D%0A%09%09<stop%20%20offset%3D"0"%20style%3D"stop-color%3A%23C5C5C5"%2F>%0D%0A%09%09<stop%20%20offset%3D"1"%20style%3D"stop-color%3A%239A9A9A"%2F>%0D%0A%09<%2FlinearGradient>%0D%0A%09<rect%20fill%3D"url%28%23SVGID_1_%29"%20width%3D"480"%20height%3D"535"%2F>%0D%0A<%2Fg>%0D%0A<g%20id%3D"Layer_2">%0D%0A%09<path%20fill%3D"%23FFFFFF"%20d%3D"M347.5%2C250c0%2C59.375-48.125%2C107.5-107.5%2C107.5c-59.375%2C0-107.5-48.125-107.5-107.5%0D%0A%09%09c0-59.375%2C48.125-107.5%2C107.5-107.5C299.375%2C142.5%2C347.5%2C190.625%2C347.5%2C250z"%2F>%0D%0A%09<path%20fill%3D"%23FFFFFF"%20d%3D"M421.194%2C535C413.917%2C424.125%2C335.575%2C336.834%2C240%2C336.834c-95.576%2C0-173.917%2C87.291-181.194%2C198.166%0D%0A%09%09H421.194z"%2F>%0D%0A<%2Fg>%0D%0A<%2Fsvg>'>
<img *ngIf="!paciente.foto"
src='data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20id%3D"Layer_4"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20xmlns%3Axlink%3D"http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink"%20x%3D"0px"%20y%3D"0px"%0D%0A%09%20width%3D"480px"%20height%3D"535px"%20viewBox%3D"0%200%20480%20535"%20enable-background%3D"new%200%200%20480%20535"%20xml%3Aspace%3D"preserve">%0D%0A<g%20id%3D"Layer_3">%0D%0A%09<linearGradient%20id%3D"SVGID_1_"%20gradientUnits%3D"userSpaceOnUse"%20x1%3D"240"%20y1%3D"535"%20x2%3D"240"%20y2%3D"4.882812e-04">%0D%0A%09%09<stop%20%20offset%3D"0"%20style%3D"stop-color%3A%23C5C5C5"%2F>%0D%0A%09%09<stop%20%20offset%3D"1"%20style%3D"stop-color%3A%239A9A9A"%2F>%0D%0A%09<%2FlinearGradient>%0D%0A%09<rect%20fill%3D"url%28%23SVGID_1_%29"%20width%3D"480"%20height%3D"535"%2F>%0D%0A<%2Fg>%0D%0A<g%20id%3D"Layer_2">%0D%0A%09<path%20fill%3D"%23FFFFFF"%20d%3D"M347.5%2C250c0%2C59.375-48.125%2C107.5-107.5%2C107.5c-59.375%2C0-107.5-48.125-107.5-107.5%0D%0A%09%09c0-59.375%2C48.125-107.5%2C107.5-107.5C299.375%2C142.5%2C347.5%2C190.625%2C347.5%2C250z"%2F>%0D%0A%09<path%20fill%3D"%23FFFFFF"%20d%3D"M421.194%2C535C413.917%2C424.125%2C335.575%2C336.834%2C240%2C336.834c-95.576%2C0-173.917%2C87.291-181.194%2C198.166%0D%0A%09%09H421.194z"%2F>%0D%0A<%2Fg>%0D%0A<%2Fsvg>'>
</plex-label>
<plex-label>
<span *ngIf="paciente?.documento !== ''">{{paciente.documento}}</span>
Expand All @@ -27,9 +29,10 @@
</plex-label>
<plex-badge type="info">{{paciente | sexo}}
</plex-badge>
<plex-badge *ngIf="!paciente.activo" type="danger">Inactivo</plex-badge>
<plex-badge type="" class=""
[ngClass]="{'text-success' : paciente.estado === 'validado' , 'text-warning' : paciente.estado === 'temporal'} ">
{{paciente.estado}}</plex-badge>
[ngClass]="{'text-success' : paciente.estado === 'validado' , 'text-warning' : paciente.estado === 'temporal'} ">
{{paciente.estado}}</plex-badge>
</plex-item>
</ng-container>
</plex-list>
Expand Down
2 changes: 1 addition & 1 deletion src/app/cda/components/regenerar-registros.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class RegenerarRegistrosComponent implements OnInit {
loading = false;
searchClear = true; // True si el campo de búsqueda se encuentra vacío
side = sizeSide;
pacienteSelected = null;
public pacienteSelected = null;
listaCDA = [];
public disabledBtnCDA = false;
public disabledBtnVacunas = false;
Expand Down
11 changes: 6 additions & 5 deletions src/app/cda/components/regenerar-registros.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
</plex-layout-main>
<plex-layout-sidebar>
<plex-title titulo="Registros del paciente" size="sm" main>
<plex-button label="refrescar" type="primary" size="sm" [autodisabled]="true" (click)="refreshCDA()"></plex-button>
<plex-button [disabled]="disabledBtnCDA" label="regenerar" type="success" size="sm"
(click)="regenerarCDA()">
<plex-button *ngIf="pacienteSelected?.activo" label="refrescar" type="primary" size="sm"
[autodisabled]="true" (click)="refreshCDA()"></plex-button>
<plex-button *ngIf="pacienteSelected?.activo" [disabled]="disabledBtnCDA" label="regenerar" type="success"
size="sm" (click)="regenerarCDA()">
</plex-button>
<plex-button [disabled]="disabledBtnVacunas" label="registrar vacunas" type="warning" size="sm" [autodisabled]="true"
(click)="registrarVacunas()">
<plex-button *ngIf="pacienteSelected?.activo" [disabled]="disabledBtnVacunas" label="registrar vacunas"
type="warning" size="sm" [autodisabled]="true" (click)="registrarVacunas()">
</plex-button>
</plex-title>

Expand Down

0 comments on commit cb154d6

Please sign in to comment.