Project

General

Profile

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

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

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

    
4
{% block appbar %}
5
<h2><span class="lastname">{{ object.last_name }}</span> {{ object.first_name }} - Dossier {{ object.paper_id|default_if_none:"" }}</h2>
6
<a href="..">Retourner aux dossiers</a>
7
{% if not object.act_set.all %}
8
<button id="patientrecord-delete">Supprimer</button>
9
{% endif %}
10
{% endblock %}
11

    
12
{% block content %}
13
<div id="tabs">
14
  <ul>
15
    <li><a data-id="0" class="atabs" href="#tabs-1">Général</a></li>
16
    <li><a data-id="1" class="atabs" href="#tabs-2">Fiche administrative</a></li>
17
    <li><a data-id="2" class="atabs" href="#tabs-3">Adresses / contacts</a></li>
18
    {% if object.service.name == "CMPP" %}
19
    <li><a data-id="3"  class="atabs" href="#tabs-4">Prise en charge</a></li>
20
    {% endif %}
21
    {% if object.service.name == "SESSAD TED" or object.service.name == "SESSAD DYS" %}
22
    <li><a data-id="3" class="atabs" href="#tabs-4">Notifications</a></li>
23
    {% endif %}
24
    <li><a data-id="4" class="atabs" href="#tabs-5">Actes passés</a>
25
    <li><a data-id="5" class="atabs" href="#tabs-6">Prochains rendez-vous</a>
26
    <li><a data-id="6" class="atabs" href="#tabs-7">Socialisation</a>
27
    <li><a data-id="7" class="atabs" href="#tabs-8">Données à caractère médical</a>
28
  </ul>
29
  <div id="tabs-1"> <!-- Général -->
30
    <form method="post" id="general-form" class="patientrecordform">
31
    {% csrf_token %}
32
    <div class="left">
33
      <ul>
34
          <li><label>N° dossier papier :</label> {{ object.paper_id|default_if_none:"" }} <button></button></li>
35
        <li><label>N° dossier informatique :</label>{{ object.id }}</li>
36
        <li><label>Nom :</label> <span class="lastname">{{ object.last_name }}</span></li>
37
        <li><label>Prénom :</label> {{ object.first_name }}</li>
38
        <li><label>Genre :</label> {{ object.get_gender_display }}</li>
39
        <li><label>Date de naissance :</label> {{ object.birthdate|date:"d/m/Y" }}</li>
40
        <li><label>Lieux de vie :</label>
41
        <ul>
42
          {% for address in object.addresses.all %}
43
          <li>{{ address.number }} {{ address.street }}, {{ address.city }} - {{ address.phone }} </li>
44
          {% endfor %}
45

    
46
        </ul></li>
47
        <li><label>Date d'inscription :</label> {{ object.created|date:"d/m/Y" }}</li>
48
        <li><label>Lieu de socialisation :</label> {{ object.school|default_if_none:"" }}</li>
49
        <li><label>Commentaire :</label><br/>
50
        {{ forms.general.comment }}
51
        <button id="btn-maj">Mettre à jour</button></li>
52
      </ul>
53
    </div>
54
    <div class="right">
55
      <ul>
56
          <li><label>Dernier acte :</label>
57
          {% if last_rdv %}
58
          {{ last_rdv.start_datetime|date:"d/m/Y" }} -
59
          {% for participant in last_rdv.participants %}
60
          <span class="lastname">{{ participant.last_name }}</span> -
61
          {% endfor %}
62
          {{ last_rdv.act_type }}
63
          {% endif %}
64
          </li>
65
          <li><label>Prochain rendez-vous :</label>
66
          {% if next_rdv %}
67
          {{ next_rdv.start_datetime|date:"d/m/Y" }} -
68
          {% for participant in next_rdv.participants %}
69
          {{ participant.next_name }} -
70
          {% endfor %}
71
          {{ next_rdv.act_type }}
72
          {% endif %}
73
          </li>
74
      </ul>
75
      <div class="etat">
