{% load url from future %} {% load apptags %} Imprimer
{% for appointment in ressource_agenda.appointments %}

{{ appointment.begin_hour }} {% if appointment.title %}{{ appointment.title }}{% endif %} {% if appointment.length %}{{ appointment.length }} min {% endif %} {% if appointment.act_type %}{{ appointment.act_type }}{% endif %} {% if appointment.len_workers > 4 %} {% if appointment.workers_absent %}{% endif %} {{ appointment.len_workers }} inter. {% if appointment.workers_absent %}{% endif %} {% else %} {% if appointment.workers %} {% for worker in appointment.workers %} {% if worker in appointment.workers_absent %}{% endif %} {{ worker.worker.initials }}{% if not forloop.last %} {% endif %} {% if worker in appointment.workers_absent %}{% endif %} {% endfor %} {% endif %} {% endif %} {% for service_name in appointment.other_services_names %} {% endfor %} {% if appointment.event_id %} {% if appointment.is_recurrent %} R {% endif %} {% if service in appointment.services_names %} {% if appointment.patient_record_id %} {% else %} {% endif %} {% endif %}

{% if appointment.type == 'free' %} {% endif %} {% if appointment.event_id %} {% if appointment.workers %}

Intervenants : {% for worker in appointment.workers %} {{ worker.first_name }} {{ worker.last_name }}{% if forloop.last %}.{% else %}, {% endif %} {% endfor %}

{% if appointment.patient.mobile %} {{ appointment.patient.mobile }} {% endif %} {% if appointment.patient.phone %} {{ appointment.patient.phone }} {% endif %} {% for address in appointment.patient.addresses.all %} {% if address.place_of_life %} {% if address.phone %}{{ address.phone }}{% endif %} {% for contact in address.patientcontact_set.all %} {% if contact.id != appointment.patient.id %} {% if contact.mobile %}{{ contact.mobile }}{% endif %} {% if contact.phone %}{{ contact.phone }}{% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %}

{% endif %} {% endif %} {% if appointment.patient_record_id %} Dossier patient - Prochains rendez-vous - Courrier {% endif %} {% if appointment.validation %}
{% if appointment.validation.1 %}{{ appointment.validation.2 }}, le {{ appointment.validation.1.created }} par {{ appointment.validation.1.author }} {% if appointment.validation.1.auto %}(par validation automatique){% endif %}. {% if appointment.validation.0.is_billed %}Acte facturé{% endif %} {% else %} Non pointé. {% endif %}
{% endif %} {% if not appointment.validation.0.validation_locked and appointment.validation.3 %}
{% csrf_token %}
{% endif %} {% if service in appointment.services_names %}
{% else %}

{{ appointment.description }}

{% endif %}
{% endfor %}