Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_update.html @ 0259c7ef

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

    
4
{% block appbar %}
5
<h2>{{ object.last_name }} {{ object.first_name }} - Dossier {{ object.paper_id|default_if_none:"" }}</h2>
6
<a href="..">Retourner aux dossiers</a>
7
<button>Supprimer</button>
8
{% endblock %}
9

    
10
{% block content %}
11
<div id="tabs">
12
  <ul>
13
    <li><a href="#tabs-1">Général</a></li>
14
    <li><a href="#tabs-2">Fiche administrative</a></li>
15
    <li><a href="#tabs-3">Adresses / contacts</a></li>
16
    <li><a href="#tabs-4">Prise en charge</a></li>
17
    <!--<li><a href="#tabs-5">Liste des actes</a>-->
18
    <li><a href="#tabs-6">Prochains rendez-vous</a>
19
    <li><a href="#tabs-7">Socialisation</a>
20
    <li><a href="#tabs-8">Données à caractère médical</a>
21
  </ul>
22
  <div id="tabs-1"> <!-- Général -->
23
    <form method="post" id="general-form" class="patientrecordform">
24
    {% csrf_token %}
25
    <div class="left">
26
      <ul>
27
          <li><label>N° dossier papier :</label> {{ object.paper_id|default_if_none:"Aucun" }} <button></button></li>
28
        <li><label>N° dossier informatique :</label>{{ object.id }}</li>
29
        <li><label>Nom :</label> {{ object.last_name }}</li>
30
        <li><label>Prénom :</label> {{ object.first_name }}</li>
31
        <li><label>Date de naissance :</label> {{ object.birthdate|date:"d/m/Y" }}</li>
32
        <li><label>Lieux de vie :</label>
33
        <ul>
34
          {% for address in object.addresses.all %}
35
          <li>{{ address.address }}, {{ address.city }} - {{ address.phone }} </li>
36
          {% endfor %}
37

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

    
81
      <!-- <div class="notifs">
82
        <h4>Notifications</h4>
83
        <ul>
84
          <li>Dossier en pause facturation <button>Sortir</button></li>
85
      </ul>
86
  </div> -->
87

    
88
    </div>
89
    <br style="clear:both"/>
90
  </div>
91

    
92
  <div id="tabs-2"> <!-- Fiche administrative -->
93
    <form method="post" id="id-form">
94
    {% csrf_token %}
95
    <div class="frame inline">
96
      <h3>État civil</h3>
97
      <button class="save"></button>
98
      <p>
99
      {% for field in forms.id %}
100
      {{ field.errors }}
101
      {% endfor %}
102
      </p>
103
      <p>
104
      {{ forms.id.last_name.label_tag }} : {{ forms.id.last_name }}
105
      {{ forms.id.first_name.label_tag }} : {{ forms.id.first_name }}
106
      </p>
107
      <p>
108
      {{ forms.id.birthdate.label_tag }} : {{ forms.id.birthdate }}
109
      {{ forms.id.gender.label_tag }} : {{ forms.id.gender }}
110
      {{ forms.id.nationality.label_tag }} : {{ forms.id.nationality }}
111
      </p>
112
      <input type="hidden"  name="tab"  value="1">
113
    </div>
114
  </form>
115

    
116

    
117
    <form method="post" id="physiology-form" class="patientrecordform">
118
    {% csrf_token %}
119
    <div class="frame inline">
120
      <h3>Physiologie</h3>
121
      <button class="save"></button>
122
      <p>
123
      {% for field in forms.physiology %}
124
      {{ field.errors }}
125
      {% endfor %}
126
      </p>
127
      <p>
128
      {% for field in forms.physiology %}
129
      {{ field.label_tag  }} : {{ field }}
130
      {% endfor %}
131
      </p>
132
      <input type="hidden"  name="tab"  value="1">
133
    </div>
134
  </form>
135

    
136
    <form method="post" id="inscription-form" class="patientrecordform">
137
    {% csrf_token %}
138
    <div class="frame inline">
139
      <h3>Inscription</h3>
140
      <button class="save"></button>