76
          <h4>État courant du dossier :  {{ current_state.status.name.lower }}</h4>
77
          <p>depuis le : {{ current_state.date_selected|date:"d/m/Y" }}</p>
78
          <p><label>Commentaire :</label>{{ object.last_state.comment|default_if_none:"" }}</p>
79
          {% for state in status %}
80
          <button type="button" id="{{ state.0 }}">{{ state.1 }}</button>
81
          {% endfor %}
82
        <button type="button" id="patientrecord-history">Historique</button><br/>
83
        <hr/>
84
        <p id="pause-msg" style="display: none; font-size: 10px;">Pause facturation mise à jour</p>
85
        {{ forms.general.pause.label_tag }} : {{ forms.general.pause }}
86
        <!-- 3/6 diagnostics -->
87
      </div>
88
        </form>
89

    
90
      <!-- <div class="notifs">
91
        <h4>Notifications</h4>
92
        <ul>
93
          <li>Dossier en pause facturation <button>Sortir</button></li>
94
      </ul>
95
  </div> -->
96

    
97
    </div>
98
    <br style="clear:both"/>
99
  </div>
100

    
101
  <div id="tabs-2"> <!-- Fiche administrative -->
102
    <form method="post" id="id-form">
103
    {% csrf_token %}
104
    <div class="frame inline">
105
      <h3>État civil</h3>
106
      <button class="save"></button>
107
      <p>
108
      {% for field in forms.id %}
109
      {{ field.errors }}
110
      {% endfor %}
111
      </p>
112
      <p>
113
      {{ forms.id.last_name.label_tag }} : <span class="lastname">{{ forms.id.last_name }}</span>
114
      {{ forms.id.first_name.label_tag }} : {{ forms.id.first_name }}
115
      </p>
116
      <p>
117
      {{ forms.id.birthdate.label_tag }} : {{ forms.id.birthdate }}
118
      {{ forms.id.gender.label_tag }} : {{ forms.id.gender }}
119
      {{ forms.id.nationality.label_tag }} : {{ forms.id.nationality }}
120
      </p>
121
      <input type="hidden"  name="tab"  value="1">
122
    </div>
123
  </form>
124

    
125

    
126
    <form method="post" id="physiology-form" class="patientrecordform">
127
    {% csrf_token %}
128
    <div class="frame inline">
129
      <h3>Physiologie</h3>
130
      <button class="save"></button>
131
      <p>
132
      {% for field in forms.physiology %}
133
      {{ field.errors }}
134
      {% endfor %}
135
      </p>
136
      <p>
137
      {% for field in forms.physiology %}
138
      {{ field.label_tag  }} : {{ field }}
139
      {% endfor %}
140
      </p>
141
      <input type="hidden"  name="tab"  value="1">
142
    </div>
143
  </form>
144

    
145
    <form method="post" id="inscription-form" class="patientrecordform">
146
    {% csrf_token %}
147
    <div class="frame inline">
148
      <h3>Inscription</h3>
149
      <button class="save"></button>
150
      <p>
151
      {% for field in forms.inscription %}
152
      {{ field.label_tag  }} : {{ field }}
153
      <button type="button"
154
          class="dialog-button"
155
          data-url="../../ressources/{{ field.name }}/new/ #form-content"
156
          data-default-button="Ajouter"
157
          data-next-url="{{ request.get_full_path }}#tab=1"
158
          title="Ajouter un {{ field.label.lower }}"
159
          type="button">+</button>
160
      {% endfor %}
161
      </p>
162
      <input type="hidden"  name="tab"  value="1">
163
    </div>
164
  </form>
165

    
166
    <form method="post" id="family-form" class="patientrecordform">
167
    {% csrf_token %}
168
    <div class="frame inline">
169
        <h3>Famille</h3>
170
      <button class="save"></button>
171
      <p>
172
      {% for field in forms.family %}
173
      {{ field.errors }}
174
      {% endfor %}
175
      </p>
176
      <p>
