Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_update.html @ b9d6c60c

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

    
4
{% block extrascripts %}
5
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}filter-widget/css/filter-widget.css"/>
6
<script src="{{ STATIC_URL }}js/jquery.parse-url.js"></script>
7
<script src="{{ STATIC_URL }}js/calebasse.dossiers.js"></script>
8
<script src="{{ STATIC_URL }}filter-widget/js/i18n.js"></script>
9
<script src="{{ STATIC_URL }}filter-widget/js/core.js"></script>
10
<script src="{{ STATIC_URL }}filter-widget/js/SelectBox.js"></script>
11
<script src="{{ STATIC_URL }}filter-widget/js/SelectFilter2.js"></script>
12
{% endblock %}
13

    
14
{% block title %}{{ object.last_name }} {{ object.first_name }} - Dossier {{ object.paper_id|default_if_none:"" }}{% endblock %}
15

    
16
{% block appbar %}
17
<h2><span class="lastname">{{ object.last_name }}</span> {{ object.first_name }} - Dossier {{ object.paper_id|default_if_none:"" }}</h2>
18
<span id="ajax-redirect" data-url="{{ object.id }}/view"/>
19
<a href="..">Retourner aux dossiers</a>
20
{% if 'validator' in role %}{% if object.can_be_deleted %}<button type="button" id="patientrecord-delete">Supprimer</button>{% endif %}{% endif %}
21
{% endblock %}
22

    
23
{% block content %}
24

    
25
{% if messages %}
26
<ul class="messages">
27
    {% for message in messages %}
28
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
29
    {% endfor %}
30
</ul>
31
<script type="text/javascript">
32
$('.messages').delay(1000*(1+{{ messages|length }})).fadeOut('slow');
33
</script>
34
{% endif %}
35

    
36
<div id="tabs">
37
  <ul>
38
    <li><a data-id="0" class="atabs" href="#tabs-1">Général</a></li>
39
    <li><a data-id="1" class="atabs" href="#tabs-2">Fiche administrative</a></li>
40
    <li><a data-id="2" class="atabs" href="#tabs-3">Adresses / contacts</a></li>
41
    {% if object.service.name == "CMPP" %}
42
    <li><a data-id="3"  class="atabs" href="#tabs-4">Prise en charge</a></li>
43
    {% elif object.service.name == "SESSAD TED" or object.service.name == "SESSAD DYS" %}
44
    <li><a data-id="3" class="atabs" href="#tabs-4">Notifications</a></li>
45
    {% else %}
46
    <li style="display: none;"><a data-id="3" class="atabs" href="#tabs-4">Notifications</a></li>
47
    {% endif %}
48
    <li><a data-id="4" class="atabs" href="#tabs-5">Actes passés</a>
49
    <li><a data-id="5" class="atabs" href="#tabs-6">Prochains rendez-vous</a>
50
    <li><a data-id="6" class="atabs" href="#tabs-7">Socialisation</a>
51
    <li><a data-id="7" class="atabs" href="#tabs-8">Données à caractère médical</a>
52
  </ul>
53
  <div id="tabs-1"> <!-- Général -->
54
      {% include "dossiers/patientrecord_tab1.html" %}
55
  </div>
56

    
57
  <div id="tabs-2"> <!-- Fiche administrative -->
58
      {% include "dossiers/patientrecord_tab2.html" %}
59
  </div>
60

    
61
    <div id="tabs-3"> <!-- Adresses / Contacts -->
62
    <form method="post" id="policyholder-form" class="patientrecordform">{% csrf_token %}
63

    
64
            <div class="contact patient">
65
                <h4>{{ object.first_name }} <span class="lastname">{{ object.last_name }}</span> (Patient)</h4>
66
                <div class="right">Assuré
67
                    <input type="radio"
68
                    {% if object.policyholder.id == object.id %} checked="checked" {% endif %}
69
                    id="id_policyholder-policyholder_{{ object.id }}"
70
                    value="{{ object.id }}"
71
                    class="policyholder-radio"
72
                    name="policyholder-policyholder">
73
                    <button type="button" data-id="{{ object.id }}" class="update-contact-btn icon-edit" title="Modifier"></button>
74
                </div>
75
                <div>
76
                    <ul>
77
                        {% if object.parente %}
78
                            <li><label>Lien avec le patient :</label>
79
                            {{ object.parente }}</li>
80
                        {% endif %}
81
                        {% if object.mobile %}