141
      <p>
142
      {% for field in forms.inscription %}
143
      {{ field.label_tag  }} : {{ field }} <button>+</button>
144
      {% endfor %}
145
      </p>
146
      <input type="hidden"  name="tab"  value="1">
147
    </div>
148
  </form>
149

    
150
    <form method="post" id="inscription-form" class="patientrecordform">
151
    {% csrf_token %}
152
    <div class="frame inline">
153
        <h3>Famille</h3>
154
      <button class="save"></button>
155
      <p>
156
      {% for field in forms.familly %}
157
      {{ field.errors }}
158
      {% endfor %}
159
      </p>
160
      <p>
161
      {{ forms.familly.sibship_place.label_tag  }} : {{ forms.familly.sibship_place }}
162
      {{ forms.familly.nb_children_family.label_tag  }} : {{ forms.familly.nb_children_family }}
163
      {{ forms.familly.twinning_rank.label_tag  }} : {{ forms.familly.twinning_rank }}
164
      </p>
165
      <p>
166
      {{ forms.familly.parental_authority.label_tag  }} : {{ forms.familly.parental_authority }} <button>+</button>
167
      {{ forms.familly.familly_situation.label_tag  }} : {{ forms.familly.familly_situation }} <button>+</button>
168
      {{ forms.familly.child_custody.label_tag  }} : {{ forms.familly.child_custody }} <button>+</button>
169
      </p>
170
      <input type="hidden"  name="tab"  value="1">
171
    </div>
172
    </form>
173

    
174
    <div class="frame">
175
      <h3>Transport</h3>
176
      <button class="save"></button>
177
      <p>
178
      <label>Type de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
179
      <label>Compagnie de transport :</label> <select><option>Indéfini</option></select> <button>+</button>
180
      </p>
181
      <table>
182
        <tr><td><button>Attestation</button></td> <td><button>Prescription</td></tr>
183
          <tr><td>Dernière attestation le 25/07/2012 <button>Historique</button></td>
184
            <td>Dernière prescription le 25/07/2012 <button>Historique</button></td></tr>
185
        </table>
186
      <input type="hidden"  name="tab"  value="1">
187
      </div>
188

    
189
      <div class="frame">
190
        <h3>Suivi du patient</h3>
191
        <button class="save"></button>
192
        <p>
193
        <label>Coordinateur I :</label> <select><option>Indéfini</option></select> <button>+</button>
194
        <label>Coordinateur II :</label> <select><option>Indéfini</option></select> <button>+</button>
195
        <label>Coordinateur III :</label> <select><option>Indéfini</option></select> <button>+</button>
196
        </p>
197
        <p>
198
        <label>Médecin extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
199
        <label>Intervenant extérieur :</label> <select><option>Indéfini</option></select> <button>+</button>
200
        </p>
201
      <input type="hidden"  name="tab"  value="1">
202
      </div>
203

    
204
    </div>
205

    
206
    <div id="tabs-3"> <!-- Adresses / Contacts -->
207
      <button id="new-address-btn">Nouvelle adresse</button> <button>Nouveau contact</button>
208
      <div class="frame">
209
        <h3>16 rue du Clocher</h3>
210
        <div class="buttons"><button></button> <button></button></div>
211
        <div class="right">
212
          <input type="checkbox" checked>Lieu de vie</input>
213
        </div>
214
        <p>13004 Marseille</p>
215
        <p>04 91 12 34 56</p>
216
        <div class="contact">
217
          <h4>Mme Marie Carmarie</h4>
218
          <div class="right">
219
            <input type="radio" name="radio-assure" checked="checked">Assuré</input>
220
            <button></button> <button></button>
221
          </div>
222
          <p>2 70 12 34 567 890 12</p>
223
          <p>06 12 34 56 78</p>
224
        </div>
225
        <div class="contact patient">
226
          <h4>M. Guillaume Bouclier (PATIENT)</h4>
227
          <div class="right">
228
            <input type="radio" name="radio-assure" >Assuré</input>
229
            <button></button> <button></button>
230
          </div>
