Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / index.html @ 43a5b181

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-patientrecord">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
    <div id="extra-top-links">
19
     <a href="quotations">Listing avec quotations</a>
20
    </div>
21
    </span>
22
{% endblock %}
23

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

    
80
      {% for patient_record in patient_records %}
81
      <tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
82
          <td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
83
          <td>{{ patient_record.object.id }}</td>
84
          <td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
85
          <td>{{ patient_record.object.first_name }}</td>
86
          <td>{{ patient_record.object.birthdate|date:"d/m/Y" }}</td>
87
          <td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
88
          <td>{% if patient_record.object.pause %}F{% endif %}</td>
89
          <td>
90
              {% if patient_record.last_rdv %}
91
              {{ patient_record.last_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
92
              {% for participant in patient_record.last_rdv.participants %}
93
              <span class="lastname">{{ participant.last_name }}</span> -
94
              {% endfor %}
95
              {{ patient_record.last_rdv.act_type }}
96
              {% endif %}
97
          </td>
98
          <td>
99
              {% if patient_record.next_rdv %}
100
              {{ patient_record.next_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
101
              {% for participant in patient_record.next_rdv.participants %}
102
              <span class="lastname">{{ participant.last_name }}</span> -
103
              {% endfor %}
104
              {{ patient_record.next_rdv.act_type }}
105
              {% endif %}
106
          </td>
107
      </tr>
108
      {% endfor %}
109

    
110

    
111
    </tbody>
112
  </table>
113

    
114
{% if request.GET %}
115
<div class="pagination">
116
    <span class="step-links">
117
        {% if patient_records.has_previous %}
118
            <a href="?{{ query }}&page={{ patient_records.previous_page_number }}">««</a>
119
        {% endif %}
120

    
121
        <span class="current">
122
            page {{ patient_records.number }} de {{ patient_records.paginator.num_pages }}
123
        </span>
124

    
125
        {% if patient_records.has_next %}
126
            <a href="?{{ query }}&page={{ patient_records.next_page_number }}">»»</a>
127
        {% endif %}
128
    </span>
129
</div>
130
{% endif %}
131

    
132

    
133
  {% if not request.GET %}
134
  <div class="big-msg-info">
135
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
136
    les dossiers correspondants.
137
  </div>
138
  {% elif not patient_records %}
139
  <div>Pas de résultat pour votre recherche</div>
140
  {% endif %}
141

    
142
</div>
143
{% endblock %}
144

    
145
{% block dialogs %}
146
  <div id="dossier-dlg" style="display: none;">
147

    
148
  <div id="homonyms" style="display: none;">
149
   <p>Attention, il existe des homonymes; cliquez sur le bouton pour consulter
150
      le dossier correspondant. Si vous voulez confirmer la création d'un nouveau
151
      dossier, cliquez sur le bouton 'Ajouter'.</p>
152
   <button>Doe James</button><br/>
153
   <button>Doe Dolassaumure</button>
154
  </div>
155
  </div>
156
{% endblock %}
(5-5/19)