Project

General

Profile

Download (4.02 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / dossiers / templates / dossiers / index.html @ f3407c83

1
{% extends "dossiers/base.html" %}
2
{% load url from future %}
3

    
4
{% block appbar %}
5
    <h2>Dossiers</h2>
6
    <a href="../..">Retourner à l'accueil</a>
7
    <button id="new-dossier">Nouveau dossier</button>
8
    <span>
9
      Dossiers: <span class="num">{{ stats.dossiers }}</span> -
10
      En contact: <span class="num">{{ stats.En_contact }}</span> - 
11
      Fin d'accueil: <span class="num">{{ stats.Fin_daccueil }}</span> -
12
      En diagnostic: <span class="num">{{ stats.Diagnostic }}</span> - 
13
      En traitement: <span class="num">{{ stats.Traitement }}</span> - 
14
      Clos: <span class="num">{{ stats.Clos }}</span>
15
    </span>
16
        <br>
17
        <br>&nbsp;
18
    </span>
19
{% endblock %}
20

    
21
{% block content %}
22
<div id="sidebar">
23
  <div>
24
    <form>
25
    <h3>Rechercher dans les dossiers</h3>
26
        <label>Nom <input name="last_name" type="text" value="{{ request.GET.last_name }}"></label>
27
        <label>Prénom <input name="first_name" type="text" value="{{ request.GET.first_name }}"></label>
28
        <label>Numéro de dossier <input name="paper_id" type="text" value="{{ request.GET.id }}"></label>
29
        <label>Numéro d'assuré social <input name="social_security_id" value="{{ request.GET.social_security_id }}" type="text"></label>
30
    <button id="search">Rechercher</button>
31
    <p id="search-results" style="display: none; "></p>
32
  </div>
33
  <div id="filtre">
34
    <h3>Filtres sur l'état</h3>
35
    {{ search_form.states }}
36
    <button id="btn_all_state" type="button">Tous</button>
37
    <button id="btn_none_state" type="button">Aucun</button>
38
    <h3>Afficher les dossiers</h3>
39
    <ul>
40
      <li><button>En pause facturation</button></li>
41
      <li><button>Une prolongation est nécessaire</button></li>
42
      <li><button>Prise en charge arrivant à expiration</button></li>
43
      <li><button>Prise en charge manquante ou expirée</button></li>
44
      <li><button>Eligibles pour un rediagnostic</button></li>
45
    </ul>
46
    </form>
47
  </div>
48
</div>
49
<div class="content">
50
  <table id="dossiers" class="main">
51
    <thead>
52
      <tr>
53
        <th colspan="2">N° dossier
54
        </th><th rowspan="2">Nom</th>
55
        <th rowspan="2">Prénom</th>
56
        <th rowspan="2">Date de naissance</th>
57
        <th rowspan="2">État du dossier</th>
58
        <th rowspan="2"><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></th>
59
        <th rowspan="2">Dernier acte</th>
60
        <th rowspan="2">Prochain rendez-vous</th>
61
      </tr>
62
      <tr>
63
        <th>papier</th>
64
        <th>inform.</th>
65
      </tr>
66
    </thead>
67
    <tbody>
68

    
69
      {% for patient_record in patient_records %}
70
      <tr>
71
        <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
72
        <td>{{ patient_record.object.id }}</td>
73
        <td>{{ patient_record.object.last_name }}</td>
74
        <td>{{ patient_record.object.first_name }}</td>
75
        <td>{{ patient_record.object.birthdate|date:"d/m/Y" }}</td>
76
        <td>{{ patient_record.state }}</td>
77
        <td></td>
78
        <td>
79
            {% if patient_record.last_rdv %}
80
            {{ patient_record.last_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
81
            {% for participant in patient_record.last_rdv.participants %}
82
            {{ participant.last_name }} - 
83
            {% endfor %}
84
            {{ patient_record.last_rdv.act_type }}
85
            {% endif %}
86
        </td>
87
        <td>
88
            {% if patient_record.next_rdv %}
89
            {{ patient_record.next_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
90
            {% for participant in patient_record.next_rdv.participants %}
91
            {{ participant.last_name }} - 
92
            {% endfor %}
93
            {{ patient_record.next_rdv.act_type }}
94
            {% endif %}
95
        </td>
96
      </tr>
97
      {% endfor %}
98

    
99

    
100
    </tbody>
101
  </table>
102

    
103
  {% if not request.GET %}
104
  <div class="big-msg-info">
105
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
106
    les dossiers correspondants.
107
  </div>
108
  {% elif not patient_records %}
109
  <div>Pas de résultat pour votre recherche</div>
110
  {% endif %}
111

    
112
</div>
113
{% endblock %}
114

    
(2-2/6)