231
          <p>1 04 12 34 567 890 12</p>
232
        </div>
233
      </div>
234

    
235
      <div class="frame">
236
        <h3>2 rue du Château</h3>
237
        <div class="buttons"><button></button> <button></button></div>
238
        <div class="right">
239
          <input type="checkbox">Lieu de vie</input>
240
        </div>
241
        <p>42000 Saint-Etienne</p>
242
        <p>04 77 12 34 56</p>
243
        <div class="contact">
244
          <h4>M. John Leponge</h4>
245
          <div class="right">
246
            <input type="radio" name="radio-assure">Assuré</input>
247
            <button></button> <button></button>
248
          </div>
249
          <p>1 70 12 34 567 890 12</p>
250
        </div>
251
      </div>
252

    
253
    </div>
254

    
255
    <div id="tabs-4"> <!-- Prise en charge -->
256
      <div id="patient-diag">
257
        <div class="frame">
258
          <h3>En diagnostic depuis le 11 juin 2012</h3>
259
          <ul>
260
            <li><input size="4" value="6"/> actes prévus</li>
261
            <li><strong>3</strong> actes réalisés dont <strong>2</strong> facturés <button class="blind">détails</button>
262
            <ul>
263
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>2</strong> actes
264
              <ul>
265
                <li>Accueil le 11 juin 2012 - 9h00 - 45 minutes - Bob Leponge</li>
266
                <li>Dialogue le 12 juin 2012 - 10h00 - 30 minutes - Bob Leponge</li>
267
              </ul></li>
268
              <li>Non facturé - <strong>1 acte</strong>
269
              <ul>
270
                <li>Dialogue le 13 juin 2012 - 11h00 - 45 minutes - Sandy Kilo</li>
271
              </ul></li>
272
            </ul>
273
            </li>
274
          </ul>
275
        </div>
276
      </div>
277

    
278
      <div id="patient-traitement" style="display: none;">
279
        <div class="frame">
280
          <h3>En diagnostic depuis le 6 mars 2012</h3>
281
          <ul>
282
            <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
283
            <ul>
284
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
285
              <ul>
286
                <li>...</li>
287
              </ul></li>
288
            </ul>
289
            </li>
290
          </ul>
291
        </div>
292

    
293
        <div class="frame">
294
          <h3>En traitement depuis le 11 juin 2012</h3>
295
          <ul>
296
            <li><strong>4</strong> actes réalisés <button class="blind">détails</button>
297
            <ul><li>...</li></ul>
298
            </li>
299
            <li>Pas de prise en charge - <button id="add-prise-en-charge-btn">Ajouter une prise en charge</button></li>
300
          </ul>
301
        </div>
302

    
303
      </div>
304

    
305
      <div id="patient-traitement-charge" style="display: none;">
306

    
307
        <div class="frame">
308
          <h3>En diagnostic depuis le 2 avril 2008</h3>
309
          <ul>
310
            <li><strong>3</strong> actes réalisés et facturés <button class="blind">détails</button>
311
            <ul>
312
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>3</strong> actes
313
              <ul>
314
                <li>...</li>
315
              </ul></li>
316
            </ul>
317
            </li>
318
          </ul>
319
        </div>
320

    
321
        <div class="frame">
322
          <h3>En diagnostic depuis le 5 octobre 2010</h3>
323
          <ul>
324
            <li><strong>6</strong> actes réalisés et facturés <button class="blind">détails</button>
325
            <ul>
326
              <li>Facturation <strong>28</strong> (assuré: Sophie Fonfec) - <strong>6</strong> actes
327
              <ul>
328
                <li>...</li>
329
              </ul></li>
330
            </ul>
331
            </li>
332
          </ul>
333
        </div>
334

    
335
        <div class="frame">
336
          <h3>En traitement depuis le 12 décembre 2010</h3>
337
          <ul>
338
            <li>Prise en charge depuis le 12 décembre 2010
339
            <ul>
340
              <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
341
              <ul><li>...</li></ul></li>
342
              <li><strong>10</strong> actes réalisés et facturés en prolongation <button class="blind">détails</button>
