1
|
<form method="post" id="policyholder-form" class="patientrecordform">{% csrf_token %}
|
2
|
|
3
|
<div class="contact patient">
|
4
|
<h4>{{ object.first_name }} <span class="lastname">{{ object.last_name }}</span> (Patient)</h4>
|
5
|
{% if nb_place_of_lifes > 1 %}
|
6
|
<p>{{ nb_place_of_lifes }} lieux de vie</p>
|
7
|
{% endif %}
|
8
|
<div class="right">Assuré
|
9
|
<input type="radio"
|
10
|
{% if object.policyholder.id == object.id %} checked="checked" {% endif %}
|
11
|
id="id_policyholder-policyholder_{{ object.id }}"
|
12
|
value="{{ object.id }}"
|
13
|
class="policyholder-radio"
|
14
|
name="policyholder-policyholder">
|
15
|
<button type="button" data-id="{{ object.id }}" class="update-contact-btn icon-edit" title="Modifier"></button>
|
16
|
</div>
|
17
|
<div>
|
18
|
<ul>
|
19
|
{% if object.parente %}
|
20
|
<li><label>Lien avec le patient :</label>
|
21
|
{{ object.parente }}</li>
|
22
|
{% endif %}
|
23
|
{% if object.parental_authority %}
|
24
|
<li><label>Garde parental :</label>
|
25
|
{{ object.parental_authority }}</li>
|
26
|
{% endif %}
|
27
|
{% if object.mobile %}
|
28
|
<li>
|
29
|
<span class="icon-user-space">{{ object.mobile }} (perso)</span>
|
30
|
</li>
|
31
|
{% endif %}
|
32
|
{% if object.phone %}
|
33
|
<li>
|
34
|
<span class="icon-user-space">{{ object.phone }} (pro)</span>
|
35
|
</li>
|
36
|
{% endif %}
|
37
|
{% if object.email %}
|
38
|
<li>
|
39
|
<label>Courriel :</label>
|
40
|
{{ object.email }}
|
41
|
</li>
|
42
|
{% endif %}
|
43
|
{% if object.job %}
|
44
|
<li>
|
45
|
<label>Profession :</label>
|
46
|
{{ object.job }}
|
47
|
</li>
|
48
|
{% endif %}
|
49
|
{% if object.contact_comment %}
|
50
|
<li>
|
51
|
<label>Commentaire :</label>
|
52
|
{{ object.contact_comment }}
|
53
|
</li>
|
54
|
{% endif %}
|
55
|
<li><label>Données d'assuré social</label>
|
56
|
<!-- <button class="blind">détails</button>-->
|
57
|
<ul>
|
58
|
{% if object.social_security_id %}
|
59
|
<li><label>Numéro d'assuré social :</label>
|
60
|
{{ object.social_security_id }} {{ object.get_control_key }}</li>
|
61
|
{% endif %}
|
62
|
{% if object.birthdate %}
|
63
|
<li><label>Date de naissance :</label>
|
64
|
{{ object.birthdate|date:"SHORT_DATE_FORMAT" }}</li>
|
65
|
{% endif %}
|
66
|
{% if object.birthplace %}
|
67
|
<li><label>Lieu de naissance :</label>
|
68
|
{{ object.birthplace }}</li>
|
69
|
{% endif %}
|
70
|
{% if object.begin_rights %}
|
71
|
<li><label>Début de droits :</label>
|
72
|
{{ object.begin_rights }}</li>
|
73
|
{% endif %}
|
74
|
{% if object.end_rights %}
|
75
|
<li><label>Fin de droits :</label>
|
76
|
{{ object.end_rights }}</li>
|
77
|
{% endif %}
|
78
|
{% if object.health_center %}
|
79
|
<li><label>Caisse :</label>
|
80
|
{{ object.health_center }} ({{ object.health_center.address }} {{ object.health_center.address_complement }} {{ object.health_center.zip_code }} {{ object.health_center.city }})</li>
|
81
|
{% endif %}
|
82
|
{% if object.other_health_center %}
|
83
|
<li><label>Centre spécifique :</label>
|
84
|
{{ object.other_health_center }}</li>
|
85
|
{% endif %}
|
86
|
{% if object.management_code %}
|
87
|
<li><label>Code de gestion :</label>
|
88
|
{{ object.management_code }}</li>
|
89
|
{% endif %}
|
90
|
<li><label>Tiers-payant :</label>
|
91
|
{% if object.thirdparty_payer %}
|
92
|
Oui
|
93
|
{% else %}
|
94
|
Non
|
95
|
{% endif %}
|
96
|
</li>
|
97
|
{% if object.twinning_rank %}
|
98
|
<li><label>Rang (gémellité) :</label>
|
99
|
{{ object.twinning_rank }}</li>
|
100
|
{% endif %}
|
101
|
</ul>
|
102
|
</li>
|
103
|
</ul>
|
104
|
<hr>
|
105
|
<span>
|
106
|
<form method="post" id="contact-form">{% csrf_token %}
|
107
|
<label>Commentaire </label> <button class="save enable-on-change" id="btn-maj">✔</button><br/>
|
108
|
{{ forms.contact.contact_comment }}
|
109
|
</span>
|
110
|
</form>
|
111
|
</div>
|
112
|
</div>
|
113
|
|
114
|
<button type="button" id="new-address-btn">Nouvelle adresse</button>
|
115
|
<button type="button" id="new-contact-btn">Nouveau contact</button>
|
116
|
|
117
|
|
118
|
|
119
|
{% for contact in object.contacts.all %}
|
120
|
{% if not contact.addresses.all %}
|
121
|
<div class="contact">
|
122
|
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}
|
123
|
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4>
|
124
|
<div class="right">Assuré
|
125
|
<input type="radio"
|
126
|
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %}
|
127
|
id="id_policyholder-policyholder_{{ contact.id }}"
|
128
|
value="{{ contact.id }}"
|
129
|
class="policyholder-radio"
|
130
|
name="policyholder-policyholder">
|
131
|
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button>
|
132
|
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button>
|
133
|
</div>
|
134
|
<div>
|
135
|
<ul>
|
136
|
{% if contact.parente %}
|
137
|
<li><label>Lien avec le patient :</label>
|
138
|
{{ contact.parente }}</li>
|
139
|
{% endif %}
|
140
|
{% if contact.mobile %}
|
141
|
<li>
|
142
|
<span class="icon-user-space">{{ contact.mobile }} (perso)</span>
|
143
|
</li>
|
144
|
{% endif %}
|
145
|
{% if contact.phone %}
|
146
|
<li>
|
147
|
<span class="icon-user-space">{{ contact.phone }} (pro)</span>
|
148
|
</li>
|
149
|
{% endif %}
|
150
|
{% if contact.email %}
|
151
|
<li>
|
152
|
<label>Courriel :</label>
|
153
|
{{ contact.email }}
|
154
|
</li>
|
155
|
{% endif %}
|
156
|
{% if contact.job %}
|
157
|
<li>
|
158
|
<label>Profession :</label>
|
159
|
{{ contact.job }}
|
160
|
</li>
|
161
|
{% endif %}
|
162
|
{% if contact.contact_comment %}
|
163
|
<li>
|
164
|
<label>Commentaire :</label>
|
165
|
{{ contact.contact_comment }}
|
166
|
</li>
|
167
|
{% endif %}
|
168
|
<li><label>Données d'assuré social</label>
|
169
|
<!-- <button class="blind">détails</button>-->
|
170
|
<ul>
|
171
|
{% if contact.social_security_id %}
|
172
|
<li><label>Numéro d'assuré social :</label>
|
173
|
{{ contact.social_security_id }} {{ contact.get_control_key }}</li>
|
174
|
{% endif %}
|
175
|
{% if contact.birthdate %}
|
176
|
<li><label>Date de naissance :</label>
|
177
|
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li>
|
178
|
{% endif %}
|
179
|
{% if contact.birthplace %}
|
180
|
<li><label>Lieu de naissance :</label>
|
181
|
{{ contact.birthplace }}</li>
|
182
|
{% endif %}
|
183
|
{% if contact.begin_rights %}
|
184
|
<li><label>Début de droits :</label>
|
185
|
{{ contact.begin_rights }}</li>
|
186
|
{% endif %}
|
187
|
{% if contact.end_rights %}
|
188
|
<li><label>Fin de droits :</label>
|
189
|
{{ contact.end_rights }}</li>
|
190
|
{% endif %}
|
191
|
{% if contact.health_center %}
|
192
|
<li><label>Centre de santé :</label>
|
193
|
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li>
|
194
|
{% endif %}
|
195
|
{% if contact.management_code %}
|
196
|
<li><label>Code de gestion :</label>
|
197
|
{{ contact.management_code }}</li>
|
198
|
{% endif %}
|
199
|
<li><label>Tiers-payant :</label>
|
200
|
{% if contact.thirdparty_payer %}
|
201
|
Oui
|
202
|
{% else %}
|
203
|
Non
|
204
|
{% endif %}
|
205
|
</li>
|
206
|
{% if contact.twinning_rank %}
|
207
|
<li><label>Rang (gémellité) :</label>
|
208
|
{{ contact.twinning_rank }}</li>
|
209
|
{% endif %}
|
210
|
</ul>
|
211
|
</li>
|
212
|
</ul>
|
213
|
</div>
|
214
|
</div>
|
215
|
{% endif %}
|
216
|
{% endfor %}
|
217
|
{% for address in addresses %}
|
218
|
<div class="frame">
|
219
|
<h3>{{ address }}</h3>
|
220
|
<div class="buttons">
|
221
|
<button type="button" data-id="{{ address.id }}" class="del-address icon-minus" title="Supprimer"></button>
|
222
|
<button type="button" data-id="{{ address.id }}" class="update-address-btn icon-edit" title="Modifier"></button>
|
223
|
</div>
|
224
|
<div class="right">
|
225
|
<ul class="ajax_messages" style="display: none;"></ul>
|
226
|
<input type="checkbox" data-id="{{ address.id }}" class="place_of_life" {% if address.place_of_life %}checked{% endif %}>Lieu de vie</input>
|
227
|
</div>
|
228
|
{% if address.phone %}<p><span class="icon-home-space">{{ address.phone }}</span></p>{% endif %}
|
229
|
{% if address.comment %}<p><label>Commentaire :</label>{{ address.comment }}</p>{% endif %}
|
230
|
{% if not address.phone and not address.comment %}<p> <!-- intentionaly empty --></p>{% endif %}
|
231
|
{% for contact in address.patientcontact_set.all %}
|
232
|
{% if contact.id != object.id %}
|
233
|
<div class="contact">
|
234
|
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %}
|
235
|
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4>
|
236
|
<div class="right">Assuré
|
237
|
<input type="radio"
|
238
|
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %}
|
239
|
id="id_policyholder-policyholder_{{ contact.id }}"
|
240
|
value="{{ contact.id }}"
|
241
|
class="policyholder-radio"
|
242
|
name="policyholder-policyholder">
|
243
|
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button>
|
244
|
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button>
|
245
|
</div>
|
246
|
<div>
|
247
|
<ul>
|
248
|
{% if contact.parente %}
|
249
|
<li><label>Lien avec le patient :</label>
|
250
|
{{ contact.parente }}</li>
|
251
|
{% endif %}
|
252
|
{% if contact.mobile %}
|
253
|
<li>
|
254
|
<span class="icon-user-space">{{ contact.mobile }} (perso)</span>
|
255
|
</li>
|
256
|
{% endif %}
|
257
|
{% if contact.phone %}
|
258
|
<li>
|
259
|
<span class="icon-user-space">{{ contact.phone }} (pro)</span>
|
260
|
</li>
|
261
|
{% endif %}
|
262
|
{% if contact.email %}
|
263
|
<li>
|
264
|
<label>Courriel :</label>
|
265
|
{{ contact.email }}
|
266
|
</li>
|
267
|
{% endif %}
|
268
|
{% if contact.job %}
|
269
|
<li>
|
270
|
<label>Profession :</label>
|
271
|
{{ contact.job }}
|
272
|
</li>
|
273
|
{% endif %}
|
274
|
{% if contact.contact_comment %}
|
275
|
<li>
|
276
|
<label>Commentaire :</label>
|
277
|
{{ contact.contact_comment }}
|
278
|
</li>
|
279
|
{% endif %}
|
280
|
<li><label>Données d'assuré social</label>
|
281
|
<!-- <button class="blind">détails</button> -->
|
282
|
<ul>
|
283
|
{% if contact.social_security_id %}
|
284
|
<li><label>Numéro d'assuré social :</label>
|
285
|
{{ contact.social_security_id }} {{ contact.get_control_key }}</li>
|
286
|
{% endif %}
|
287
|
{% if contact.birthdate %}
|
288
|
<li><label>Date de naissance :</label>
|
289
|
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li>
|
290
|
{% endif %}
|
291
|
{% if contact.birthplace %}
|
292
|
<li><label>Lieu de naissance :</label>
|
293
|
{{ contact.birthplace }}</li>
|
294
|
{% endif %}
|
295
|
{% if contact.begin_rights %}
|
296
|
<li><label>Début de droits :</label>
|
297
|
{{ contact.begin_rights }}</li>
|
298
|
{% endif %}
|
299
|
{% if contact.end_rights %}
|
300
|
<li><label>Fin de droits :</label>
|
301
|
{{ contact.end_rights }}</li>
|
302
|
{% endif %}
|
303
|
{% if contact.health_center %}
|
304
|
<li><label>Centre de santé :</label>
|
305
|
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li>
|
306
|
{% endif %}
|
307
|
{% if contact.management_code %}
|
308
|
<li><label>Code de gestion :</label>
|
309
|
{{ contact.management_code }}</li>
|
310
|
{% endif %}
|
311
|
<li><label>Tiers-payant :</label>
|
312
|
{% if contact.thirdparty_payer %}
|
313
|
Oui
|
314
|
{% else %}
|
315
|
Non
|
316
|
{% endif %}
|
317
|
</li>
|
318
|
{% if contact.twinning_rank %}
|
319
|
<li><label>Rang (gémellité) :</label>
|
320
|
{{ contact.twinning_rank }}</li>
|
321
|
{% endif %}
|
322
|
</ul>
|
323
|
</li>
|
324
|
</ul>
|
325
|
</div>
|
326
|
</div>
|
327
|
{% endif %}
|
328
|
{% endfor %}
|
329
|
</div>
|
330
|
{% endfor %}
|
331
|
</form>
|
332
|
|