1 |
c20d5459
|
Jérôme Schneider
|
{% 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 |
554289d5
|
Jérôme Schneider
|
<button id="new-patientrecord">Nouveau dossier</button>
|
8 |
f3407c83
|
Jérôme Schneider
|
<span>
|
9 |
|
|
Dossiers: <span class="num">{{ stats.dossiers }}</span> -
|
10 |
42644a0a
|
Mikaël Ates
|
En contact: <span class="num">{{ stats.En_contact }}</span> -
|
11 |
f3407c83
|
Jérôme Schneider
|
Fin d'accueil: <span class="num">{{ stats.Fin_daccueil }}</span> -
|
12 |
42644a0a
|
Mikaël Ates
|
En diagnostic: <span class="num">{{ stats.Diagnostic }}</span> -
|
13 |
|
|
En traitement: <span class="num">{{ stats.Traitement }}</span> -
|
14 |
f3407c83
|
Jérôme Schneider
|
Clos: <span class="num">{{ stats.Clos }}</span>
|
15 |
|
|
</span>
|
16 |
c20d5459
|
Jérôme Schneider
|
<br>
|
17 |
|
|
<br>
|
18 |
|
|
</span>
|
19 |
|
|
{% endblock %}
|
20 |
|
|
|
21 |
|
|
{% block content %}
|
22 |
|
|
<div id="sidebar">
|
23 |
|
|
<div>
|
24 |
562586fb
|
Jérôme Schneider
|
<form>
|
25 |
8e6fe119
|
Jérôme Schneider
|
<h3>Rechercher dans les dossiers</h3>
|
26 |
562586fb
|
Jérôme Schneider
|
<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 |
10fa2da0
|
Frédéric Péters
|
{% if request.GET %}
|
31 |
|
|
<div class="search-reset">
|
32 |
c20d5459
|
Jérôme Schneider
|
<button id="search">Rechercher</button>
|
33 |
10fa2da0
|
Frédéric Péters
|
<button id="reset"><img src="{{ STATIC_URL }}/images/edit-clear-all-symbolic.png" alt="Réinitialiser"/></button>
|
34 |
|
|
</div>
|
35 |
|
|
{% else %}
|
36 |
|
|
<button id="search">Rechercher</button>
|
37 |
|
|
{% endif %}
|
38 |
562586fb
|
Jérôme Schneider
|
<p id="search-results" style="display: none; "></p>
|
39 |
c20d5459
|
Jérôme Schneider
|
</div>
|
40 |
|
|
<div id="filtre">
|
41 |
|
|
<h3>Filtres sur l'état</h3>
|
42 |
d994547b
|
Jérôme Schneider
|
{{ search_form.states }}
|
43 |
348bd1f9
|
Jérôme Schneider
|
<button id="btn_all_state">Tous</button>
|
44 |
|
|
<button id="btn_none_state">Aucun</button>
|
45 |
c20d5459
|
Jérôme Schneider
|
<h3>Afficher les dossiers</h3>
|
46 |
|
|
<ul>
|
47 |
|
|
<li><button>En pause facturation</button></li>
|
48 |
|
|
<li><button>Une prolongation est nécessaire</button></li>
|
49 |
|
|
<li><button>Prise en charge arrivant à expiration</button></li>
|
50 |
|
|
<li><button>Prise en charge manquante ou expirée</button></li>
|
51 |
|
|
<li><button>Eligibles pour un rediagnostic</button></li>
|
52 |
|
|
</ul>
|
53 |
8e6fe119
|
Jérôme Schneider
|
</form>
|
54 |
c20d5459
|
Jérôme Schneider
|
</div>
|
55 |
|
|
</div>
|
56 |
|
|
<div class="content">
|
57 |
|
|
<table id="dossiers" class="main">
|
58 |
|
|
<thead>
|
59 |
|
|
<tr>
|
60 |
|
|
<th colspan="2">N° dossier
|
61 |
|
|
</th><th rowspan="2">Nom</th>
|
62 |
|
|
<th rowspan="2">Prénom</th>
|
63 |
|
|
<th rowspan="2">Date de naissance</th>
|
64 |
|
|
<th rowspan="2">État du dossier</th>
|
65 |
|
|
<th rowspan="2"><span title="Information à propos de la prise en charge">I</span> / <span title="Dossier en pause facturation">F</span></th>
|
66 |
|
|
<th rowspan="2">Dernier acte</th>
|
67 |
|
|
<th rowspan="2">Prochain rendez-vous</th>
|
68 |
|
|
</tr>
|
69 |
|
|
<tr>
|
70 |
|
|
<th>papier</th>
|
71 |
|
|
<th>inform.</th>
|
72 |
|
|
</tr>
|
73 |
|
|
</thead>
|
74 |
|
|
<tbody>
|
75 |
|
|
|
76 |
562586fb
|
Jérôme Schneider
|
{% for patient_record in patient_records %}
|
77 |
f78e473c
|
Jérôme Schneider
|
<tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
|
78 |
066f587e
|
Jérôme Schneider
|
<td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
|
79 |
|
|
<td>{{ patient_record.object.id }}</td>
|
80 |
26c60057
|
Frédéric Péters
|
<td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
|
81 |
066f587e
|
Jérôme Schneider
|
<td>{{ patient_record.object.first_name }}</td>
|
82 |
|
|
<td>{{ patient_record.object.birthdate|date:"d/m/Y" }}</td>
|
83 |
|
|
<td class="{{ patient_record.state_class }}">{{ patient_record.state }}</td>
|
84 |
42644a0a
|
Mikaël Ates
|
<td>{% if patient_record.object.pause %}F{% endif %}</td>
|
85 |
066f587e
|
Jérôme Schneider
|
<td>
|
86 |
|
|
{% if patient_record.last_rdv %}
|
87 |
|
|
{{ patient_record.last_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
|
88 |
|
|
{% for participant in patient_record.last_rdv.participants %}
|
89 |
26c60057
|
Frédéric Péters
|
<span class="lastname">{{ participant.last_name }}</span> -
|
90 |
066f587e
|
Jérôme Schneider
|
{% endfor %}
|
91 |
|
|
{{ patient_record.last_rdv.act_type }}
|
92 |
|
|
{% endif %}
|
93 |
|
|
</td>
|
94 |
|
|
<td>
|
95 |
|
|
{% if patient_record.next_rdv %}
|
96 |
|
|
{{ patient_record.next_rdv.start_datetime|date:"d/m/Y h:i" }}<br>
|
97 |
|
|
{% for participant in patient_record.next_rdv.participants %}
|
98 |
26c60057
|
Frédéric Péters
|
<span class="lastname">{{ participant.last_name }}</span> -
|
99 |
066f587e
|
Jérôme Schneider
|
{% endfor %}
|
100 |
|
|
{{ patient_record.next_rdv.act_type }}
|
101 |
|
|
{% endif %}
|
102 |
|
|
</td>
|
103 |
c20d5459
|
Jérôme Schneider
|
</tr>
|
104 |
562586fb
|
Jérôme Schneider
|
{% endfor %}
|
105 |
c20d5459
|
Jérôme Schneider
|
|
106 |
|
|
|
107 |
|
|
</tbody>
|
108 |
|
|
</table>
|
109 |
|
|
|
110 |
562586fb
|
Jérôme Schneider
|
{% if not request.GET %}
|
111 |
c20d5459
|
Jérôme Schneider
|
<div class="big-msg-info">
|
112 |
|
|
Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher
|
113 |
|
|
les dossiers correspondants.
|
114 |
|
|
</div>
|
115 |
562586fb
|
Jérôme Schneider
|
{% elif not patient_records %}
|
116 |
|
|
<div>Pas de résultat pour votre recherche</div>
|
117 |
|
|
{% endif %}
|
118 |
c20d5459
|
Jérôme Schneider
|
|
119 |
|
|
</div>
|
120 |
|
|
{% endblock %}
|
121 |
|
|
|
122 |
554289d5
|
Jérôme Schneider
|
{% block dialogs %}
|
123 |
|
|
<div id="dossier-dlg" style="display: none;">
|
124 |
|
|
|
125 |
|
|
<div id="homonyms" style="display: none;">
|
126 |
|
|
<p>Attention, il existe des homonymes; cliquez sur le bouton pour consulter
|
127 |
|
|
le dossier correspondant. Si vous voulez confirmer la création d'un nouveau
|
128 |
|
|
dossier, cliquez sur le bouton 'Ajouter'.</p>
|
129 |
|
|
<button>Doe James</button><br/>
|
130 |
|
|
<button>Doe Dolassaumure</button>
|
131 |
|
|
</div>
|
132 |
|
|
</div>
|
133 |
|
|
{% endblock %}
|