82
                            <li>
83
                            <span class="icon-user-space">{{ object.mobile }} (perso)</span>
84
                            </li>
85
                        {% endif %}
86
                        {% if object.phone %}
87
                            <li>
88
                            <span class="icon-user-space">{{ object.phone }} (pro)</span>
89
                            </li>
90
                        {% endif %}
91
                        {% if object.email %}
92
                            <li>
93
                            <label>Courriel :</label>
94
                            {{ object.email }}
95
                            </li>
96
                        {% endif %}
97
                        {% if object.job %}
98
                            <li>
99
                            <label>Profession :</label>
100
                            {{ object.job }}
101
                            </li>
102
                        {% endif %}
103
                        {% if object.contact_comment %}
104
                            <li>
105
                            <label>Commentaire :</label>
106
                            {{ object.contact_comment }}
107
                            </li>
108
                        {% endif %}
109
                        <li><label>Données d'assuré social</label>
110
<!--                            <button class="blind">détails</button>-->
111
                            <ul>
112
                            {% if object.social_security_id %}
113
                                <li><label>Numéro d'assuré social :</label>
114
                                {{ object.social_security_id }} {{ object.get_control_key }}</li>
115
                            {% endif %}
116
                            {% if object.birthdate %}
117
                                <li><label>Date de naissance :</label>
118
                                {{ object.birthdate }}</li>
119
                            {% endif %}
120
                            {% if object.birthplace %}
121
                                <li><label>Lieu de naissance :</label>
122
                                {{ object.birthplace }}</li>
123
                            {% endif %}
124
                            {% if object.begin_rights %}
125
                                <li><label>Début de droits :</label>
126
                                {{ object.begin_rights }}</li>
127
                            {% endif %}
128
                            {% if object.end_rights %}
129
                                <li><label>Fin de droits :</label>
130
                                {{ object.end_rights }}</li>
131
                            {% endif %}
132
                            {% if object.health_center %}
133
                                <li><label>Caisse :</label>
134
                                {{ object.health_center }}</li>
135
                            {% endif %}
136
                            {% if object.other_health_center %}
137
                                <li><label>Centre spécifique :</label>
138
                                {{ object.other_health_center }}</li>
139
                            {% endif %}
140
                            <li><label>Tiers-payant :</label>
141
                                {% if object.thirdparty_payer %}
142
                                    Oui
143
                                {% else %}
144
                                    Non
145
                                {% endif %}
146
                            </li>
147
                            {% if object.twinning_rank %}
148
                                <li><label>Rang (gémellité) :</label>
149
                                {{ object.twinning_rank }}</li>
150
                            {% endif %}
151
                            </ul>
152
                        </li>
153
                    </ul>
154
                </div>
155
            </div>
156

    
157
        <button type="button" id="new-address-btn">Nouvelle adresse</button>
158
        <button type="button" id="new-contact-btn">Nouveau contact</button>
159

    
160
        {% for address in object.addresses.all %}
161
        <div class="frame">
162
            <h3>{% if not address.display_name %}Non renseigné{% else %}{{ address.display_name }}{% endif %}</h3>
163
            <div class="buttons">
164
                <button type="button" data-id="{{ address.id }}" class="del-address icon-minus" title="Supprimer"></button>
165
                <button type="button" data-id="{{ address.id }}" class="update-address-btn icon-edit" title="Modifier"></button>
166
            </div>
167
            <div class="right">
168
                <input type="checkbox" data-id="{{ address.id }}" class="place_of_life" {% if address.place_of_life %}checked{% endif %}>Lieu de vie</input>
169
            </div>
170
            {% if address.phone %}<p><span class="icon-home-space">{{ address.phone }}</span></p>{% endif %}
171
            {% if address.comment %}<p><label>Commentaire :</label>{{ address.comment }}</p>{% endif %}
172
            {% if not address.phone and not address.comment %}<p>&nbsp;<!-- intentionaly empty --></p>{% endif %}
173
            {% for contact in address.patientcontact_set.all  %}
174
            {% if contact.id != object.id %}
175
            <div class="contact{% if contact.id == object.id %} patient{% endif %}">
176
                <h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}
