Project

General

Profile

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

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

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
<ul class="messages" style="display: none;"></ul>
36

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

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

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

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

    
162
        <button type="button" id="new-address-btn">Nouvelle adresse</button>
163
        <button type="button" id="new-contact-btn">Nouveau contact</button>
164

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

    
281
    </div>
282

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

    
413
    <div id="tabs-5"> <!-- Actes passés -->
414
    <table class="main">
415
      <thead>
416
          <tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
417
      </thead>
418
      <tbody>
419
        {% for act, state in last_rdvs %}
420
        <tr>
421
          <td>{{ act.date|date:"l d/m/y"|title }} {{ act.time|date:"H:i" }}</td>
422
          <td>{% if state %}<strong>{{ state }}</strong>{% else %}Non pointé.{% endif %}</td>
423
          <td>{{ act.act_type }}</td>
424
          <td>{% for doctor in act.doctors.all %}
425
            {{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
426
            {% endfor %}</td>
427
          <td>{% if act.comment %}{{ act.comment }}{% endif %}</td>
428
        </tr>
429
        {% endfor %}
430
      </tbody>
431
    </table>
432
    </div>
433

    
434
    <div id="tabs-6"> <!-- Prochains rendez-vous -->
435
    <table class="main">
436
      <thead>
437
          <tr> <th>Date</th> <th>Pointage</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th> </tr>
438
      </thead>
439
      <tbody>
440
        {% for event, state in next_rdvs %}
441
        <tr>
442
          <td>{% firstof event.start_datetime|date:"l d/m/y H:i"|title %}</td>
443
          <td>{% if state %}<strong>{{ state }}</strong>{% else %}Non pointé.{% endif %}</td>
444
          <td>{{ event.act_type }}</td>
445
          <td>{% for doctor in event.participants.all %}
446
                {{ doctor.first_name }} <span class="lastname">{{ doctor.last_name }}</span>
447
                {% endfor %}</td>
448
          <td>{{ event.description }}</td>
449
        </tr>
450
        {% endfor %}
451
      </tbody>
452
    </table>
453
    </div>
454

    
455

    
456
    <div id="tabs-7">
457
        <div class="frame">
458
            <h3>Périodes de socialisation</h3>
459
            <p><button id="new-socialisation-duration-btn">Nouvelle période de socialisation</button></p>
460
            {% for duration in object.socialisation_durations.all %}
461
                <div class="subframe">
462
                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 %}
463
                <div class="buttons">
464
                    <button type="button" data-id="{{ duration.id }}" class="del-duration icon-minus" title="Supprimer"></button>
465
                    <button type="button" data-id="{{ duration.id }}" class="update-duration-btn icon-edit" title="Modifier"></button>
466
                </div>
467
                <div>
468
                    <ul>
469
                        {% if duration.end_date %}<li><label>Date de départ</label> : {{ duration.end_date }}</li>{% endif %}
470
                        {% if duration.comment %}<li><label>Commentaire</label> : {{ duration.comment }}</li>{% endif %}
471
                    </ul>
472
                </div>
473
                </div>
474
            {% endfor %}
475
        </div>
476

    
477
        <div class="frame">
478
            <h3>Demandes MDPH</h3>
479
            <p><button id="new-mdph-request-btn">Nouvelle demande MDPH</button></p>
480
            {% for request in object.mdph_requests.all %}
481
                <div class="subframe">
482
                Demande le <strong>{{ request.start_date }}</strong> à la MDPH <strong>{{ request.mdph }}</strong>
483
                <div class="buttons">
484
                    <button type="button" data-id="{{ request.id }}" class="del-mdph-request icon-minus" title="Supprimer"></button>
485
                    <button type="button" data-id="{{ request.id }}" class="update-mdph-request-btn icon-edit" title="Modifier"></button>
486
                </div>
487
                <div>
488
                    <ul>
489
                        {% if request.comment %}<li><label>Commentaire</label> : {{ request.comment }}</li>{% endif %}
490
                    </ul>
491
                </div>
492
                </div>
493
            {% endfor %}
494
        </div>
495

    
496
        <div class="frame">
497
            <h3>Réponses MDPH</h3>
498
            <p><button id="new-mdph-response-btn">Nouvelle réponse MDPH</button></p>
499
            {% for response in object.mdph_responses.all %}
500
                <div class="subframe">
501
                Du <strong>{{ response.start_date }}</strong> au <strong>{{ response.end_date }}</strong> à la MDPH <strong>{{ response.mdph }}</strong>
502
                <div class="buttons">
503
                    <button type="button" data-id="{{ response.id }}" class="del-mdph-response icon-minus" title="Supprimer"></button>
504
                    <button type="button" data-id="{{ response.id }}" class="update-mdph-response-btn icon-edit" title="Modifier"></button>
505
                </div>
506
                <div>
507
                    <ul>
508
                        {% if response.comment %}<li><label>Commentaire</label> : {{ response.comment }}</li>{% endif %}
509
                        {% if response.type_aide %}<li><label>Type d'aide</label> : {{ response.type_aide }}</li>{% endif %}
510
                        {% if response.name %}<li><label>Nom</label> : {{ response.name }}</li>{% endif %}
511
                        {% if response.rate %}<li><label>Taux</label> : {{ response.rate }}</li>{% endif %}
512
                    </ul>
513
                </div>
514
                </div>
515
            {% endfor %}
516
        </div>
517
    </div>
518

    
519
    <div id="tabs-8">
520
        <form method="post" id="physiology-form" class="patientrecordform">
521
          {% csrf_token %}
522
            <button class="save enable-on-change">Enregistrer</button>
523
            {% for field in forms.physiology %}
524
            <p>
525
                {{ field.errors }}
526
            </p>
527
            <p>
528
                {{ field.label_tag  }}
529
                {{ field }}
530
            </p>
531
            {% endfor %}
532
            </p>
533
            <input type="hidden"  name="tab"  value="7">
534
            <button class="save enable-on-change">Enregistrer</button>
535
        </form>
536
    </div>
537
  </div>
538
</div>
539
{% endblock %}
540

    
541
{% block dialogs %}
542
<div id="ajax-dlg" style="display: none;"></div>
543
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
544
 </div>
545

    
546
  <div id="dossier-histo-dlg" style="display: none;">
547
   <dl>
548
    {% for state in states %}
549
    <dt><b>{{ state.date_selected|date:"d/m/Y" }}</b> <!--<small>(date info: {{ state.created|date:"d/m/Y" }})</small>-->
550
      <button data-id="{{ state.id }}" class="update-patient-state-btn icon-edit" title="Modifier"></button>
551
      {% if states|length > 1 %}<button data-id="{{ state.id }}" class="del-patient-state-btn icon-remove"></button>{% endif %}
552
    </dt>
553
    <dd>
554
    <p><b>{{ state.status.name }}</b>{% if state.comment %}; <label>commentaire:</label> {{ state.comment }}{% endif %}</p>
555
    </dd>
556
    <dd class="edit-histo-item" style="display: none;">
557

    
558
<form action="{{ request.get_full_path }}/../update-state" method="post">
559
  <input type="hidden" name="state_id" value="{{ state.id }}"/>
560
  {% csrf_token %}
561
   <p>
562
   <label for="id_date">Date :</label>
563
   {{ form.date.errors }}
564
   <input id="id_date" class="date" name="date" value="{{ state.created|date:"d/m/Y" }}"/>
565
   </p>
566
   <p>
567
    <label for="id_comment">Commentaire :</label>
568
    <textarea id="id_comment" style="width: 90%;" name="comment">{% if state.comment %}{{ state.comment }}{% endif %}</textarea>
569
   </p>
570
   <button>Modifier</button>
571
 </form>
572

    
573
    </dd>
574
    {% endfor%}
575
   </dl>
576
  </div>
577

    
578

    
579

    
580
  <div id="add-prise-en-charge-dlg" style="display: none;">
581
   <div>
582
    <label for="id_partir">À partir du :</label>
583
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
584
   </div>
585
   <div>
586
    <label for="id_pour">Pour :</label>
587
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
588
   </div>
589
  </div>
590

    
591
  <div id="add-prolongation-dlg" style="display: none;">
592
   <div>
593
    <label for="id_pour">Pour :</label>
594
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
595
   </div>
596
  </div>
597

    
598
<div id="finaccueil-patientrecord-dialog" title="Patient en fin d'accueil">
599
  <div id="finaccueil-patientrecord-dialog-content">
600
  </div>
601
  <form method="post" action="finaccueil-patientrecord/">
602
    {% csrf_token %}
603
    <input type="hidden" name="Close" value="1">
604
  </form>
605
</div>
606

    
607
{% endblock %}
(16-16/20)