177
      {{ forms.family.sibship_place.label_tag  }} : {{ forms.family.sibship_place }}
178
      {{ forms.family.nb_children_family.label_tag  }} : {{ forms.family.nb_children_family }}
179
      <label>Rang (gémellité) :  </label> {{ object.twinning_rank|default_if_none:"Aucun" }}
180
      </p>
181
      <p>
182
      {{ forms.family.parental_authority.label_tag  }} : {{ forms.family.parental_authority }}
183
      <button type="button"
184
          class="dialog-button"
185
          data-url="../../ressources/parentalauthoritytype/new/ #form-content"
186
          data-default-button="Ajouter"
187
          data-next-url="{{ request.get_full_path }}#tab=1"
188
          title="Ajouter un type d'autorité parentale">+</button>
189
      {{ forms.family.family_situation.label_tag  }} : {{ forms.family.family_situation }}
190
      <button type="button"
191
          class="dialog-button"
192
          data-url="../../ressources/familysituationtype/new/ #form-content"
193
          data-default-button="Ajouter"
194
          data-next-url="{{ request.get_full_path }}#tab=1"
195
          title="Ajouter un type de situation familiale">+</button>
196
      {{ forms.family.child_custody.label_tag  }} : {{ forms.family.child_custody }}
197
      <button type="button"
198
          class="dialog-button"
199
          data-url="../../ressources/parentalcustodytype/new/ #form-content"
200
          data-default-button="Ajouter"
201
          data-next-url="{{ request.get_full_path }}#tab=1"
202
          title="Ajouter un type de garde parentale">+</button>
203
      </p>
204
      <input type="hidden"  name="tab"  value="1">
205
    </div>
206
    </form>
207

    
208
    <form method="post" id="transport-form" class="patientrecordform">
209
    {% csrf_token %}
210
    <div class="frame inline">
211
      <h3>Transport</h3>
212
      <button class="save"></button>
213
      <p>
214
      {% for field in forms.transport %}
215
      {{ field.label_tag  }} : {{ field }}
216
      <button type="button"
217
          class="dialog-button"
218
          data-url="../../ressources/{{ field.name }}/new/ #form-content"
219
          data-default-button="Ajouter"
220
          data-next-url="{{ request.get_full_path }}#tab=1"
221
          title="Ajouter un {{ field.label.lower }}">+</button>
222
      {% endfor %}
223
      </p>
224
      <table>
225
        <tr><td><button type="button">Attestation</button></td> <td><button type="button">Prescription</td></tr>
226
          <tr><td>Dernière attestation le 25/07/2012 <button>Historique</button></td>
227
            <td>Dernière prescription le 25/07/2012 <button>Historique</button></td></tr>
228
        </table>
229
      <input type="hidden"  name="tab"  value="1">
230
      </div>
231
    </form>
232

    
233
    <form method="post" id="followup-form" class="patientrecordform">{% csrf_token %}
234
      <div class="frame inline">
235
        <h3>Suivi du patient</h3>
236
        <button class="save"></button>
237
        <p>
238
        {{ forms.followup.coordinators.label_tag  }} : {{ forms.followup.coordinators }}
239
        </p>
240
        <p>
241
        {{ forms.followup.externaldoctor.label_tag  }} : {{ forms.followup.externaldoctor }}
242
        <button type="button">+</button>
243
        {{ forms.followup.externalintervener.label_tag  }} : {{ forms.followup.externalintervener }}
244
        <button type="button">+</button>
245
        </p>
246
      <input type="hidden"  name="tab"  value="1">
247
      </div>
248
    </form>
249

    
250
    </div>
251

    
252
    <div id="tabs-3"> <!-- Adresses / Contacts -->
253
        <button id="new-address-btn">Nouvelle adresse</button>
254
        <button id="new-contact-btn">Nouveau contact</button>
255
        {% for address in object.addresses.all %}
256
        <div class="frame">
257
            <h3>{{ address.number }} {{ address.street }}</h3>
