Révision eb3a7e71
Ajouté par Jérôme Schneider il y a environ 10 ans
calebasse/dossiers/templates/dossiers/patientrecord_tab3_adresses.html | ||
---|---|---|
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 |
<div class="right">Assuré |
|
6 |
<input type="radio" |
|
7 |
{% if object.policyholder.id == object.id %} checked="checked" {% endif %} |
|
8 |
id="id_policyholder-policyholder_{{ object.id }}" |
|
9 |
value="{{ object.id }}" |
|
10 |
class="policyholder-radio" |
|
11 |
name="policyholder-policyholder"> |
|
12 |
<button type="button" data-id="{{ object.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
13 |
</div> |
|
14 |
<div> |
|
15 |
<ul> |
|
16 |
{% if object.parente %} |
|
17 |
<li><label>Lien avec le patient :</label> |
|
18 |
{{ object.parente }}</li> |
|
19 |
{% endif %} |
|
20 |
{% if object.mobile %} |
|
21 |
<li> |
|
22 |
<span class="icon-user-space">{{ object.mobile }} (perso)</span> |
|
23 |
</li> |
|
24 |
{% endif %} |
|
25 |
{% if object.phone %} |
|
26 |
<li> |
|
27 |
<span class="icon-user-space">{{ object.phone }} (pro)</span> |
|
28 |
</li> |
|
29 |
{% endif %} |
|
30 |
{% if object.email %} |
|
31 |
<li> |
|
32 |
<label>Courriel :</label> |
|
33 |
{{ object.email }} |
|
34 |
</li> |
|
35 |
{% endif %} |
|
36 |
{% if object.job %} |
|
37 |
<li> |
|
38 |
<label>Profession :</label> |
|
39 |
{{ object.job }} |
|
40 |
</li> |
|
41 |
{% endif %} |
|
42 |
{% if object.contact_comment %} |
|
43 |
<li> |
|
44 |
<label>Commentaire :</label> |
|
45 |
{{ object.contact_comment }} |
|
46 |
</li> |
|
47 |
{% endif %} |
|
48 |
<li><label>Données d'assuré social</label> |
|
49 |
<!-- <button class="blind">détails</button>--> |
|
50 |
<ul> |
|
51 |
{% if object.social_security_id %} |
|
52 |
<li><label>Numéro d'assuré social :</label> |
|
53 |
{{ object.social_security_id }} {{ object.get_control_key }}</li> |
|
54 |
{% endif %} |
|
55 |
{% if object.birthdate %} |
|
56 |
<li><label>Date de naissance :</label> |
|
57 |
{{ object.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
58 |
{% endif %} |
|
59 |
{% if object.birthplace %} |
|
60 |
<li><label>Lieu de naissance :</label> |
|
61 |
{{ object.birthplace }}</li> |
|
62 |
{% endif %} |
|
63 |
{% if object.begin_rights %} |
|
64 |
<li><label>Début de droits :</label> |
|
65 |
{{ object.begin_rights }}</li> |
|
66 |
{% endif %} |
|
67 |
{% if object.end_rights %} |
|
68 |
<li><label>Fin de droits :</label> |
|
69 |
{{ object.end_rights }}</li> |
|
70 |
{% endif %} |
|
71 |
{% if object.health_center %} |
|
72 |
<li><label>Caisse :</label> |
|
73 |
{{ object.health_center }} ({{ object.health_center.address }} {{ object.health_center.address_complement }} {{ object.health_center.zip_code }} {{ object.health_center.city }})</li> |
|
74 |
{% endif %} |
|
75 |
{% if object.other_health_center %} |
|
76 |
<li><label>Centre spécifique :</label> |
|
77 |
{{ object.other_health_center }}</li> |
|
78 |
{% endif %} |
|
79 |
{% if object.management_code %} |
|
80 |
<li><label>Code de gestion :</label> |
|
81 |
{{ object.management_code }}</li> |
|
82 |
{% endif %} |
|
83 |
<li><label>Tiers-payant :</label> |
|
84 |
{% if object.thirdparty_payer %} |
|
85 |
Oui |
|
86 |
{% else %} |
|
87 |
Non |
|
88 |
{% endif %} |
|
89 |
</li> |
|
90 |
{% if object.twinning_rank %} |
|
91 |
<li><label>Rang (gémellité) :</label> |
|
92 |
{{ object.twinning_rank }}</li> |
|
93 |
{% endif %} |
|
94 |
</ul> |
|
95 |
</li> |
|
96 |
</ul> |
|
97 |
</div> |
|
98 |
</div> |
|
99 |
|
|
100 |
<button type="button" id="new-address-btn">Nouvelle adresse</button> |
|
101 |
<button type="button" id="new-contact-btn">Nouveau contact</button> |
|
102 |
|
|
103 |
{% for contact in object.contacts.all %} |
|
104 |
{% if not contact.addresses.all %} |
|
105 |
<div class="contact"> |
|
106 |
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %} |
|
107 |
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4> |
|
108 |
<div class="right">Assuré |
|
109 |
<input type="radio" |
|
110 |
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %} |
|
111 |
id="id_policyholder-policyholder_{{ contact.id }}" |
|
112 |
value="{{ contact.id }}" |
|
113 |
class="policyholder-radio" |
|
114 |
name="policyholder-policyholder"> |
|
115 |
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button> |
|
116 |
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
117 |
</div> |
|
118 |
<div> |
|
119 |
<ul> |
|
120 |
{% if contact.parente %} |
|
121 |
<li><label>Lien avec le patient :</label> |
|
122 |
{{ contact.parente }}</li> |
|
123 |
{% endif %} |
|
124 |
{% if contact.mobile %} |
|
125 |
<li> |
|
126 |
<span class="icon-user-space">{{ contact.mobile }} (perso)</span> |
|
127 |
</li> |
|
128 |
{% endif %} |
|
129 |
{% if contact.phone %} |
|
130 |
<li> |
|
131 |
<span class="icon-user-space">{{ contact.phone }} (pro)</span> |
|
132 |
</li> |
|
133 |
{% endif %} |
|
134 |
{% if contact.email %} |
|
135 |
<li> |
|
136 |
<label>Courriel :</label> |
|
137 |
{{ contact.email }} |
|
138 |
</li> |
|
139 |
{% endif %} |
|
140 |
{% if contact.job %} |
|
141 |
<li> |
|
142 |
<label>Profession :</label> |
|
143 |
{{ contact.job }} |
|
144 |
</li> |
|
145 |
{% endif %} |
|
146 |
{% if contact.contact_comment %} |
|
147 |
<li> |
|
148 |
<label>Commentaire :</label> |
|
149 |
{{ contact.contact_comment }} |
|
150 |
</li> |
|
151 |
{% endif %} |
|
152 |
<li><label>Données d'assuré social</label> |
|
153 |
<!-- <button class="blind">détails</button>--> |
|
154 |
<ul> |
|
155 |
{% if contact.social_security_id %} |
|
156 |
<li><label>Numéro d'assuré social :</label> |
|
157 |
{{ contact.social_security_id }} {{ contact.get_control_key }}</li> |
|
158 |
{% endif %} |
|
159 |
{% if contact.birthdate %} |
|
160 |
<li><label>Date de naissance :</label> |
|
161 |
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
162 |
{% endif %} |
|
163 |
{% if contact.birthplace %} |
|
164 |
<li><label>Lieu de naissance :</label> |
|
165 |
{{ contact.birthplace }}</li> |
|
166 |
{% endif %} |
|
167 |
{% if contact.begin_rights %} |
|
168 |
<li><label>Début de droits :</label> |
|
169 |
{{ contact.begin_rights }}</li> |
|
170 |
{% endif %} |
|
171 |
{% if contact.end_rights %} |
|
172 |
<li><label>Fin de droits :</label> |
|
173 |
{{ contact.end_rights }}</li> |
|
174 |
{% endif %} |
|
175 |
{% if contact.health_center %} |
|
176 |
<li><label>Centre de santé :</label> |
|
177 |
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li> |
|
178 |
{% endif %} |
|
179 |
{% if contact.management_code %} |
|
180 |
<li><label>Code de gestion :</label> |
|
181 |
{{ contact.management_code }}</li> |
|
182 |
{% endif %} |
|
183 |
<li><label>Tiers-payant :</label> |
|
184 |
{% if contact.thirdparty_payer %} |
|
185 |
Oui |
|
186 |
{% else %} |
|
187 |
Non |
|
188 |
{% endif %} |
|
189 |
</li> |
|
190 |
{% if contact.twinning_rank %} |
|
191 |
<li><label>Rang (gémellité) :</label> |
|
192 |
{{ contact.twinning_rank }}</li> |
|
193 |
{% endif %} |
|
194 |
</ul> |
|
195 |
</li> |
|
196 |
</ul> |
|
197 |
</div> |
|
198 |
</div> |
|
199 |
{% endif %} |
|
200 |
{% endfor %} |
|
201 |
{% for address in addresses %} |
|
202 |
<div class="frame"> |
|
203 |
<h3>{{ address }}</h3> |
|
204 |
<div class="buttons"> |
|
205 |
<button type="button" data-id="{{ address.id }}" class="del-address icon-minus" title="Supprimer"></button> |
|
206 |
<button type="button" data-id="{{ address.id }}" class="update-address-btn icon-edit" title="Modifier"></button> |
|
207 |
</div> |
|
208 |
<div class="right"> |
|
209 |
<ul class="ajax_messages" style="display: none;"></ul> |
|
210 |
<input type="checkbox" data-id="{{ address.id }}" class="place_of_life" {% if address.place_of_life %}checked{% endif %}>Lieu de vie</input> |
|
211 |
</div> |
|
212 |
{% if address.phone %}<p><span class="icon-home-space">{{ address.phone }}</span></p>{% endif %} |
|
213 |
{% if address.comment %}<p><label>Commentaire :</label>{{ address.comment }}</p>{% endif %} |
|
214 |
{% if not address.phone and not address.comment %}<p> <!-- intentionaly empty --></p>{% endif %} |
|
215 |
{% for contact in address.patientcontact_set.all %} |
|
216 |
{% if contact.id != object.id %} |
|
217 |
<div class="contact"> |
|
218 |
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %} |
|
219 |
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4> |
|
220 |
<div class="right">Assuré |
|
221 |
<input type="radio" |
|
222 |
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %} |
|
223 |
id="id_policyholder-policyholder_{{ contact.id }}" |
|
224 |
value="{{ contact.id }}" |
|
225 |
class="policyholder-radio" |
|
226 |
name="policyholder-policyholder"> |
|
227 |
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button> |
|
228 |
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
229 |
</div> |
|
230 |
<div> |
|
231 |
<ul> |
|
232 |
{% if contact.parente %} |
|
233 |
<li><label>Lien avec le patient :</label> |
|
234 |
{{ contact.parente }}</li> |
|
235 |
{% endif %} |
|
236 |
{% if contact.mobile %} |
|
237 |
<li> |
|
238 |
<span class="icon-user-space">{{ contact.mobile }} (perso)</span> |
|
239 |
</li> |
|
240 |
{% endif %} |
|
241 |
{% if contact.phone %} |
|
242 |
<li> |
|
243 |
<span class="icon-user-space">{{ contact.phone }} (pro)</span> |
|
244 |
</li> |
|
245 |
{% endif %} |
|
246 |
{% if contact.email %} |
|
247 |
<li> |
|
248 |
<label>Courriel :</label> |
|
249 |
{{ contact.email }} |
|
250 |
</li> |
|
251 |
{% endif %} |
|
252 |
{% if contact.job %} |
|
253 |
<li> |
|
254 |
<label>Profession :</label> |
|
255 |
{{ contact.job }} |
|
256 |
</li> |
|
257 |
{% endif %} |
|
258 |
{% if contact.contact_comment %} |
|
259 |
<li> |
|
260 |
<label>Commentaire :</label> |
|
261 |
{{ contact.contact_comment }} |
|
262 |
</li> |
|
263 |
{% endif %} |
|
264 |
<li><label>Données d'assuré social</label> |
|
265 |
<!-- <button class="blind">détails</button> --> |
|
266 |
<ul> |
|
267 |
{% if contact.social_security_id %} |
|
268 |
<li><label>Numéro d'assuré social :</label> |
|
269 |
{{ contact.social_security_id }} {{ contact.get_control_key }}</li> |
|
270 |
{% endif %} |
|
271 |
{% if contact.birthdate %} |
|
272 |
<li><label>Date de naissance :</label> |
|
273 |
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
274 |
{% endif %} |
|
275 |
{% if contact.birthplace %} |
|
276 |
<li><label>Lieu de naissance :</label> |
|
277 |
{{ contact.birthplace }}</li> |
|
278 |
{% endif %} |
|
279 |
{% if contact.begin_rights %} |
|
280 |
<li><label>Début de droits :</label> |
|
281 |
{{ contact.begin_rights }}</li> |
|
282 |
{% endif %} |
|
283 |
{% if contact.end_rights %} |
|
284 |
<li><label>Fin de droits :</label> |
|
285 |
{{ contact.end_rights }}</li> |
|
286 |
{% endif %} |
|
287 |
{% if contact.health_center %} |
|
288 |
<li><label>Centre de santé :</label> |
|
289 |
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li> |
|
290 |
{% endif %} |
|
291 |
{% if contact.management_code %} |
|
292 |
<li><label>Code de gestion :</label> |
|
293 |
{{ contact.management_code }}</li> |
|
294 |
{% endif %} |
|
295 |
<li><label>Tiers-payant :</label> |
|
296 |
{% if contact.thirdparty_payer %} |
|
297 |
Oui |
|
298 |
{% else %} |
|
299 |
Non |
|
300 |
{% endif %} |
|
301 |
</li> |
|
302 |
{% if contact.twinning_rank %} |
|
303 |
<li><label>Rang (gémellité) :</label> |
|
304 |
{{ contact.twinning_rank }}</li> |
|
305 |
{% endif %} |
|
306 |
</ul> |
|
307 |
</li> |
|
308 |
</ul> |
|
309 |
</div> |
|
310 |
</div> |
|
311 |
{% endif %} |
|
312 |
{% endfor %} |
|
313 |
</div> |
|
314 |
{% endfor %} |
|
315 |
</form> |
|
316 |
|
calebasse/dossiers/templates/dossiers/patientrecord_update.html | ||
---|---|---|
47 | 47 |
</div> |
48 | 48 |
|
49 | 49 |
<div id="tabs-3"> <!-- Adresses / Contacts --> |
50 |
<form method="post" id="policyholder-form" class="patientrecordform">{% csrf_token %} |
|
51 |
|
|
52 |
<div class="contact patient"> |
|
53 |
<h4>{{ object.first_name }} <span class="lastname">{{ object.last_name }}</span> (Patient)</h4> |
|
54 |
<div class="right">Assuré |
|
55 |
<input type="radio" |
|
56 |
{% if object.policyholder.id == object.id %} checked="checked" {% endif %} |
|
57 |
id="id_policyholder-policyholder_{{ object.id }}" |
|
58 |
value="{{ object.id }}" |
|
59 |
class="policyholder-radio" |
|
60 |
name="policyholder-policyholder"> |
|
61 |
<button type="button" data-id="{{ object.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
62 |
</div> |
|
63 |
<div> |
|
64 |
<ul> |
|
65 |
{% if object.parente %} |
|
66 |
<li><label>Lien avec le patient :</label> |
|
67 |
{{ object.parente }}</li> |
|
68 |
{% endif %} |
|
69 |
{% if object.mobile %} |
|
70 |
<li> |
|
71 |
<span class="icon-user-space">{{ object.mobile }} (perso)</span> |
|
72 |
</li> |
|
73 |
{% endif %} |
|
74 |
{% if object.phone %} |
|
75 |
<li> |
|
76 |
<span class="icon-user-space">{{ object.phone }} (pro)</span> |
|
77 |
</li> |
|
78 |
{% endif %} |
|
79 |
{% if object.email %} |
|
80 |
<li> |
|
81 |
<label>Courriel :</label> |
|
82 |
{{ object.email }} |
|
83 |
</li> |
|
84 |
{% endif %} |
|
85 |
{% if object.job %} |
|
86 |
<li> |
|
87 |
<label>Profession :</label> |
|
88 |
{{ object.job }} |
|
89 |
</li> |
|
90 |
{% endif %} |
|
91 |
{% if object.contact_comment %} |
|
92 |
<li> |
|
93 |
<label>Commentaire :</label> |
|
94 |
{{ object.contact_comment }} |
|
95 |
</li> |
|
96 |
{% endif %} |
|
97 |
<li><label>Données d'assuré social</label> |
|
98 |
<!-- <button class="blind">détails</button>--> |
|
99 |
<ul> |
|
100 |
{% if object.social_security_id %} |
|
101 |
<li><label>Numéro d'assuré social :</label> |
|
102 |
{{ object.social_security_id }} {{ object.get_control_key }}</li> |
|
103 |
{% endif %} |
|
104 |
{% if object.birthdate %} |
|
105 |
<li><label>Date de naissance :</label> |
|
106 |
{{ object.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
107 |
{% endif %} |
|
108 |
{% if object.birthplace %} |
|
109 |
<li><label>Lieu de naissance :</label> |
|
110 |
{{ object.birthplace }}</li> |
|
111 |
{% endif %} |
|
112 |
{% if object.begin_rights %} |
|
113 |
<li><label>Début de droits :</label> |
|
114 |
{{ object.begin_rights }}</li> |
|
115 |
{% endif %} |
|
116 |
{% if object.end_rights %} |
|
117 |
<li><label>Fin de droits :</label> |
|
118 |
{{ object.end_rights }}</li> |
|
119 |
{% endif %} |
|
120 |
{% if object.health_center %} |
|
121 |
<li><label>Caisse :</label> |
|
122 |
{{ object.health_center }} ({{ object.health_center.address }} {{ object.health_center.address_complement }} {{ object.health_center.zip_code }} {{ object.health_center.city }})</li> |
|
123 |
{% endif %} |
|
124 |
{% if object.other_health_center %} |
|
125 |
<li><label>Centre spécifique :</label> |
|
126 |
{{ object.other_health_center }}</li> |
|
127 |
{% endif %} |
|
128 |
{% if object.management_code %} |
|
129 |
<li><label>Code de gestion :</label> |
|
130 |
{{ object.management_code }}</li> |
|
131 |
{% endif %} |
|
132 |
<li><label>Tiers-payant :</label> |
|
133 |
{% if object.thirdparty_payer %} |
|
134 |
Oui |
|
135 |
{% else %} |
|
136 |
Non |
|
137 |
{% endif %} |
|
138 |
</li> |
|
139 |
{% if object.twinning_rank %} |
|
140 |
<li><label>Rang (gémellité) :</label> |
|
141 |
{{ object.twinning_rank }}</li> |
|
142 |
{% endif %} |
|
143 |
</ul> |
|
144 |
</li> |
|
145 |
</ul> |
|
146 |
</div> |
|
147 |
</div> |
|
148 |
|
|
149 |
<button type="button" id="new-address-btn">Nouvelle adresse</button> |
|
150 |
<button type="button" id="new-contact-btn">Nouveau contact</button> |
|
151 |
|
|
152 |
{% for contact in object.contacts.all %} |
|
153 |
{% if not contact.addresses.all %} |
|
154 |
<div class="contact"> |
|
155 |
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %} |
|
156 |
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4> |
|
157 |
<div class="right">Assuré |
|
158 |
<input type="radio" |
|
159 |
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %} |
|
160 |
id="id_policyholder-policyholder_{{ contact.id }}" |
|
161 |
value="{{ contact.id }}" |
|
162 |
class="policyholder-radio" |
|
163 |
name="policyholder-policyholder"> |
|
164 |
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button> |
|
165 |
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
166 |
</div> |
|
167 |
<div> |
|
168 |
<ul> |
|
169 |
{% if contact.parente %} |
|
170 |
<li><label>Lien avec le patient :</label> |
|
171 |
{{ contact.parente }}</li> |
|
172 |
{% endif %} |
|
173 |
{% if contact.mobile %} |
|
174 |
<li> |
|
175 |
<span class="icon-user-space">{{ contact.mobile }} (perso)</span> |
|
176 |
</li> |
|
177 |
{% endif %} |
|
178 |
{% if contact.phone %} |
|
179 |
<li> |
|
180 |
<span class="icon-user-space">{{ contact.phone }} (pro)</span> |
|
181 |
</li> |
|
182 |
{% endif %} |
|
183 |
{% if contact.email %} |
|
184 |
<li> |
|
185 |
<label>Courriel :</label> |
|
186 |
{{ contact.email }} |
|
187 |
</li> |
|
188 |
{% endif %} |
|
189 |
{% if contact.job %} |
|
190 |
<li> |
|
191 |
<label>Profession :</label> |
|
192 |
{{ contact.job }} |
|
193 |
</li> |
|
194 |
{% endif %} |
|
195 |
{% if contact.contact_comment %} |
|
196 |
<li> |
|
197 |
<label>Commentaire :</label> |
|
198 |
{{ contact.contact_comment }} |
|
199 |
</li> |
|
200 |
{% endif %} |
|
201 |
<li><label>Données d'assuré social</label> |
|
202 |
<!-- <button class="blind">détails</button>--> |
|
203 |
<ul> |
|
204 |
{% if contact.social_security_id %} |
|
205 |
<li><label>Numéro d'assuré social :</label> |
|
206 |
{{ contact.social_security_id }} {{ contact.get_control_key }}</li> |
|
207 |
{% endif %} |
|
208 |
{% if contact.birthdate %} |
|
209 |
<li><label>Date de naissance :</label> |
|
210 |
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
211 |
{% endif %} |
|
212 |
{% if contact.birthplace %} |
|
213 |
<li><label>Lieu de naissance :</label> |
|
214 |
{{ contact.birthplace }}</li> |
|
215 |
{% endif %} |
|
216 |
{% if contact.begin_rights %} |
|
217 |
<li><label>Début de droits :</label> |
|
218 |
{{ contact.begin_rights }}</li> |
|
219 |
{% endif %} |
|
220 |
{% if contact.end_rights %} |
|
221 |
<li><label>Fin de droits :</label> |
|
222 |
{{ contact.end_rights }}</li> |
|
223 |
{% endif %} |
|
224 |
{% if contact.health_center %} |
|
225 |
<li><label>Centre de santé :</label> |
|
226 |
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li> |
|
227 |
{% endif %} |
|
228 |
{% if contact.management_code %} |
|
229 |
<li><label>Code de gestion :</label> |
|
230 |
{{ contact.management_code }}</li> |
|
231 |
{% endif %} |
|
232 |
<li><label>Tiers-payant :</label> |
|
233 |
{% if contact.thirdparty_payer %} |
|
234 |
Oui |
|
235 |
{% else %} |
|
236 |
Non |
|
237 |
{% endif %} |
|
238 |
</li> |
|
239 |
{% if contact.twinning_rank %} |
|
240 |
<li><label>Rang (gémellité) :</label> |
|
241 |
{{ contact.twinning_rank }}</li> |
|
242 |
{% endif %} |
|
243 |
</ul> |
|
244 |
</li> |
|
245 |
</ul> |
|
246 |
</div> |
|
247 |
</div> |
|
248 |
{% endif %} |
|
249 |
{% endfor %} |
|
250 |
{% for address in object.addresses.all %} |
|
251 |
<div class="frame"> |
|
252 |
<h3>{{ address }}</h3> |
|
253 |
<div class="buttons"> |
|
254 |
<button type="button" data-id="{{ address.id }}" class="del-address icon-minus" title="Supprimer"></button> |
|
255 |
<button type="button" data-id="{{ address.id }}" class="update-address-btn icon-edit" title="Modifier"></button> |
|
256 |
</div> |
|
257 |
<div class="right"> |
|
258 |
<ul class="ajax_messages" style="display: none;"></ul> |
|
259 |
<input type="checkbox" data-id="{{ address.id }}" class="place_of_life" {% if address.place_of_life %}checked{% endif %}>Lieu de vie</input> |
|
260 |
</div> |
|
261 |
{% if address.phone %}<p><span class="icon-home-space">{{ address.phone }}</span></p>{% endif %} |
|
262 |
{% if address.comment %}<p><label>Commentaire :</label>{{ address.comment }}</p>{% endif %} |
|
263 |
{% if not address.phone and not address.comment %}<p> <!-- intentionaly empty --></p>{% endif %} |
|
264 |
{% for contact in address.patientcontact_set.all %} |
|
265 |
{% if contact.id != object.id %} |
|
266 |
<div class="contact"> |
|
267 |
<h4>{% if contact.gender == 1 %}M.{% elif contact.gender == 2 %}Mme{% endif %} |
|
268 |
{{ contact.first_name }} <span class="lastname">{{ contact.last_name }}</span> {% if contact.id == object.id %} (PATIENT){% endif %}</h4> |
|
269 |
<div class="right">Assuré |
|
270 |
<input type="radio" |
|
271 |
{% if object.policyholder.id == contact.id %} checked="checked" {% endif %} |
|
272 |
id="id_policyholder-policyholder_{{ contact.id }}" |
|
273 |
value="{{ contact.id }}" |
|
274 |
class="policyholder-radio" |
|
275 |
name="policyholder-policyholder"> |
|
276 |
<button type="button" data-id="{{ contact.id }}" data-address-id="{{ address.id }}" class="del-contact icon-minus" title="Supprimer"></button> |
|
277 |
<button type="button" data-id="{{ contact.id }}" class="update-contact-btn icon-edit" title="Modifier"></button> |
|
278 |
</div> |
|
279 |
<div> |
|
280 |
<ul> |
|
281 |
{% if contact.parente %} |
|
282 |
<li><label>Lien avec le patient :</label> |
|
283 |
{{ contact.parente }}</li> |
|
284 |
{% endif %} |
|
285 |
{% if contact.mobile %} |
|
286 |
<li> |
|
287 |
<span class="icon-user-space">{{ contact.mobile }} (perso)</span> |
|
288 |
</li> |
|
289 |
{% endif %} |
|
290 |
{% if contact.phone %} |
|
291 |
<li> |
|
292 |
<span class="icon-user-space">{{ contact.phone }} (pro)</span> |
|
293 |
</li> |
|
294 |
{% endif %} |
|
295 |
{% if contact.email %} |
|
296 |
<li> |
|
297 |
<label>Courriel :</label> |
|
298 |
{{ contact.email }} |
|
299 |
</li> |
|
300 |
{% endif %} |
|
301 |
{% if contact.job %} |
|
302 |
<li> |
|
303 |
<label>Profession :</label> |
|
304 |
{{ contact.job }} |
|
305 |
</li> |
|
306 |
{% endif %} |
|
307 |
{% if contact.contact_comment %} |
|
308 |
<li> |
|
309 |
<label>Commentaire :</label> |
|
310 |
{{ contact.contact_comment }} |
|
311 |
</li> |
|
312 |
{% endif %} |
|
313 |
<li><label>Données d'assuré social</label> |
|
314 |
<!-- <button class="blind">détails</button>--> |
|
315 |
<ul> |
|
316 |
{% if contact.social_security_id %} |
|
317 |
<li><label>Numéro d'assuré social :</label> |
|
318 |
{{ contact.social_security_id }} {{ contact.get_control_key }}</li> |
|
319 |
{% endif %} |
|
320 |
{% if contact.birthdate %} |
|
321 |
<li><label>Date de naissance :</label> |
|
322 |
{{ contact.birthdate|date:"SHORT_DATE_FORMAT" }}</li> |
|
323 |
{% endif %} |
|
324 |
{% if contact.birthplace %} |
|
325 |
<li><label>Lieu de naissance :</label> |
|
326 |
{{ contact.birthplace }}</li> |
|
327 |
{% endif %} |
|
328 |
{% if contact.begin_rights %} |
|
329 |
<li><label>Début de droits :</label> |
|
330 |
{{ contact.begin_rights }}</li> |
|
331 |
{% endif %} |
|
332 |
{% if contact.end_rights %} |
|
333 |
<li><label>Fin de droits :</label> |
|
334 |
{{ contact.end_rights }}</li> |
|
335 |
{% endif %} |
|
336 |
{% if contact.health_center %} |
|
337 |
<li><label>Centre de santé :</label> |
|
338 |
{{ contact.health_center }} ({{ contact.health_center.address }} {{ contact.health_center.address_complement }} {{ contact.health_center.zip_code }} {{ contact.health_center.city }})</li> |
|
339 |
{% endif %} |
|
340 |
{% if contact.management_code %} |
|
341 |
<li><label>Code de gestion :</label> |
|
342 |
{{ contact.management_code }}</li> |
|
343 |
{% endif %} |
|
344 |
<li><label>Tiers-payant :</label> |
|
345 |
{% if contact.thirdparty_payer %} |
|
346 |
Oui |
|
347 |
{% else %} |
|
348 |
Non |
|
349 |
{% endif %} |
|
350 |
</li> |
|
351 |
{% if contact.twinning_rank %} |
|
352 |
<li><label>Rang (gémellité) :</label> |
|
353 |
{{ contact.twinning_rank }}</li> |
|
354 |
{% endif %} |
|
355 |
</ul> |
|
356 |
</li> |
|
357 |
</ul> |
|
358 |
</div> |
|
359 |
</div> |
|
360 |
{% endif %} |
|
361 |
{% endfor %} |
|
362 |
</div> |
|
363 |
{% endfor %} |
|
364 |
</form> |
|
365 |
|
|
50 |
{% include "dossiers/patientrecord_tab3_adresses.html" %} |
|
366 | 51 |
</div> |
367 | 52 |
|
368 | 53 |
<div id="tabs-4"> <!-- Prise en charge et notifications --> |
calebasse/dossiers/views.py | ||
---|---|---|
481 | 481 |
ctx['last_prescription'] = TransportPrescriptionLog.objects.filter(patient=ctx['object']).latest('created') |
482 | 482 |
except: |
483 | 483 |
pass |
484 |
|
|
485 |
ctx['addresses'] = ctx['object'].addresses.order_by('-place_of_life', 'id') |
|
484 | 486 |
return ctx |
485 | 487 |
|
486 | 488 |
def form_valid(self, form): |
Formats disponibles : Unified diff
dossiers: split tab 3 and sort adresses by place of life
Closes #2866