{% load url from future %} {% load apptags %}

Rendez-vous périodiques

{% for appointment in worker_agenda.appointments %}

{{ appointment.begin_hour }} {% if appointment.length %}{% if appointment.length|str_length_lt:3 %} {% endif %}{{ appointment.length }} min{% endif %} {% if appointment.title %} {{ appointment.title }} {% if appointment.timetable_type and appointment.other_services_names %} {% if appointment.timetable_type == 'arrival' %} dans le{{appointment.other_services_names|pluralize}} {% else %} d{{appointment.other_services_names|pluralize:'u,es'}} {% endif %} service{{ appointment.other_services_names|pluralize }} {% for service_name in appointment.other_services_names %} {{ service_name }}{% if not forloop.last %},{% endif %} {% endfor %} {% endif %} {% endif %} {% if appointment.patient.paper_id %} {{ appointment.patient.paper_id }} {% 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 %} {% if appointment.act_type %}{{ appointment.act_type|trunc_act_type }}{% endif %} {% if appointment.ressource %}{{ appointment.ressource }}{% endif %} {% if appointment.is_recurrent %} {% if appointment.patient.periodic_appointment_transport %} {% endif %} {% elif appointment.patient.simple_appointment_transport %} {% endif %} {% if appointment.workers_absent %} {% endif %} {% if appointment.timetable_type %} {% else %} {% for service_name in appointment.other_services_names %} {% endfor %} {% endif %} {% if appointment.event_id %} {% if appointment.is_recurrent %} R {% endif %} {% if appointment.patient.confidential %} {% endif %} {% if appointment.convocation_sent %} {% endif %} {% else %} {% endif %} {% endif %} {% endif %}

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

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

{% endif %} {% endif %} {% if appointment.patient_record_id %}

{% 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 %}

Dossier patient - Prochains rendez-vous {% if mail %}- Courrier{% endif %} {% endif %} {% if appointment.validation %}
{% if appointment.validation.1 %}{{ appointment.validation.2 }} {% if appointment.validation.0.is_billed %}Acte facturé{% endif %} {% else %} Non pointé. {% endif %} {% if not appointment.validation.0.validation_locked and appointment.validation.3 %}
{% csrf_token %}
{% endif %}
{% endif %} {% if appointment.event_id %}
{% if service in appointment.services_names or not appointment.services_names %} {% else %}

{{ appointment.description }}

{% endif %}
{% else %} {% if appointment.description %}

{{ appointment.description }}

{% endif %} {% endif %}
{% endfor %}