258
            <div class="buttons"><button data-id="{{ address.id }}" class="del-address"></button> <button></button></div>
259
            <div class="right">
260
                <input type="checkbox" {% if address.place_of_life %}checked{% endif %}>Lieu de vie</input>
261
            </div>
262
            <p>{{ address.zip_code }} {{ address.city }}</p>
263
            <p>{{ address.phone }}</p>
264
            {% for contact in address.patientcontact_set.all  %}
265
            <div class="contact{% if contact.id == object.id %} patient{% endif %}">
266
                <h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}
267
                    {{ contact.display_name }} {% if contact.id == object.id %} (PATIENT){% endif %}</h4>
268
                <div class="right">
269
                    <input type="radio" name="radio-assure" checked="checked">Assuré</input>
270
                    <button data-id="{{ contact.id }}" class="del-contact"></button> <button></button>
271
                </div>
272
                <p>{{ contact.social_security_id }}</p>
273
                <p>{{ contact.mobile }}</p>
274
            </div>
275
            {% endfor %}
276
        </div>
277
        {% endfor %}
278

    
279
    </div>
280

    
281
    <div id="tabs-4"> <!-- Prise en charge -->
282
      <div id="patient-diag">
283
        <div class="frame">
284
          <h3>En diagnostic depuis le 11 juin 2012</h3>
285
          <ul>
286
            <li><input size="4" value="6"/> actes prévus</li>
287
            <li><strong>3</strong> actes réalisés dont <strong>2</strong> facturés <button class="blind">détails</button>
288
            <ul>
289
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>2</strong> actes
290
              <ul>
291
                <li>Accueil le 11 juin 2012 - 9h00 - 45 minutes - Bob Leponge</li>
292
                <li>Dialogue le 12 juin 2012 - 10h00 - 30 minutes - Bob Leponge</li>
293
              </ul></li>
294
              <li>Non facturé - <strong>1 acte</strong>
295
              <ul>
296
                <li>Dialogue le 13 juin 2012 - 11h00 - 45 minutes - Sandy Kilo</li>
297
              </ul></li>
298
            </ul>
299
            </li>
300
          </ul>
301
        </div>
302
      </div>
303

    
304
      <div id="patient-traitement">
305
        <div class="frame">
306
          <h3>En diagnostic depuis le 6 mars 2012</h3>
307
          <ul>
308
            <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
309
            <ul>
310
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
311
              <ul>
312
                <li>...</li>
313
              </ul></li>
314
            </ul>
315
            </li>
316
          </ul>
317
        </div>
318

    
319
        <div class="frame">
320
          <h3>En traitement depuis le 11 juin 2012</h3>
321
          <ul>
322
            <li><strong>4</strong> actes réalisés <button class="blind">détails</button>
323
            <ul><li>...</li></ul>
324
            </li>
325
            <li>Pas de prise en charge - <button id="add-prise-en-charge-btn">Ajouter une prise en charge</button></li>
326
          </ul>
327
        </div>
328

    
329
      </div>
330

    
331
      <div id="patient-traitement-charge" style="display: none;">
332

    
333
        <div class="frame">
334
          <h3>En diagnostic depuis le 2 avril 2008</h3>
335
          <ul>
336
            <li><strong>3</strong> actes réalisés et facturés <button class="blind">détails</button>
337
            <ul>
338
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>3</strong> actes
339
              <ul>
340
                <li>...</li>
341
              </ul></li>
342
            </ul>
343
            </li>
344
          </ul>
345
        </div>
346

    
347
        <div class="frame">
348
          <h3>En diagnostic depuis le 5 octobre 2010</h3>
349
          <ul>
350
            <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
351
            <ul>
352
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
353
              <ul>
354
                <li>...</li>
355
              </ul></li>
356
            </ul>
357
            </li>
358
          </ul>
359
        </div>
360

    
361
        <div class="frame">
362
          <h3>En traitement depuis le 12 décembre 2010</h3>
363
          <ul>
