Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab1_general.html @ 6f7ff45d

1
<form method="post" action="tab1"  id="general-form" class="patientrecordform">{% csrf_token %}
2
<div class="left">
3
  <ul>
4
    <li>
5
    <label>N° dossier papier :</label> {{ object.paper_id|default_if_none:"Non renseigné" }}
6
    <button id="update-paper-id-btn" type='button' class="icon-edit" title="Modifier"></button>
7
    </li>
8
    <li><label>Nom :</label> <span class="lastname">{{ object.last_name }}</span></li>
9
    <li><label>Prénom :</label> {{ object.first_name }}</li>
10
    <li><label>Genre :</label> {{ object.get_gender_display|default_if_none:"Non renseigné" }}</li>
11
    <li><label>Date de naissance :</label> {% if object.birthdate %}{{ object.birthdate|date:"d/m/Y" }}{% else %}Non renseignée{% endif %}</li>
12
    <li>
13
      {% if nb_place_of_lifes == 1 %}
14
      <label>Lieux de vie :</label>
15
      {% elif nb_place_of_lifes > 1 %}
16
      <label class="highlight">{{ nb_place_of_lifes }} lieux de vie :</label>
17
      {% else %}
18
      <label class="highlight">Aucun lieu de vie d'indiqué</label>
19
      {% endif %}
20
      {% if object.contact_comment %}<pre>{{ object.contact_comment }}</pre>{% endif %}
21
        {% if object.addresses.all %}
22
        <ul>
23
          {% for address in object.addresses.all %}
24
          {% if address.place_of_life %}<li>✔ {{ address.display_name }}</li>{% endif %}
25
          {% endfor %}
26
        </ul>
27
        {% endif %}
28
    </li>
29
    <li><label>Date de contact :</label> {{ initial_state.date_selected|date:"d/m/Y" }}</li>
30
    <li><label>Date de création :</label> {{ object.created|date:"d/m/Y" }}</li>
31
    <li><label>Lieu de socialisation :</label> {{ object.school|default_if_none:"Non renseigné" }}</li>
32
    <li><label>Coordinateurs :</label>
33
        {% if object.coordinators.all %}
34
        <ul>
35
          {% for coordinator in object.coordinators.all %}
36
          <li>{{ coordinator.first_name }} <span class="lastname">{{ coordinator.last_name }}</span></li>
37
          {% endfor %}
38
        </ul>
39
        {% else %}Aucun{% endif %}
40
    </li>
41
      <li><label>Commentaire </label> <button class="save enable-on-change btn-maj"></button><br/>
42
      {{ form.comment }}
43
      </li>
44
    </ul>
45
  </div>
46
  <div class="right">
47
    <ul>
48
      <li><label>Dernier acte :</label>
49
      {% if last_rdv %}
50
      {% if last_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
51
        {{ last_rdv.start_datetime|date:"d/m/Y" }} -
52
        {% for participant in last_rdv.participants %}
53
        <span class="lastname">{{ participant.last_name }}</span> -
54
        {% endfor %}
55
        {{ last_rdv.act_type }}
56
        {% else %}
57
        Aucun
58
        {% endif %}
59
        {% if last_rdv.is_absent %} ({{ last_rdv.act_state }})</span>{% endif %}
60
      </li>
61
      <li><label>Prochain rendez-vous :</label>
62
      {% if next_rdv %}
63
      {% if next_rdv.is_absent %}<span style="font-weight: bold;">{% endif %}
64
        {{ next_rdv.start_datetime|date:"d/m/Y" }} -
65
        {% for participant in next_rdv.participants.all %}
66
        <span class="lastname">{{ participant.last_name }}</span> -
67
        {% endfor %}
68
        {{ next_rdv.act_type }}
69
        {% else %}
70
        Aucun
71
        {% endif %}
72
        {% if next_rdv.is_absent %} ({{ next_rdv.act.get_state }})</span>{% endif %}
73
      </li>
74
    </ul>
75
    <div class="etat">
76
      {% if future_state %}
77
      <h4>État à venir du dossier :  {{ current_state.status.name.lower }}</h4>
78
      <p>à partir du : {{ current_state.date_selected|date:"d/m/Y" }}</p>
79
      {% else %}
80
      <h4>État courant du dossier :  {{ current_state.status.name.lower }}</h4>
81
      <p>depuis le : {{ current_state.date_selected|date:"d/m/Y" }}</p>
82
      {% endif %}
83
      {% if current_state.comment %}<p><label>Commentaire :</label> {{ current_state.comment }}</p>{% endif %}
84
      {% for state in status %}
85
      <button type="button" id="{{ state.0 }}">{{ state.1 }}</button>
86
      {% endfor %}
87
      <button type="button" id="patientrecord-history">Historique</button><br/>
88
      <hr/>
89
      <p id="confidential-msg" style="display: none; font-size: 10px;">Confidentialité mise à jour</p>
90
      {{ form.confidential.label_tag }} : {{ form.confidential }}
91
      <p id="pause-msg" style="display: none; font-size: 10px;">Pause facturation mise à jour</p>
92
      {{ form.pause.label_tag }} : {{ form.pause }}
93
      <br/><label>Commentaire de la pause facturation</label> <button class="save enable-on-change btn-maj"></button><br/>
94
      {{ form.pause_comment }}
95

    
96
    </div>
97
  </form>
98

    
99
    {% if object.service.name == "CMPP" %}
100
    <div class="notifs">
101
    <h4>Information sur la prise en charge</h4>
102
    <ul>
103
    <li><span{% if hc_status.1 %} class="highlight"{% endif %}>{{ hc_status.0 }}</span></li>
104
    {% if object.pause %}<li><span class="highlight">Le dossier est en pause facturation.</span></li>{% endif %}
105
    {% if missing_policy %}<li><span class="highlight">Informations d'assuré social manquantes.</span></li>{% endif %}
106
    {% if missing_birthdate %}<li><span class="highlight">Date de naissance manquante.</span></li>{% endif %}
107
    {% if object.policyholder.ame %}<li><span class="highlight">Le contact assuré est AME.</span></li>{% endif %}
108
    </div>
109
    {% endif %}
110

    
111

    
112
    <form method="post" action="{% url "create_directory" service object.id %}" id="create-directory-form">{% csrf_token %}
113
      <button>Créer répertoire patient</button>
114
    </form>
115
</div>
116
<br style="clear:both"/>
(14-14/29)