{# # This file is part of MedShakeEHR. # # Copyright (c) 2017 # Bertrand Boutillier # http://www.medshake.net # # MedShakeEHR is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # MedShakeEHR is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with MedShakeEHR. If not, see . #/ /## # Template > logs : log des actions sur l'agenda # # @author Bertrand Boutillier # @contrib fr33z00 #} {% extends "page.html.twig" %} {% import "macroForm.html.twig" as f %} {% block title %}{{ config.designAppName }} : logs agendas{% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block body %}

Logs Agendas {% if page.agendaID > 0 %}#{{ page.agendaID }}{% endif %} {% if page.eventID > 0 %} - Rdv #{{ page.eventID }}{% endif %}

{% if page.agendaUsers|length > 1 %} {% endif %} {% if page.eventID is not defined %} {% for date in page.last %} {% for v in date %} {% endfor %} {% endfor %}
date action agenda rendez-vous dates actuelles du rdv type rdv patient action auteur action
{{ v.date }} #{{ v.agendaID }} {{ page['agendaUsers'][v.agendaID] }} #{{ v.eventID }} {{ v.start }} → {{ v.end }} {{ v.type }} #{{ v.patientID }}{{ v.patientPrenom }} {{ v.patientNom }} {% if v.operation is not defined %} nouveau {% elseif v.operation == 'missing' and v.olddata.absente == 'non' %} marquage patient absent {% elseif v.operation == 'missing' and v.olddata.absente == 'oui' %} marquage patient présent {% elseif v.operation == 'waiting' and v.olddata.attente == 'non' %} marquage patient présent en salle d'attente {% elseif v.operation == 'waiting' and v.olddata.attente == 'oui' %} retrait présence en salle d'attente {% elseif v.operation == 'edit' %} édition {% elseif v.operation == 'move' %} déplacement / changement de durée {% elseif v.operation == 'delete' %} suppression {% else %} {{ v.operation }} {% endif %} #{{ v.fromID }} {{ v.auteurPrenom }} {{ v.auteurNom }}
{% else %}
{% for k,v in page.rdv %} {% if k == 0 %}
Donné actuel du rendez-vous

Données actuelles présente dans l'agenda

Statut {% if v.statut == 'actif' %}rdv actif{% else %}rdv supprimé{% endif %}
Créé le {{ v.date }}
Auteur #{{ v.fromID }} {{ v.auteurPrenom }} {{ v.auteurNom }}
Date de début {{ v.start }}
Date de fin {{ v.end }}
Durée {{ v.duree }} minutes
Patient #{{ v.patientID }} {{ v.patientPrenom }} {{ v.patientNom }}
Type de rdv {{ v.type }}
Motif rdv {{ v.motif|e|nl2br }}
{% else %}
{% if v.operation is not defined %} Nouveau {% elseif v.operation == 'missing' and v.olddata.absente == 'non' %} Marquage patient absent {% elseif v.operation == 'missing' and v.olddata.absente == 'oui' %} Marquage patient présent {% elseif v.operation == 'waiting' and v.olddata.attente == 'non' %} Marquage patient présent en salle d'attente {% elseif v.operation == 'waiting' and v.olddata.attente == 'oui' %} Retrait présence en salle d'attente {% elseif v.operation == 'edit' %} Édition {% elseif v.operation == 'move' %} Déplacement / changement de durée {% elseif v.operation == 'delete' %} Suppression du rendez-vous {% else %} {{ v.operation }} {% endif %}

Données sur l'action effectuée

{% if v.olddata.start != v.newdata.start %} {% endif %} {% if v.olddata.end != v.newdata.end %} {% endif %} {% if v.olddata.type != v.newdata.type %} {% endif %} {% if v.olddata.motif != v.newdata.motif %} {% endif %}
Effectuée le {{ v.date }}
Auteur #{{ v.fromID }} {{ v.auteurPrenom }} {{ v.auteurNom }}
Modification date de début Initiallement : {{ v.olddata.start }} Modifié pour : {{ v.newdata.start }}
Modification date de fin Initiallement : {{ v.olddata.end }} Modifié pour : {{ v.newdata.end }}
Modification du type de consultation Initiallement : {{ v.olddata.type }} Modifié pour : {{ v.newdata.type }}
Modification du motif de consultation Initiallement :
{{ v.olddata.motif|e|nl2br }}
Modifié pour :
{{ v.newdata.motif|e|nl2br }}
{% endif %} {% endfor %}
{% endif %} {% endblock %}