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
129 changes: 64 additions & 65 deletions src/app/components/turnos/gestor-agendas/turnos.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,39 @@
<plex-label align="center" size="md" titulo="Con llave" subtitulo="{{countBloques[mostrar]?.gestion}}">
</plex-label>
<plex-label align="center" size="md" titulo="Profesional"
subtitulo="{{countBloques[mostrar]?.profesional}}">
subtitulo="{{countBloques[mostrar]?.profesional}}">
</plex-label>
</plex-grid>
</ng-container>
<plex-title class="titulo-bloque" size="sm"
titulo="BLOQUE | {{ bloqueSelected.horaInicio | date: 'HH:mm'}} a {{ bloqueSelected.horaFin |date:'HH:mm'}} hs">
titulo="BLOQUE | {{ bloqueSelected.horaInicio | date: 'HH:mm'}} a {{ bloqueSelected.horaFin |date:'HH:mm'}} hs">
<ng-container *ngIf="agenda | botonesTurnos:turnosSeleccionados as botones">
<plex-button *ngIf="botones.sacarAsistencia && turnosSeleccionados?.length" class="mr-1"
ariaLabel="Registrar inasistencia" size="sm" type="warning" icon="account-remove"
(click)="eventosTurno('sacarAsistencia')" tooltip="Registrar inasistencia" tooltipPosition="top">
ariaLabel="Registrar inasistencia" size="sm" type="warning" icon="account-remove"
(click)="eventosTurno('sacarAsistencia')" tooltip="Registrar inasistencia"
tooltipPosition="top">
</plex-button>
<plex-button *ngIf="botones.darAsistencia && turnosSeleccionados?.length" class="mr-1"
ariaLabel="Registrar asistencia" size="sm" type="success" icon="account-check"
(click)="eventosTurno('darAsistencia')" tooltip="Registrar asistencia" tooltipPosition="top">
ariaLabel="Registrar asistencia" size="sm" type="success" icon="account-check"
(click)="eventosTurno('darAsistencia')" tooltip="Registrar asistencia" tooltipPosition="top">
</plex-button>

<plex-help *ngIf="botones.nota && turnosSeleccionados?.length" class="mr-1" type="info"
icon="comment-outline" tooltip="Agregar nota" tooltipPosition="top">
icon="comment-outline" tooltip="Agregar nota" tooltipPosition="top">
<agregar-nota-turno [agenda]="agenda" [turnosSeleccionados]="turnosSeleccionados"
(saveAgregarNotaTurno)="saveAgregarNotaTurno()">
(saveAgregarNotaTurno)="saveAgregarNotaTurno()">
</agregar-nota-turno>
</plex-help>
<plex-help *ngIf="botones.suspender" class="mr-1" btnType="danger" icon="stop" tooltip="Suspender turnos"
tooltipPosition="left">
tooltipPosition="left">
<suspender-turno [agenda]="agenda" [accion]="'suspenderTurno'"
[turnosSeleccionados]="turnosSeleccionados" (saveSuspenderTurno)="saveSuspenderTurno()"
(reasignarTurnoSuspendido)="reasignarTurnoSuspendido($event)">
[turnosSeleccionados]="turnosSeleccionados" (saveSuspenderTurno)="saveSuspenderTurno()"
(reasignarTurnoSuspendido)="reasignarTurnoSuspendido($event)">
</suspender-turno>
</plex-help>
<plex-button *ngIf="botones.cambiarDisponible && turnosSeleccionados?.length" class="mr-1" type="warning"
size="sm" icon="undo" tooltip="Cambiar a disponible" tooltipPosition="top"
(click)="cambiarADisponible()">
size="sm" icon="undo" tooltip="Cambiar a disponible" tooltipPosition="top"
(click)="cambiarADisponible()">
</plex-button>
</ng-container>
<plex-help *ngIf="!agenda.dinamica" type="help" icon="cog">
Expand Down Expand Up @@ -122,19 +123,19 @@ <h2 class="text-info">
<div class="d-flex flex-column align-items-start ml-1">
<div class="d-flex flex-rows">
<plex-badge *ngIf="turno?.estado !== 'disponible' && turno?.estado !== 'turnoDoble'" size="sm"
type="default">
type="default">
<shared-popover-audit placement="right" [data]="turno" [showUpdate]="true">
</shared-popover-audit>
</plex-badge>
<plex-badge *ngIf="turno.tipoTurno === 'profesional' && turno.estado === 'asignado'"
type="warning">
type="warning">
Autocitado</plex-badge>
<plex-badge *ngIf="turno.tipoTurno === 'gestion' && turno.estado === 'asignado'" type="warning">
Con
llave
</plex-badge>
<plex-badge *ngIf="turno.tipoTurno === 'programado' && turno.estado === 'asignado'"
type="warning">
type="warning">
Programado</plex-badge>
<plex-badge *ngIf="turno.reasignado?.anterior" type="info">Reasignado
</plex-badge>
Expand All @@ -148,17 +149,19 @@ <h2 class="text-info">
Suspendido</plex-badge>
<plex-badge *ngIf="!turno?.paciente?.id && turno?.estado === 'suspendido'" type="danger">
suspendido(sin paciente)</plex-badge>
<plex-help *ngIf="turno?.nota" class="ml-1" type="info" icon="message" tooltip="Ver nota"
tooltipPosition="right" size="sm" cardSize="half">
{{ turno.nota }}
<plex-help *ngIf="turno?.nota" type="info" icon="message" tooltip="Ver nota"
tooltipPosition="right" size="sm" cardSize="half">
<div class="nota-inline">
{{ turno.nota }}
</div>
</plex-help>

