Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab1_general.html @ 8837258c

1

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

    
93
    </div>
94
  </form>
95

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

    
108

    
109
    <form method="post" id="create-directory-form" action="create-directory">{% csrf_token %}
110
      <button>Créer répertoire patient</button>
111
    </form>
112
</div>
113
<br style="clear:both"/>
(14-14/24)