364
            <li>Prise en charge depuis le 12 décembre 2010
365
            <ul>
366
              <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
367
              <ul><li>...</li></ul></li>
368
              <li><strong>10</strong> actes réalisés et facturés en prolongation <button class="blind">détails</button>
369
              <ul><li>...</li></ul></li>
370
              <li><strong>6</strong> actes réalisés et non pris en charge <button class="blind">détails</button>
371
              <ul><li>...</li></ul></li>
372
            </ul>
373
            </li>
374
            <li>Prise en charge depuis le 15 décembre 2011
375
            <ul>
376
              <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
377
              <ul><li>...</li></ul></li>
378
              <li><strong>6</strong> actes réalisés non facturés <button class="blind">détails</button>
379
              <ul><li>...</li></ul></li>
380
              <li><button id="add-prolongation-btn">Ajouter une prolongation</button></li>
381
            </ul>
382
            </li>
383
          </ul>
384
        </div>
385

    
386

    
387
      </div>
388

    
389
<!--      <div id="overlay">-->
390
<!--        <p>-->
391
<!--        Exemples pour cet onglet :-->
392
<!--        <a href="#" onclick="$('#patient-diag').show(); $('#patient-traitement').hide(); $('#patient-traitement-charge').hide();">Patient en diagnostic</a> --->
393
<!--        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').show(); $('#patient-traitement-charge').hide();">Patient en traitement</a> --->
394
<!--        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').hide(); $('#patient-traitement-charge').show();">Patient en traitement avec prise en charge</a>-->
395
<!--        </p>-->
396
<!--      </div>-->
397

    
398
    </div>
399

    
400
    <div id="tabs-5">
401
    </div>
402

    
403
    <div id="tabs-6">
404
    </div>
405

    
406
    <div id="tabs-7">
407
    </div>
408

    
409
    <div id="tabs-8">
410
    </div>
411
  </div>
412
</div>
413
{% endblock %}
414

    
415
{% block dialogs %}
416
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
417
 </div>
418

    
419
 <div id="delete-record" style="display: none;">
420
  </div>
421
  <div id="dossier-histo-dlg" style="display: none;">
422
   <dl>
423
    {% for state in states %}
424
    <dt><b>{{ state.date_selected|date:"d/m/Y" }}</b> <small>(date info: {{ state.created|date:"d/m/Y" }})</small></dt>
425
    <dd>
426
    <p><b>{{ state.status.name }}</b>; <label>commentaire:</label> {{ state.comment }}</p>
427
    <p>changement par {{ state.author }}</p>
428
    </dd>
429
    {% endfor%}
430
   </dl>
431
  </div>
432

    
433
  <div id="new-address-dlg" style="display: none;"></div>
434
  <div id="del-address-dlg" style="display: none;"></div>
435
  <div id="new-contact-dlg" style="display: none;"></div>
436
  <div id="del-contact-dlg" style="display: none;"></div>
437

    
438
  <div id="add-prise-en-charge-dlg" style="display: none;">
439
   <div>
440
    <label for="id_partir">À partir du :</label>
441
    <input id="id_partir" class="partir" name="partir" size="10" value="11/06/2012"/>
442
   </div>
443
   <div>
444
    <label for="id_pour">Pour :</label>
445
    <input id="id_pour" class="pour" name="pour" size="4" value="30"/> séances
446
   </div>
447
  </div>
448

    
449
  <div id="add-prolongation-dlg" style="display: none;">
450
   <div>
451
    <label for="id_pour">Pour :</label>
452
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
453
   </div>
454
  </div>
455

    
456
<div id="finaccueil-patientrecord-dialog" title="Patient en fin d'accueil">
457
  <div id="finaccueil-patientrecord-dialog-content">
458
  </div>
459
  <form method="post" action="finaccueil-patientrecord/">
460
    {% csrf_token %}
461
    <input type="hidden" name="Close" value="1">
462
  </form>
463
</div>
464

    
465
{% endblock %}
(9-9/11)