</div>
<plex-label *ngIf="!agenda.dinamica && !turno?.paciente?.id" size="sm"
titulo="{{ turno.horaInicio | date: 'HH:mm' }}hs">
titulo="{{ turno.horaInicio | date: 'HH:mm' }}hs">
</plex-label>
<plex-label *ngIf="turno?.paciente?.id" size="sm"
titulo="{{turno.horaInicio | date: 'HH:mm' }}hs | {{turno.paciente | nombre }}">
titulo="{{turno.horaInicio | date: 'HH:mm' }}hs | {{turno.paciente | nombre }}">
</plex-label>
<small>
<span *ngIf="turno?.paciente?.id">
Expand All @@ -175,63 +178,61 @@ <h2 class="text-info">
</td>
<td *plTableCol="'acciones'">
<plex-badge *ngIf="turno?.paciente?.id && turno?.estado === 'suspendido' && turno.reasignado?.siguiente"
class="mr-1" size="sm" type="info" tooltip="Ya reasignado" tooltipPosition="left">
class="mr-1" size="sm" type="info" tooltip="Ya reasignado" tooltipPosition="left">
<plex-icon name="account-check"></plex-icon>
</plex-badge>
<plex-badge
*ngIf="turno?.paciente?.id && turno.asistencia === 'asistio' && turno.estado !== 'suspendido'"
class="mr-1" size="sm" type="success" tooltip="Asistió" tooltipPosition="left">
<plex-badge *ngIf="turno?.paciente?.id && turno.asistencia === 'asistio' && turno.estado !== 'suspendido'"
class="mr-1" size="sm" type="success" tooltip="Asistió" tooltipPosition="left">
<plex-icon name="account-check"></plex-icon>
</plex-badge>
<plex-badge
*ngIf="turno?.paciente?.id && turno.asistencia === 'noAsistio' && turno.estado !== 'suspendido'"
class="mr-1" size="sm" type="danger" tooltip="No asistió" tooltipPosition="left">
<plex-badge *ngIf="turno?.paciente?.id && turno.asistencia === 'noAsistio' && turno.estado !== 'suspendido'"
class="mr-1" size="sm" type="danger" tooltip="No asistió" tooltipPosition="left">
<plex-icon name="account-remove"></plex-icon>
</plex-badge>
<plex-badge *ngIf="turno?.paciente?.id && turno.confirmedAt" class="mr-1" title="Confirmó asistencia">
<plex-icon name="emoticon-happy"></plex-icon>
</plex-badge>
<plex-badge
*ngIf="turno?.paciente?.id && turno?.estado === 'suspendido' && !turno.reasignado?.siguiente"
class="mr-1" size="sm" type="danger" tooltip="Aun no reasignado" tooltipPosition="left">
<plex-badge *ngIf="turno?.paciente?.id && turno?.estado === 'suspendido' && !turno.reasignado?.siguiente"
class="mr-1" size="sm" type="danger" tooltip="Aun no reasignado" tooltipPosition="left">
<plex-icon name="account-alert"></plex-icon>
</plex-badge>
<plex-badge *ngIf="turno.estado ==='suspendido' && turno.avisoSuspension === 'no enviado'" type="info"
title="Notificación pendiente" class="mr-1" tooltipPosition="left">
title="Notificación pendiente" class="mr-1" tooltipPosition="left">
<plex-icon name="message-processing"></plex-icon>
</plex-badge>
<plex-badge *ngIf="turno.estado ==='suspendido' && turno.avisoSuspension ==='enviado'" type="info"
title="Notificación enviada">
title="Notificación enviada">
<plex-icon name="message-text-outline"></plex-icon>
</plex-badge>
<ng-container *ngIf="agenda | botonesTurnos:turnosSeleccionados as botones">
<plex-button *ngIf="botones.turnoDoble && turnosSeleccionados[0]?.id === turno.id"
ariaLabel="Turno doble" size="sm" type="default" icon="numeric-2-box-multiple-outline"
(click)="asignarTurnoDoble('darTurnoDoble')" tooltip="Turno doble" tooltipPosition="top">
ariaLabel="Turno doble" size="sm" type="default" icon="numeric-2-box-multiple-outline"
(click)="asignarTurnoDoble('darTurnoDoble')" tooltip="Turno doble"
tooltipPosition="top">
</plex-button>
<plex-button *ngIf="botones.quitarTurnoDoble && turnosSeleccionados[0]?.id === turno.id"
ariaLabel="Quitar Turno doble" size="sm" type="default" icon="numeric-1-box-outline"
(click)="eventosTurno('quitarTurnoDoble', agenda)" tooltip="Quitar Turno doble"
tooltipPosition="top">
ariaLabel="Quitar Turno doble" size="sm" type="default" icon="numeric-1-box-outline"
(click)="eventosTurno('quitarTurnoDoble', agenda)" tooltip="Quitar Turno doble"
tooltipPosition="top">
</plex-button>
<plex-help *ngIf="botones.editarCarpeta && turnosSeleccionados[0]?.id === turno.id" type="info"
btnType="info" icon="folder-account" tooltip="Editar Carpeta" tooltipPosition="top">
btnType="info" icon="folder-account" tooltip="Editar Carpeta" tooltipPosition="top">
<plex-title size="sm" titulo="Editar carpeta"></plex-title>
<plex-label class="text-white" titulo="Paciente"
subtitulo="{{turnosSeleccionados[0].paciente | nombre }}" icon="paciente">
subtitulo="{{turnosSeleccionados[0].paciente | nombre }}" icon="paciente">
</plex-label>
<carpeta-paciente class="text-white" [turnoSeleccionado]="turnosSeleccionados[0] "
(guardarCarpetaEmit)="afterComponenteCarpeta($event)"
(cancelarCarpetaEmit)="afterComponenteCarpeta($event)">
(guardarCarpetaEmit)="afterComponenteCarpeta($event)"
(cancelarCarpetaEmit)="afterComponenteCarpeta($event)">
</carpeta-paciente>
</plex-help>
<plex-help *ngIf="botones.liberar && turnosSeleccionados[0]?.id === turno.id"
class="help-liberar-turnos" type="info" btnType="danger" icon="account-off"
tooltip="Liberar turnos" tooltipPosition="left">
class="help-liberar-turnos" type="info" btnType="danger" icon="account-off"
tooltip="Liberar turnos" tooltipPosition="left">
<liberar-turno [agenda]="agenda" [turnosSeleccionados]="turnosSeleccionados"
[desdeAgenda]="true" (saveLiberarTurno)="saveLiberarTurno($event)"
(reasignarTurnoLiberado)="reasignarTurnoLiberado($event)"
(cancelaLiberarTurno)="cancelaLiberarTurno()">
[desdeAgenda]="true" (saveLiberarTurno)="saveLiberarTurno($event)"
(reasignarTurnoLiberado)="reasignarTurnoLiberado($event)"
(cancelaLiberarTurno)="cancelaLiberarTurno()">
</liberar-turno>
</plex-help>
</ng-container>
Expand All @@ -256,7 +257,7 @@ <h2 class="text-info">
<div class="d-flex flex-column align-items-start ml-1">
<div class="d-flex flex-rows">
<plex-badge *ngIf="sobreturno?.estado !== 'disponible' && sobreturno?.estado !== 'turnoDoble'"
size="sm" type="default">
size="sm" type="default">
<shared-popover-audit placement="right" [data]="sobreturno" [showUpdate]="true">
</shared-popover-audit>
</plex-badge>
Expand All @@ -266,12 +267,12 @@ <h2 class="text-info">
<plex-badge *ngIf="sobreturno && sobreturno.estado === 'suspendido'" type="danger">
Suspendido</plex-badge>
<plex-badge *ngIf="sobreturno?.nota" size="sm" type="warning" tooltip="{{sobreturno.nota}}"
tooltipPosition="right">
tooltipPosition="right">
<plex-icon name="message"></plex-icon>
</plex-badge>
</div>
<plex-label *ngIf="sobreturno?.paciente?.id" size="md"
titulo="{{sobreturno.horaInicio | date: 'HH:mm' }}hs | {{sobreturno.paciente | nombre }}">
titulo="{{sobreturno.horaInicio | date: 'HH:mm' }}hs | {{sobreturno.paciente | nombre }}">
</plex-label>
<small>
<span *ngIf="sobreturno?.paciente?.id">
Expand All @@ -288,36 +289,34 @@ <h2 class="text-info">
</td>