343
              <ul><li>...</li></ul></li>
344
              <li><strong>6</strong> actes réalisés et non pris en charge <button class="blind">détails</button>
345
              <ul><li>...</li></ul></li>
346
            </ul>
347
            </li>
348
            <li>Prise en charge depuis le 15 décembre 2011
349
            <ul>
350
              <li><strong>30</strong> actes réalisés et facturés <button class="blind">détails</button>
351
              <ul><li>...</li></ul></li>
352
              <li><strong>6</strong> actes réalisés non facturés <button class="blind">détails</button>
353
              <ul><li>...</li></ul></li>
354
              <li><button id="add-prolongation-btn">Ajouter une prolongation</button></li>
355
            </ul>
356
            </li>
357
          </ul>
358
        </div>
359

    
360

    
361
      </div>
362

    
363
      <div id="overlay">
364
        <p>
365
        Exemples pour cet onglet :
366
        <a href="#" onclick="$('#patient-diag').show(); $('#patient-traitement').hide(); $('#patient-traitement-charge').hide();">Patient en diagnostic</a> -
367
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').show(); $('#patient-traitement-charge').hide();">Patient en traitement</a> -
368
        <a href="#" onclick="$('#patient-diag').hide(); $('#patient-traitement').hide(); $('#patient-traitement-charge').show();">Patient en traitement avec prise en charge</a>
369
        </p>
370
      </div>
371

    
372
    </div>
373

    
374
    <!--
375
    <div id="tabs-5">
376
    </div>
377
    -->
378

    
379
    <div id="tabs-6">
380
    </div>
381

    
382
    <div id="tabs-7">
383
    </div>
384

    
385
    <div id="tabs-8">
386
    </div>
387
  </div>
388
</div>
389
{% endblock %}
390

    
391
{% block dialogs %}
392
<div id="change-record" style="display: none;" data-id="{{ object.id }}" data-service-id="{{ service_id }}">
393
 </div>
394

    
395
  <div id="dossier-histo-dlg" style="display: none;">
396
   <dl>
397
    {% for state in states %}
398
    <dt><b>{{ state.created|date:"d/m/Y" }}</b> <small>(date info: {{ state.date_selected|date:"d/m/Y" }})</small></dt>
399
    <dd>
400
    <p><b>{{ state.status.name }}</b>; <label>commentaire:</label> {{ state.comment }}</p>
401
    <p>changement par {{ state.author }}</p>
402
    </dd>
403
    {% endfor%}
404
   </dl>
405
  </div>
406

    
407
  <div id="new-address-dlg" style="display: none;">
408
   <form>
409
   <table>
410
   <tr>
411
   <td>
412
   <label for="id_numero">Numéro :</label><br/>
413
   <input id="id_numero" class="numero" name="numero" size="10"/>
414
   </td>
415
   <td>
416
   <label for="id_rue">Rue :</label><br/>
417
   <input id="id_rue" class="rue" name="rue" size="35"/>
418
   </td>
419
   </tr>
420
   <tr>
421
   <td>
422
   <label for="id_cp">Code postal :</label><br/>
423
   <input id="id_cp" class="cp" name="cp" size="10"/>
424
   </td>
425
   <td>
426
   <label for="id_ville">Ville :</label><br/>
427
   <input id="id_ville" class="ville" name="ville" size="35"/>
428
   </td>
429
   </tr>
430
   </table>
431
   <p>
432
   <br/>
433
   <label for="id_tel">Téléphone :</label>
434
   <input id="id_tel" class="tel" name="tel" size="35"/>
435
   <button>+</button>
436
   <p>
437
   <input type="checkbox">Lieu de vie</input>
438
   </p>
439
   </form>
440

    
441
  </div>
442

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

    
454
  <div id="add-prolongation-dlg" style="display: none;">
455
   <div>
456
    <label for="id_pour">Pour :</label>
457
    <input id="id_pour" class="pour" name="pour" size="4" value="10"/> actes
458
   </div>
459
  </div>
460
{% endblock %}
461

    
(7-7/8)