Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab4_notifs.html @ 78bae9a3

1
<div id="tabs-4">
2
  {% if object.service.slug == "cmpp" %}
3
  <div class="notifs">
4
    <h4>Information sur la prise en charge</h4>
5
    <ul>
6
      <li><span{% if hc_status.1 %} class="highlight"{% endif %}>{{ hc_status.0 }}</span></li>
7
      {% if object.pause %}<li><span class="highlight">Le dossier est en pause facturation.</span></li>{% endif %}
8
      {% if missing_policy %}<li><span class="highlight">Informations d'assuré sociale manquantes.</span></li>{% endif %}
9
      {% if missing_birthdate %}<li><span class="highlight">Date de naissance manquante.</span></li>{% endif %}
10
      {% if object.policyholder.ame %}<li><span class="highlight">Le contact assuré est AME.</span></li>{% endif %}
11
    </div>
12
    <p>
13
    <button id="new-hcdiag-btn">Nouvelle PC diagnostic</button>
14
    <button id="new-hctrait-btn">Nouvelle PC traitement</button>
15
    </p>
16
    {% if acts_losts %}
17
    <p><strong>{{ acts_losts|length }}</strong> actes facturables qui ne peuvent pas être facturés :
18
    <table class="basic">
19
      <thead>
20
        <tr> <th>Date</th> <th>Heure</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th> <th>Refacturation</th></tr>
21
      </thead>
22
      <tbody>
23
      {% for act in acts_losts %}
24
      <tr>
25
        <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
26
        <td>{{ act.time }}</td>
27
        <td>{{ act.act_type }}</td>
28
        <td>{% for participant in act.doctors.all %}