<td *plTableCol="'acciones'">
<plex-badge
*ngIf="sobreturno?.paciente?.id && sobreturno.asistencia === 'asistio' && sobreturno.estado !== 'suspendido'"
size="sm" type="success" tooltip="Asistió" tooltipPosition="left">
<plex-badge *ngIf="sobreturno?.paciente?.id && sobreturno.asistencia === 'asistio' && sobreturno.estado !== 'suspendido'"
size="sm" type="success" tooltip="Asistió" tooltipPosition="left">
<plex-icon name="account-check"></plex-icon>
</plex-badge>
<plex-badge
*ngIf="sobreturno?.paciente?.id && sobreturno.asistencia === 'noAsistio' && sobreturno.estado !== 'suspendido'"
size="sm" type="danger" tooltip="No asistió" tooltipPosition="left">
<plex-badge *ngIf="sobreturno?.paciente?.id && sobreturno.asistencia === 'noAsistio' && sobreturno.estado !== 'suspendido'"
size="sm" type="danger" tooltip="No asistió" tooltipPosition="left">
<plex-icon name="account-remove"></plex-icon>
</plex-badge>

<ng-container *ngIf="agenda | botonesTurnos:turnosSeleccionados as botones">
<plex-help *ngIf="botones.editarCarpeta && turnosSeleccionados[0]?.id === sobreturno.id" type="info"
btnType="info" icon="folder-account" tooltip="Editar Carpeta" tooltipPosition="top">
btnType="info" icon="folder-account" tooltip="Editar Carpeta" tooltipPosition="top">
<plex-title size="sm" titulo="Editar carpeta"></plex-title>
<plex-label class="text-white" titulo="Paciente"
subtitulo="{{turnosSeleccionados[0].paciente | nombre }}" icon="paciente">
subtitulo="{{turnosSeleccionados[0].paciente | nombre }}" icon="paciente">
</plex-label>
<carpeta-paciente class="text-white" [turnoSeleccionado]="turnosSeleccionados[0] "
(guardarCarpetaEmit)="afterComponenteCarpeta($event)"
(cancelarCarpetaEmit)="afterComponenteCarpeta($event)">
(guardarCarpetaEmit)="afterComponenteCarpeta($event)"
(cancelarCarpetaEmit)="afterComponenteCarpeta($event)">
</carpeta-paciente>
</plex-help>
<plex-help *ngIf="botones.liberar && turnosSeleccionados[0]?.id === sobreturno.id"
class="help-liberar-turnos" type="info" btnType="danger" icon="account-off"
tooltip="Liberar turnos" tooltipPosition="left">
class="help-liberar-turnos" type="info" btnType="danger" icon="account-off"
tooltip="Liberar turnos" tooltipPosition="left">
<liberar-turno [agenda]="agenda" [turnosSeleccionados]="turnosSeleccionados"
[desdeAgenda]="true" (saveLiberarTurno)="saveLiberarTurno($event)"
(reasignarTurnoLiberado)="reasignarTurnoLiberado($event)"
(cancelaLiberarTurno)="cancelaLiberarTurno()">
[desdeAgenda]="true" (saveLiberarTurno)="saveLiberarTurno($event)"
(reasignarTurnoLiberado)="reasignarTurnoLiberado($event)"
(cancelaLiberarTurno)="cancelaLiberarTurno()">
</liberar-turno>
</plex-help>
</ng-container>
Expand Down
7 changes: 7 additions & 0 deletions src/app/components/turnos/gestor-agendas/turnos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@

.help-liberar-turnos {
color: #ffffff !important;
}

.nota-inline {
margin-top: 4px;
font-size: 12px;
color: #ffffff;
opacity: 0.9;
}
Loading