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>
|
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
|
{% if request.GET %}
|
31
|
<div class="search-reset">
|
32
|
<button id="search">Rechercher</button>
|
33
|
<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
|
<p id="search-results" style="display: none; "></p>
|
39
|
</div>
|
40
|
<div id="filtre">
|
41
|
<h3>Filtres sur l'état</h3>
|
42
|
{{ search_form.states }}
|
43
|
<button id="btn_all_state">Tous</button>
|
44
|
<button id="btn_none_state">Aucun</button>
|
45
|
<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
|
</form>
|
54
|
</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
|
{% for patient_record in patient_records %}
|
77
|
<tr style="display: table-row;" class="pr-line {{ patient_record.state_class }}" data-link="{{ patient_record.object.id }}/view">
|
78
|
<td>{{ patient_record.object.paper_id|default_if_none:"" }}</td>
|
79
|
<td>{{ patient_record.object.id }}</td>
|
80
|
<td><span class="lastname">{{ patient_record.object.last_name }}</span></td>
|
81
|
<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
|
<td>{% if patient_record.object.pause %}F{% endif %}</td>
|
85
|
<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
|
<span class="lastname">{{ participant.last_name }}</span> -
|
90
|
{% 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
|
<span class="lastname">{{ participant.last_name }}</span> -
|
99
|
{% endfor %}
|
100
|
{{ patient_record.next_rdv.act_type }}
|
101
|
{% endif %}
|
102
|
</td>
|
103
|
</tr>
|
104
|
{% endfor %}
|
105
|
|
106
|
|
107
|
</tbody>
|
108
|
</table>
|
109
|
|
110
|
{% if not request.GET %}
|
111
|
<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
|
{% elif not patient_records %}
|
116
|
<div>Pas de résultat pour votre recherche</div>
|
117
|
{% endif %}
|
118
|
|
119
|
</div>
|
120
|
{% endblock %}
|
121
|
|
122
|
{% 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 %}
|