177
                    {{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4>
178
                <div class="right">Assuré
179
                    <input type="radio"
180
                    {% if object.policyholder.id == contact.id %} checked="checked" {% endif %}
181
                    id="id_policyholder-policyholder_{{ contact.id }}"
182
                    value="{{ contact.id }}"
183
                    class="policyholder-radio"
184
                    name="policyholder-policyholder">
185
                    <button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button>
186
                    <button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button>
187
                </div>
188
                <div>
189
                    <ul>
190
                        {% if contact.parente %}
191
                            <li><label>Lien avec le patient :</label>
192
                            {{ contact.parente }}</li>
193
                        {% endif %}
194
                        {% if contact.mobile %}
195
                            <li>
196
                            <span class="icon-user-space">{{ contact.mobile }} (perso)</span>
197
                            </li>
198
                        {% endif %}
199
                        {% if contact.phone %}
200
                            <li>
201
                            <span class="icon-user-space">{{ contact.phone }} (pro)</span>
202
                            </li>
203
                        {% endif %}
204
                        {% if contact.email %}
205
                            <li>
206
                            <label>Courriel :</label>
207
                            {{ contact.email }}
208
                            </li>
209
                        {% endif %}
210
                        {% if contact.job %}
211
                            <li>
212
                            <label>Profession :</label>
213
                            {{ contact.job }}
214
                            </li>
215
                        {% endif %}
216
                        {% if contact.contact_comment %}
217
                            <li>
218
                            <label>Commentaire :</label>
219
                            {{ contact.contact_comment }}
220
                            </li>
221
                        {% endif %}
222
                        <li><label>Données d'assuré social</label>
223
<!--                            <button class="blind">détails</button>-->
224
                            <ul>
225
                            {% if contact.social_security_id %}
226
                                <li><label>Numéro d'assuré social :</label>
227
                                {{ contact.social_security_id }} {{ contact.get_control_key }}</li>
228
                            {% endif %}
229
                            {% if contact.birthdate %}
230
                                <li><label>Date de naissance :</label>
231
                                {{ contact.birthdate }}</li>
232
                            {% endif %}
233
                            {% if contact.birthplace %}
234
                                <li><label>Lieu de naissance :</label>
235
                                {{ contact.birthplace }}</li>
236
                            {% endif %}
237
                            {% if contact.begin_rights %}
238
                                <li><label>Début de droits :</label>
239
                                {{ contact.begin_rights }}</li>
240
                            {% endif %}
241
                            {% if contact.end_rights %}
242
                                <li><label>Fin de droits :</label>
243
                                {{ contact.end_rights }}</li>
244
                            {% endif %}
245
                            {% if contact.health_center %}
246
                                <li><label>Centre de santé :</label>
247
                                {{ contact.health_center }}</li>
248
                            {% endif %}
249
                            <li><label>Tiers-payant :</label>
250
                                {% if contact.thirdparty_payer %}
251
                                    Oui
252
                                {% else %}
253
                                    Non
254
                                {% endif %}
255
                            </li>
256
                            {% if contact.twinning_rank %}
257
                                <li><label>Rang (gémellité) :</label>
258
                                {{ contact.twinning_rank }}</li>
259
                            {% endif %}
260
                            </ul>
261
                        </li>
262
                    </ul>
263
                </div>
264
            </div>
265
            {% endif %}
266
            {% endfor %}
267
        </div>
268
        {% endfor %}
269
    </form>
270

    
271
    </div>
272

    
273
    <div id="tabs-4"> <!-- Prise en charge et notifications -->
274
    {% if object.service.name == "CMPP" %}
275
        <div class="notifs">
276
        <h4>Information sur la prise en charge</h4>
277
        <ul>
278
        <li><span{% if hc_status.1 %} id="highlight"{% endif %}>{{ hc_status.0 }}</span></li>
279
        {% if object.pause %}<li><span id="highlight">Le dossier est en pause facturation.</span></li>{% endif %}
280
        {% if missing_policy %}<li><span id="highlight">Informations d'assuré sociale manquantes.</span></li>{% endif %}
281
        </div>
282
        <p>
283
        <button id="new-hcdiag-btn">Nouvelle PC diagnostic</button>
284
        <button id="new-hctrait-btn">Nouvelle PC traitement</button>
285
        </p>
286
        {% if acts_losts %}
287
            <p><strong>{{ acts_losts|length }}</strong> actes facturables qui ne peuvent pas être facturés :
288
            <ul>
289
            {% for act in acts_losts %}
290
            <li>{{ act }}</li>
291
            {% endfor %}
292
            </ul></p>
293
        {% endif %}
294
        {% if acts_pause %}
295
            <p><strong>{{ acts_pause|length }}</strong> actes qui sont en pause :
296
            <ul>
297
            {% for act in acts_pause %}
298
            <li>{{ act }}</li>
299
            {% endfor %}
300
            </ul></p>
301
        {% endif %}
302
        {% if hcs %}
303
            {% for hc, acts in hcs %}
304
                {% if hc.cmpphealthcarediagnostic %}
305
                  <div id="patient-diag">
306
                    <div class="frame">
307
                    <div class="buttons">
308
                        <button type="button" data-id="{{ hc.id }}" class="del-hcdiag icon-minus" title="Supprimer"></button>
309
                        <button type="button" data-id="{{ hc.id }}" class="update-hcdiag-btn icon-edit" title="Modifier"></button>
310
                    </div>
311
                      <h3>Prise en charge de diagnostic, débutée le {{ hc.start_date }}</h3>
312
                      <ul>
313
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
314
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
315
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
316
                        {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
317
                        <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcarediagnostic.get_act_number }}</strong></li>
318
                        {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
319
                        <ul>
320
                          {% for act in acts %}
321
                          <li>{{ act }}</li>
322
                          {% endfor %}
323
                        </ul>
324
                        {% endif %}
325
                        {% if hc.get_nb_acts_cared %}
326
                        <li><strong>{{ hc.get_nb_acts_cared }}</strong> actes déja facturés :</li>
327
                        <ul>
328
                          {% for act in hc.act_set.all %}
329
                          <li>{{ act }}</li>
330
                          {% endfor %}
331
                        </ul>
332
                        {% else %}<li>Aucun acte facturé.</li>
333
                        {% endif %}
334
                      </ul>
335
                    </div>
336
                  </div>
337
                {% else %}
338
                  <div id="patient-traitement">
339
                    <div class="frame">
340
                    <div class="buttons">
341
                        <button type="button" data-id="{{ hc.id }}" class="del-hctrait icon-minus" title="Supprimer"></button>
342
                        <button type="button" data-id="{{ hc.id }}" class="update-hctrait-btn icon-edit" title="Modifier"></button>
343
                    </div>
344
                      <h3>Prise en charge de traitement, débutée le {{ hc.start_date }}{% if hc.end_date %}, se terminant le {{ hc.end_date }}{% endif %}</h3>
345
                      <ul>
346
                        {% if hc.cmpphealthcaretreatment.end_date %}<li><label>Date de fin</label> : {{ hc.cmpphealthcaretreatment.end_date }}</li>{% endif %}
347
                        {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
348
                        {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
349
                        {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
350
                        {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
351
                        <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcaretreatment.get_act_number }}</strong></li>
352
                        {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
353
                        <ul>
354
                          {% for act in acts %}
355
                          <li>{{ act }}</li>
356
                          {% endfor %}
357
                        </ul>
358
                        {% endif %}
359
                        {% if hc.get_nb_acts_cared %}
360
                        <li><strong>{{ hc.get_nb_acts_cared }}</strong> actes déja facturés :</li>
361
                        <ul>
362
                          {% for act in hc.act_set.all %}
363
                          <li>{{ act }}</li>
364
                          {% endfor %}
365
                        </ul>
366
                        {% else %}<li>Aucun acte facturé.</li>
367
                        {% endif %}
368
                      </ul>
369
                    </div>
370
                  </div>
371
                {% endif %}
372
            {% endfor %}
373
        {% endif %}
374
    {% endif %}
375
    {% if object.service.name == "SESSAD TED" or object.service.name == "SESSAD DYS" %}
376
        <p>
377
        <button id="new-notification-btn">Nouvelle notification</button>
378
        </p>
379
        {% if hcs %}
380
            {% for hc in hcs %}
381
              <div id="patient-diag">
382
                <div class="frame">
383
                <div class="buttons">
384
                    <button type="button" data-id="{{ hc.id }}" class="del-notification icon-minus" title="Supprimer"></button>
385
                    <button type="button" data-id="{{ hc.id }}" class="update-notification-btn icon-edit" title="Modifier"></button>
386
                </div>
387
                  <h3>Notification</h3>
388
                  <ul>
389
                    {% if hc.start_date %}<li><label>Date de début</label> : {{ hc.start_date }}</li>{% endif %}
390
                    {% if hc.sessadhealthcarenotification.end_date %}<li><label>Date de fin</label> : {{ hc.sessadhealthcarenotification.end_date }}</li>{% endif %}
391
                    {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date }}</li>{% endif %}
392
                    {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date }}</li>{% endif %}
393
                    {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date }}</li>{% endif %}
394
                    {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
395
                  </ul>
396
                </div>
397
              </div>
398
            {% endfor %}
399
        {% endif %}
400
    {% endif %}
401
    </div>
402

    
403
    <div id="tabs-5"> <!-- Actes passés -->
404
    <table class="main">
405
      <thead>
406
          <tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
407
      </thead>
408
      <tbody>
409
        {% for act, state in last_rdvs %}
410
        <tr>
411
            <td>{{ act.date|date:"l d/m/y"|title }} {{ act.time|date:"H:i" }}</td>
412
          <td>{% if state %}<strong>{{ state }}</strong>{% else %}Non pointé.{% endif %}</td>
413
          <td>{{ act.act_type }}</td>
414
          <td>{% for doctor in act.doctors.all %}
415
            {{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
416
            {% endfor %}</td>
417
        </tr>
418
        {% endfor %}
419
      </tbody>
420
    </table>
421
    </div>
422

    
423
    <div id="tabs-6"> <!-- Prochains rendez-vous -->
424
    <table class="main">
425
      <thead>
426
          <tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> </tr>
427
      </thead>
428
      <tbody>
429
        {% for event, state in next_rdvs %}
430
        <tr>
431
          <td>{% firstof event.start_datetime|date:"l d/m/y H:i"|title %}</td>
432
          <td>{% if state %}<strong>{{ state }}</strong>{% else %}Non pointé.{% endif %}</td>
433
          <td>{{ event.act_type }}</td>
434
          <td>{% for doctor in event.participants.all %}
435
                {{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
436
                {% endfor %}</td>
437
        </tr>
438
        {% endfor %}
439
      </tbody>
440
    </table>
441
    </div>
442

    
443

    
444
    <div id="tabs-7">
445
        <div class="frame">
446
            <h3>Périodes de socialisation</h3>
447
            <p><button id="new-socialisation-duration-btn">Nouvelle période de socialisation</button></p>
448
            {% for duration in object.socialisation_durations.all %}
449
                <div class="subframe">
450
                Arrivée le <strong>{{ duration.start_date }}</strong> dans {% if duration.school %}l'établissement <strong>{{ duration.school }}</strong>{% else %}un établissement non renseigné{% endif %}{% if duration.level %} (en {{ duration.level }}){% endif %}
451
                <div class="buttons">
452
                    <button type="button" data-id="{{ duration.id }}" class="del-duration icon-minus" title="Supprimer"></button>
453
                    <button type="button" data-id="{{ duration.id }}" class="update-duration-btn icon-edit" title="Modifier"></button>
454
                </div>
455
                <div>
456
                    <ul>
457
                        {% if duration.end_date %}<li><label>Date de départ</label> : {{ duration.end_date }}</li>{% endif %}
458
                        {% if duration.comment %}<li><label>Commentaire</label> : {{ duration.comment }}</li>{% endif %}
459
                    </ul>
460
                </div>
461
                </div>
462
            {% endfor %}
463
        </div>
464

    
465
        <div class="frame">
466
            <h3>Demandes MDPH</h3>
467
            <p><button id="new-mdph-request-btn">Nouvelle demande MDPH</button></p>
468
            {% for request in object.mdph_requests.all %}
469
                <div class="subframe">
470
                Demande le <strong>{{ request.start_date }}</strong> à la MDPH <strong>{{ request.mdph }}</strong>
471
                <div class="buttons">
472
                    <button type="button" data-id="{{ request.id }}" class="del-mdph-request icon-minus" title="Supprimer"></button>
473
                    <button type="button" data-id="{{ request.id }}" class="update-mdph-request-btn icon-edit" title="Modifier"></button>
474
                </div>
475
                <div>
476
                    <ul>
477
                        {% if request.comment %}<li><label>Commentaire</label> : {{ request.comment }}</li>{% endif %}
478
                    </ul>
479
                </div>
480
                </div>
481
            {% endfor %}
482
        </div>
483

    
484
        <div class="frame">
485
            <h3>Réponses MDPH</h3>
486
            <p><button id="new-mdph-response-btn">Nouvelle réponse MDPH</button></p>
487
            {% for response in object.mdph_responses.all %}
488
                <div class="subframe">
489
                Du <strong>{{ response.start_date }}</strong> au <strong>{{ response.end_date }}</strong> à la MDPH <strong>{{ response.mdph }}</strong>
490
                <div class="buttons">
491
                    <button type="button" data-id="{{ response.id }}" class="del-mdph-response icon-minus" title="Supprimer"></button>
492
                    <button type="button" data-id="{{ response.id }}" class="update-mdph-response-btn icon-edit" title="Modifier"></button>
493
                </div>
494
                <div>
495
                    <ul>
496
                        {% if response.comment %}<li><label>Commentaire</label> : {{ response.comment }}</li>{% endif %}
497
                        {% if response.type_aide %}<li><label>Type d'aide</label> : {{ response.type_aide }}</li>{% endif %}
498
                        {% if response.name %}<li><label>Nom</label> : {{ response.name }}</li>{% endif %}
499
                        {% if response.rate %}<li><label>Taux</label> : {{ response.rate }}</li>{% endif %}
500
                    </ul>
501
                </div>
502
                </div>
503
            {% endfor %}
504
        </div>
505
    </div>
506

    
507
    <div id="tabs-8">
508
        <form method="post" id="physiology-form" class="patientrecordform">
509
          {% csrf_token %}
510
            <button class="save enable-on-change">Enregistrer</button>
511
            {% for field in forms.physiology %}
512
            <p>
513
                {{ field.errors }}
514
            </p>
515
            <p>
516
                {{ field.label_tag  }}
517
                {{ field }}
518
            </p>
519
            {% endfor %}
520
            </p>
521
            <input type="hidden"  name="tab"  value="7">
522
            <button class="save enable-on-change">Enregistrer</button>
523
        </form>
524
    </div>
525
  </div>
526
</div>
527
{% endblock %}
528

    
529
{% block dialogs %}
530
<div id="ajax-dlg" style="display: none;"></div>
531
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
532
 </div>
533

    
534
  <div id="dossier-histo-dlg" style="display: none;">
535
   <dl>
536
    {% for state in states %}
537
    <dt><b>{{ state.date_selected|date:"d/m/Y" }}</b> <!--<small>(date info: {{ state.created|date:"d/m/Y" }})</small>-->
538
      <button data-id="{{ state.id }}" class="update-patient-state-btn icon-edit" title="Modifier"></button>
539
      {% if states|length > 1 %}<button data-id="{{ state.id }}" class="del-patient-state-btn icon-remove"></button>{% endif %}
540
    </dt>
541
    <dd>
542
    <p><b>{{ state.status.name }}</b>{% if state.comment %}; <label>commentaire:</label> {{ state.comment }}{% endif %}</p>
543
    </dd>
544
    <dd class="edit-histo-item" style="display: none;">
545

    
546
<form action="{{ request.get_full_path }}/../update-state" method="post">
547
  <input type="hidden" name="state_id" value="{{ state.id }}"/>
548
  {% csrf_token %}
549
   <p>
550
   <label for="id_date">Date :</label>
551
   {{ form.date.errors }}
552
   <input id="id_date" class="date" name="date" value="{{ state.created|date:"d/m/Y" }}"/>
553
   </p>
554
   <p>
555
    <label for="id_comment">Commentaire :</label>
556
    <textarea id="id_comment" style="width: 90%;" name="comment">{% if state.comment %}{{ state.comment }}{% endif %}</textarea>
557
   </p>
558
   <button>Modifier</button>
559
 </form>
560

    
561
    </dd>
562
    {% endfor%}
563
   </dl>
564
  </div>
565

    
566

    
567

    
568
  <div id="add-prise-en-charge-dlg" style="display: none;">
569
   <div>
570
    <label for="id_partir">À partir du :</label>
571
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
572
   </div>
573
   <div>
574
    <label for="id_pour">Pour :</label>
575
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
576
   </div>
577
  </div>
578

    
579
  <div id="add-prolongation-dlg" style="display: none;">
580
   <div>
581
    <label for="id_pour">Pour :</label>
582
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
583
   </div>
584
  </div>
585

    
586
<div id="finaccueil-patientrecord-dialog" title="Patient en fin d'accueil">
587
  <div id="finaccueil-patientrecord-dialog-content">
588
  </div>
589
  <form method="post" action="finaccueil-patientrecord/">
590
    {% csrf_token %}
591
    <input type="hidden" name="Close" value="1">
592
  </form>
593
</div>
594

    
595
{% endblock %}
(15-15/19)