Project

General

Profile

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

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

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

    
97
    </div>
98
  </form>
99

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

    
112

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