Projet

Général

Profil

Télécharger (13,4 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_print.html @ e4d8c581

1
{% load dossiers %}
2
<html>
3
  <style type="text/css">
4
    @page {
5
    size: a4 portrait;
6
    @frame {
7
    top: 2cm;
8
    left: 1cm;
9
    width: 19cm;
10
    background-color:black;
11
    height: 18cm;
12
    }
13
    @frame header_frame {
14
    -pdf-frame-content: header_frame;
15
    top: 1cm;
16
    margin-top: 0;
17
    margin-left: 1cm;
18
    margin-right: 1cm;
19
    height: 1cm;
20
    }
21
    }
22
    body {font-size: 0.4cm;}
23
    table {margin-top:5pt;font-weight: normal}
24
    td, th {padding: 3pt 4pt; text-align:left; border: 1pt solid #aaaaaa}
25
    button {display: none; }
26
    li {list-style-type: none;}
27
    div.frame h3 {border-bottom: 1pt solid #555; padding: 2pt 3pt}
28
    .normal {font-weight: normal}
29
    .block h3 {background-color:#cccccc;padding: 2pt 5pt}
30
    label {font-weight: bold}
31
    .screen-only {display: none}
32

    
33

    
34
    div.block h2 { background-color: #EFEFEF; padding: 2pt 5pt}
35
    table th, table td {background-color:#aaaaaa;font-weight: normal}
36
  </style>
37

    
38
  <div id="header_frame">
39
    <h1><span class="lastname">{{ object.last_name }}</span> {{ object.first_name }} - Dossier {{ object.id }}</h1>
40
  </div>
41

    
42
  <div class="block">
43
    <h2>Général</h2>
44
    <ul>
45
      <li><label>N° dossier papier :</label> {{ object.paper_id|default_if_none:"Non renseigné" }}</li>
46
      <li><label>N° dossier informatique :</label> <span class="lightgray">{{ object.id }}</span></li>
47
      <li><label>Nom :</label> <span class="lastname">{{ object.last_name }}</span></li>
48
      <li><label>Prénom :</label> {{ object.first_name }}</li>
49
      <li><label>Genre :</label> {{ object.get_gender_display|default_if_none:"Non renseigné" }}</li>
50
      <li><label>Date de naissance :</label> {% if object.birthdate %}{{ object.birthdate|date:"d/m/Y" }} ({{ object.age }}){% else %}Non renseignée{% endif %}</li>
51
      <li>
52
        {% if nb_place_of_lifes == 1 %}
53
        <label>Lieux de vie :</label>
54
        {% elif nb_place_of_lifes > 1 %}
55
        <label class="highlight">{{ nb_place_of_lifes }} lieux de vie :</label>
56
        {% else %}
57
        <label class="highlight">Aucun lieu de vie d'indiqué</label>
58
        {% endif %}
59
        {% if object.contact_comment %}
60
        <p>{{ object.contact_comment }}</p>
61
        {% endif %}
62
        {% if object.addresses.all %}
63
        <ul>
64
          {% for address in object.addresses.all %}
65
          {% if address.place_of_life %}<li>{{ address.display_name }}</li>{% endif %}
66
          {% endfor %}
67
        </ul>
68
        {% endif %}
69
      </li>
70
      <li><label>Date de contact :</label> {{ initial_state.date_selected|date:"d/m/Y" }}</li>
71
      <li><label>Date de création :</label> {{ object.created|date:"d/m/Y" }}</li>
72
      <li><label>Lieu de socialisation :</label> {{ object.school|default_if_none:"Non renseigné" }}</li>
73
      {% include "dossiers/patientrecord_print_coordinators.html" %}
74
      <li><label>Commentaire </label><br/>
75
        {{ object.comment }}
76
      </li>
77
      <li><label>Dernier acte :</label>
78
        {% if last_rdv %}
79
        {% if last_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
80
          {{ last_rdv.start_datetime|date:"d/m/Y" }} -
81
          {% for participant in last_rdv.participants %}
82
          <span class="lastname">{{ participant.last_name }}</span> -
83
          {% endfor %}
84
          {{ last_rdv.act_type }}
85
          {% else %}
86
          Aucun
87
          {% endif %}
88
          {% if last_rdv.is_absent %} ({{ last_rdv.act_state }})</span>{% endif %}
89
      </li>
90
      <li><label>Prochain rendez-vous :</label>
91
        {% if next_rdv %}
92
        {% if next_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
93
          {{ next_rdv.start_datetime|date:"d/m/Y" }} -
94
          {% for participant in next_rdv.participants.all %}
95
          <span class="lastname">{{ participant.last_name }}</span> -
96
          {% endfor %}
97
          {{ next_rdv.act_type }}
98
          {% else %}
99
          Aucun
100
          {% endif %}
101
          {% if next_rdv.is_absent %} ({{ next_rdv.act.get_state }})</span>{% endif %}
102
      </li>
103
    </ul>
104
    {% if future_state %}
105
    <p><strong>État à venir du dossier:</strong>  {{ current_state.status.name.lower }} à partir du {{ current_state.date_selected|date:"d/m/Y" }}</p>
106
    {% else %}
107
    <p><strong>État courant du dossier:</strong> {{ current_state.status.name.lower }} depuis le {{ current_state.date_selected|date:"d/m/Y" }}</p>
108
    {% endif %}
109
    {% if object.pause_comment %}<p><label>Commentaire de la pause facturation:</label><br />{{ object.pause_comment }}</p>{% endif %}
110
  </div>
111

    
112
  <pdf:nextpage />
113

    
114
  <div class="block">
115
    <h2>Fiche administrative</h2>
116
    <h3>Inscription</h3>
117
    <ul>
118
      <li><label>Motif(analyse)</label> {{ object.analysemotive|default_if_none:'' }}</li>
119
      <li><label>Motif(famille)</label> {{ object.familymotive|default_if_none:'' }}</li>
120
      <li><label>Conseilleur</label> {{ object.provenance|default_if_none:'' }}</li>
121
      <li><label>Demandeur</label> {{ object.advicegiver|default_if_none:'' }}</li>
122
      <li><label>Lieu de provenance</label> {{ object.provenanceplace|default_if_none:'' }}</li>
123
    </ul>
124

    
125
    <h3>Sortie</h3>
126
    <ul>
127
      <li><label>Motif de sortie</label> {{ object.outmotive|default_if_none:'' }}</li>
128
      <li><label>Orientation</label> {{ object.outto|default_if_none:'' }}</li>
129
    </ul>
130

    
131
    <h3>Famille</h3>
132
    <ul>
133
      <li><label>Place dans la fratrie</label> {{ object.sibship_place|default_if_none:'' }}</li>
134
      <li><label>Nombre d'enfants dans la fratrie</label> {{ object.nb_children_family|default_if_none:'' }}</li>
135
      <li><label>Rang (gémellité)</label> {{ object.twinning_rank|default_if_none:'Aucun' }}</li>
136
      <li><label>Autorité parentale</label> {{ object.parental_authority|default_if_none:'' }}</li>
137
      <li><label>Situation familiale</label> {{ object.family_situation|default_if_none:'' }}</li>
138
      <li><label>Garde parentale</label> {{ object.child_custody|default_if_none:'' }}</li>
139
      <li><label>Profession de la mère</label> {{ object.job_mother|default_if_none:'' }}</li>
140
      <li><label>Profession du père</label> {{ object.job_father|default_if_none:'' }}</li>
141
      <li><label>Régime matrimonial de la mère</label> {{ object.rm_mother|default_if_none:'' }}</li>
142
      <li><label>Régime matrimonial du père</label> {{ object.rm_father|default_if_none:'' }}</li>
143
      <li><label>Commentaire</label> {{ object.family_comment|default_if_none:'' }}</li>
144
    </ul>
145

    
146
    <h3>Transport</h3>
147
    <ul>
148
      <li><label>Type de transport</label> {{ object.transporttype|default_if_none:'' }}</li>
149
      <li><label>Compagnie de transport</label> {{ object.transportcompany|default_if_none:'' }}</li>
150
      {% if last_prescription %}<li><label>Dernière prescription le</label> {{ last_prescription.created }}</li>{% endif %}
151
    </ul>
152

    
153
    <h3 style="background-color:#cccccc">Suivi du patient</h3>
154
    <ul>
155
      {% include "dossiers/patientrecord_print_coordinators.html" %}
156
      <li><label>Médecin extérieur</label> {{ object.externaldoctor|default_if_none:'' }}</li>
157
      <li><label>Intervenant extérieur</label> {{ object.externalintervener|default_if_none:'' }}</li>
158
    </ul>
159

    
160
    <h3>Mesures de protection</h3>
161
    <ul>
162
      {% for protection in object.protectionstate_set.all %}
163
      <li>
164
        <p>Depuis le {{ protection.start_date }} : {{ protection.status.name }}</p>
165
        <ul>
166
          {% if protection.end_date %}<li><label>Date de fin</label> : {{ protection.end_date }}</li>{% endif %}
167
          {% if protection.comment %}<li><label>Commentaire</label> : {{ protection.comment }}</li>{% endif %}
168
        </ul>
169
      </li>
170
      {% endfor %}
171
    </ul>
172
  </div>
173

    
174
  <pdf:nextpage />
175

    
176
  <div class="block">
177
    <h2>Adresses/contacts</h2>
178
    {% if object.policyholder.contact_comment %}
179
    <p>
180
      <label>Commentaire</label>
181
      {{ object.policyholder.contact_comment }}
182
    </p>
183
    {% endif %}
184
    <div>
185
      <table>
186
        <tr><td><h4 class="icon-user-space">Patient{% if object.policyholder.id == object.id %}<span class="normal">(Assuré)</span>{% endif %}</h4></td><td>{% include "dossiers/patientrecord_tab3_contact.html" with contact=object %}</td></tr>
187
        {% for contact in object.contacts.all %}
188
        {% if not contact.addresses.all %}
189
        <tr><td><h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}
190
              {{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span>{% if object.policyholder.id == contact.id %}<span class="normal">(Assuré)</span>{% endif %} {% if contact.id == object.id %} (PATIENT){% endif %}</h4></td><td>
191
            {% include "dossiers/patientrecord_tab3_contact.html" %}
192
        </td></tr>
193
        {% endif %}
194
        {% endfor %}
195
      </table>
196
    </div>
197

    
198
    <div>
199
      <table>
200
        {% for address in addresses %}
201
        <tr><td colspan="2">
202
            <h3>{{ address }}{% if address.place_of_life %}<span class="normal">(lieu de vie)</span>{% endif %}</h3>
203
            {% if address.phone %}<p><label>Téléphone</label> {{ address.phone|phone }}</span></p>{% endif %}
204
{% if address.comment %}<p><label>Commentaire :</label>{{ address.comment }}</p>{% endif %}</td></tr>
205
{% for contact in address.patientcontact_set.all  %}
206
{% if contact.id != object.id %}
207
<tr><td>
208
    <h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span>{% if object.policyholder.id == contact.id %}<span class="normal">(Assuré)</span>{% endif %}{% if contact.id == object.id %} (PATIENT){% endif %}</h4>
209
  </td><td>
210
    <div>
211
      {% include "dossiers/patientrecord_tab3_contact.html" %}
212
    </div>
213
</td></tr>
214
{% endif %}
215
{% endfor %}
216
</div>
217
</table>
218
</div>
219
{% endfor %}
220
</div>
221

    
222
<pdf:nextpage />
223

    
224
<div class="block">
225
  <h2>Prise en charge</h2>
226
  {% include "dossiers/patientrecord_tab4_notifs.html" %}
227
</div>
228

    
229
<pdf:nextpage />
230

    
231
<div class="block">
232
  <h2>Actes passés</h2>
233
  {% include "dossiers/patientrecord_tab5_actes_passes.html" %}
234
</div>
235

    
236
<pdf:nextpage />
237

    
238
<div class="block">
239
  <h2>Prochains rendez-vous</h2>
240
  {% include "dossiers/patientrecord_tab6_next_rdv.html" %}
241
</div>
242

    
243
<pdf:nextpage />
244

    
245
<div class="block">
246
  <h2>Socialisation</h2>
247
  {% include "dossiers/patientrecord_tab7_socialisation.html" %}
248
</div>
249

    
250
<pdf:nextpage />
251

    
252
<div class="block">
253
  <h2>Données à caractère médical</h2>
254
    <ul>
255
      <li><label>Taille (cm):</label> {{ object.size|default_if_none:'' }}</li>
256
      <li><label>Poids (gr):</label> {{ object.weight|default_if_none:'' }}</li>
257
      <li><label>Terme en semaines:</label> {{ object.pregnancy_term|default_if_none:'' }}</li>
258
      <li><label>Périmètre cranien:</label> {{ object.cranium_perimeter|default_if_none:'' }}</li>
259
      <li><label>Périmètre thoracique:</label> {{ object.chest_perimeter|default_if_none:'' }}</li>
260
      <li><label>Test d'Apgar (1):</label> {{ object.apgar_score_one|default_if_none:'' }}</li>
261
      <li><label>Test d'Apgar (5):</label> {{ object.apgar_score_two|default_if_none:'' }}</li>
262
      <li><label>Axe I : catégories cliniques</label>
263
        <ul>
264
        {% for m in object.mises_1.all %}
265
        <li>{{ m }}</li>
266
        {% endfor %}
267
        </ul>
268
      </li>
269

    
270
      <li><label>Axe II : facteurs organiques</label>
271
        <ul>
272
        {% for m in object.mises_2.all %}
273
        <li>{{ m }}</li>
274
        {% endfor %}
275
        </ul>
276
      </li>
277

    
278
      <li><label>Axe III : facteurs environnementaux</label>
279
        <ul>
280
        {% for m in object.mises_3.all %}
281
        <li>{{ m }}</li>
282
        {% endfor %}
283
        </ul>
284
      </li>
285
      {% if object.deficiency_intellectual %}
286
      <li><label>Déficiences intellectuelles: </label> {{ object.get_deficiency_intellectual_display }}</li>
287
      {% endif %}
288
      {% if object.deficiency_autism_and_other_ted %}
289
      <li><label>Autisme et autres TED:</label> {{ object.get_deficiency_autism_and_other_ted_display }}</li>
290
      {% endif %}
291
      {% if object.deficiency_mental_disorder %}
292
      <li><label>Troubles psychiques:</label> {{ object.get_deficiency_mental_disorder_display }}</li>
293
      {% endif %}
294
      {% if object.deficiency_learning_disorder %}
295
      <li><label>Troubles du langage et des apprentissages:</label> {{ object.get_deficiency_learning_disorder_display }}</li>
296
      {% endif %}
297
      {% if object.deficiency_auditory %}
298
      <li><label>Déficiences auditives:</label> {{ object.get_deficiency_auditory_display }}</li>
299
      {% endif %}
300
      {% if object.deficiency_visual %}
301
      <li><label>Déficiences visuelles:</label> {{ object.get_deficiency_visual_display }}</li>
302
      {% endif %}
303
      {% if object.deficiency_motor %}
304
      <li><label>Déficiences motrices:</label> {{ object.get_deficiency_motor_display }}</li>
305
      {% endif %}
306
      {% if object.deficiency_metabolic_disorder %}
307
      <li><label>Déficiences métaboliques:</label> {{ object.get_deficiency_metabolic_disorder_display }}</li>
308
      {% endif %}
309
      {% if object.deficiency_brain_damage %}
310
      <li><label>Cérébro-lésions:</label> {{ object.get_deficiency_brain_damage_display }}</li>
311
      {% endif %}
312
      {% if object.deficiency_polyhandicap %}
313
      <li><label>Polyhandicap</label></li>
314
      {% endif %}
315
      {% if object.deficiency_behavioral_disorder %}
316
      <li><label>Troubles de la conduite et du comportement:</label> {{ object.get_deficiency_brain_damage_display }}</li>
317
      {% endif %}
318
      {% if object.deficiency_in_diagnostic %}
319
      <li><label>En diagnostic</label></li>
320
      {% endif %}
321
      {% if object.deficiency_other_disorder %}
322
      <li><label>Autres types de déficience:</label> {{ object.get_deficiency_other_disorder_display }}</li>
323
      {% endif %}
324
    </ul>
325
</div>
326

    
327
</html>
(14-14/33)