29
          {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
30
          {% endfor %}</td>
31
        <td>{{ act.comment|default_if_none:"" }}</td>
32
        <td>{% for i in act.invoice_set.all %}{{ i.number }}{% if not forloop.last %} - {% endif %}{% endfor %}</td>
33
      </tr>
34
      {% endfor %}
35
      </tbody>
36
    </table>
37
    </p>
38
    {% endif %}
39
    {% if acts_pause %}
40
    <p><strong>{{ acts_pause|length }}</strong> actes qui sont en pause :
41
    <table class="basic">
42
      <thead>
43
        <tr> <th>Date</th> <th>Heure</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th> <th>Refacturation</th></tr>
44
      </thead>
45
      <tbody>
46
      {% for act in acts_pause %}
47
      <tr>
48
        <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
49
        <td>{{ act.time }}</td>
50
        <td>{{ act.act_type }}</td>
51
        <td>{% for participant in act.doctors.all %}
52
          {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
53
          {% endfor %}</td>
54
        <td>{{ act.comment|default_if_none:"" }}</td>
55
        <td>{% for i in act.invoice_set.all %}{{ i.number }}{% if not forloop.last %} - {% endif %}{% endfor %}</td>
56
      </tr>
57
      {% endfor %}
58
      </tbody>
59
    </table>
60
    </p>
61
    {% endif %}
62
    {% if hcs %}
63
    {% for hc, acts, acts_cared in hcs %}
64
    {% if hc.cmpphealthcarediagnostic %}
65
    <div id="patient-diag">
66
      <div class="frame">
67
        <div class="buttons">
68
          <button type="button" data-id="{{ hc.id }}" class="del-hcdiag icon-minus" title="Supprimer"></button>
69
          <button type="button" data-id="{{ hc.id }}" class="update-hcdiag-btn icon-edit" title="Modifier"></button>
70
        </div>
71
        <h3>Prise en charge de diagnostic, débutée le {{ hc.start_date|date:"d/m/Y" }}{% if hc.cmpphealthcarediagnostic.end_date %}, se terminant le {{ hc.cmpphealthcarediagnostic.end_date|date:"d/m/Y" }}{% endif %}</h3>
72
        <ul>
73
          {% if hc.cmpphealthcarediagnostic.end_date %}<li><label>Date de fin</label> : {{ hc.cmpphealthcarediagnostic.end_date|date:"d/m/Y" }}</li>{% endif %}
74
          {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
75
          {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
76
          <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcarediagnostic.get_act_number }}</strong></li>
77
          {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
78
          <table class="basic">
79
            <thead>
80
              <tr> <th>Date</th> <th>Heure</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th> <th>Refacturation</th></tr>
81
            </thead>
82
            <tbody>
83
            {% for act in acts %}
84
            <tr>
85
              <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
86
              <td>{{ act.time }}</td>
87
              <td>{{ act.act_type }}</td>
88
              <td>{% for participant in act.doctors.all %}
89
                {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
90
                {% endfor %}</td>
91
              <td>{{ act.comment|default_if_none:"" }}</td>
92
              <td>{% for i in act.invoice_set.all %}{{ i.number }}{% if not forloop.last %} - {% endif %}{% endfor %}</td>
93
            </tr>
94
            {% endfor %}
95
            </tbody>
96
          </table>
97
          {% endif %}
98
          {% if hc.get_nb_acts_cared %}
99
          <li><strong>{{ hc.get_nb_acts_cared }}</strong> actes déja facturés :</li>
100
          <table class="basic">
101
            <thead>
102
              <tr> <th>Date</th> <th>Heure</th> <th>N° facture</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
103
            </thead>
104
            <tbody>
105
            {% for act in acts_cared %}
106
            <tr>
107
              <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
108
              <td>{{ act.time }}</td>
109
              <td>{{ act.get_invoice_number|default_if_none:"Ancienne facturation" }}</td>
110
              <td>{{ act.act_type }}</td>
111
              <td>{% for participant in act.doctors.all %}
112
                {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
113
                {% endfor %}</td>
114
              <td>{{ act.comment|default_if_none:"" }}</td>
115
            </tr>
116
            {% endfor %}
117
            </tbody>
118
          </table>
119
          {% else %}<li>Aucun acte facturé.</li>
120
          {% endif %}
121
        </ul>
122
      </div>
123
    </div>
124
    {% else %}
125
    <div id="patient-traitement">
126
      <div class="frame">
127
        <div class="buttons">
128
          <button type="button" data-id="{{ hc.id }}" class="del-hctrait icon-minus" title="Supprimer"></button>
129
          <button type="button" data-id="{{ hc.id }}" class="update-hctrait-btn icon-edit" title="Modifier"></button>
130
        </div>
131
        <h3>Prise en charge de traitement, débutée le {{ hc.start_date|date:"d/m/Y" }}{% if hc.cmpphealthcaretreatment.end_date %}, se terminant le {{ hc.cmpphealthcaretreatment.end_date|date:"d/m/Y" }}{% endif %}</h3>
132
        <ul>
133
          {% if hc.cmpphealthcaretreatment.end_date %}<li><label>Date de fin</label> : {{ hc.cmpphealthcaretreatment.end_date|date:"d/m/Y" }}</li>{% endif %}
134
          {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
135
          {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
136
          <li><label>Nombres d'actes de la prise en charge</label> : <strong>{{ hc.cmpphealthcaretreatment.get_act_number }}</strong></li>
137
          {% if acts %}<li><strong>{{ acts|length }}</strong> actes pouvant être pris en charge lors de la prochaine facturation :</li>
138
          <table class="basic">
139
            <thead>
140
              <tr> <th>Date</th> <th>Heure</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th> <th>Refacturation</th></tr>
141
            </thead>
142
            <tbody>
143
            {% for act in acts %}
144
            <tr>
145
              <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
146
              <td>{{ act.time }}</td>
147
              <td>{{ act.act_type }}</td>
148
              <td>{% for participant in act.doctors.all %}
149
                {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
150
                {% endfor %}</td>
151
              <td>{{ act.comment|default_if_none:"" }}</td>
152
              <td>{% for i in act.invoice_set.all %}{{ i.number }}{% if not forloop.last %} - {% endif %}{% endfor %}</td>
153
            </tr>
154
            {% endfor %}
155
            </tbody>
156
          </table>
157

    
158
          {% endif %}
159
          {% if hc.get_nb_acts_cared %}
160
          <li><strong>{{ hc.get_nb_acts_cared }}</strong> actes déja facturés :</li>
161
          <table class="basic">
162
            <thead>
163
              <tr> <th>Date</th> <th>Heure</th> <th>N° facture</th> <th>Type d'acte</th> <th>Intervenants</th> <th>Commentaire</th></tr>
164
            </thead>
165
            <tbody>
166
            {% for act in acts_cared %}
167
            <tr>
168
              <td>{{ act.date|date:"SHORT_DATE_FORMAT" }}</td>
169
              <td>{{ act.time }}</td>
170
              <td>{{ act.get_invoice_number|default_if_none:"Ancienne facturation" }}</td>
171
              <td>{{ act.act_type }}</td>
172
              <td>{% for participant in act.doctors.all %}
173
                {{ participant.first_name }} <span class="lastname">{{ participant.last_name }}</span>
174
                {% endfor %}</td>
175
              <td>{{ act.comment|default_if_none:"" }}</td>
176
            </tr>
177
            {% endfor %}
178
            </tbody>
179
          </table>
180
          {% else %}<li>Aucun acte facturé.</li>
181
          {% endif %}
182
        </ul>
183
      </div>
184
    </div>
185
    {% endif %}
186
    {% endfor %}
187
    {% endif %}
188
    {% endif %}
189
    {% if object.service.slug == "sessad-ted" or object.service.slug == "sessad-dys" %}
190
    <p>
191
    <button id="new-notification-btn">Nouvelle notification</button>
192
    </p>
193
    {% if hcs %}
194
    {% for hc in hcs %}
195
    {% if hc.sessadhealthcarenotification %}
196
    <div id="patient-diag">
197
      <div class="frame">
198
        <div class="buttons">
199
          <button type="button" data-id="{{ hc.sessadhealthcarenotification.id }}" class="del-notification icon-minus" title="Supprimer"></button>
200
          <button type="button" data-id="{{ hc.sessadhealthcarenotification.id }}" class="update-notification-btn icon-edit" title="Modifier"></button>
201
        </div>
202
        <h3>Notification</h3>
203
        <ul>
204
          {% if hc.start_date %}<li><label>Date de début</label> : {{ hc.start_date|date:"d/m/Y" }}</li>{% endif %}
205
          {% if hc.sessadhealthcarenotification.end_date %}<li><label>Date de fin</label> : {{ hc.sessadhealthcarenotification.end_date|date:"d/m/Y" }}</li>{% endif %}
206
          {% if hc.request_date %}<li><label>Date de demande</label> : {{ hc.request_date|date:"d/m/Y" }}</li>{% endif %}
207
          {% if hc.agree_date %}<li><label>Date d'accord</label> : {{ hc.agree_date|date:"d/m/Y" }}</li>{% endif %}
208
          {% if hc.insist_date %}<li><label>Date de relance</label> : {{ hc.insist_date|date:"d/m/Y" }}</li>{% endif %}
209
          {% if hc.comment %}<li><label>Commentaire</label> : {{ hc.comment }}</li>{% endif %}
210
        </ul>
211
      </div>
212
    </div>
213
    {% endif %}
214
    {% endfor %}
215
    {% endif %}
216
    {% endif %}
217
  </div>
(18-18/29)