Project

General

Profile

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

calebasse / calebasse / dossiers / templates / dossiers / patientrecord_tab1_general.html @ bbf89bd4

1
{% extends 'dossiers/patientrecord_tab.html' %}
2
{% block content %}
3
<form method="post" action="tab1"  id="general-form" class="patientrecordform">{% csrf_token %}
4
<div class="left">
5
  <ul>
6
    <li>
7
    <label>N° dossier papier :</label> {{ object.paper_id|default_if_none:"Non renseigné" }}
8
    <button id="update-paper-id-btn" type='button' class="icon-edit" title="Modifier"></button>
9
    </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" }} ({{ object.age }}){% 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="highlight">{{ nb_place_of_lifes }} lieux de vie :</label>
19
      {% else %}
20
      <label class="highlight">Aucun lieu de vie d'indiqué</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
        {% 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 btn-maj"></button><br/>
44
      {{ form.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
      {% if future_state %}
79
      <h4>État à venir du dossier :  {{ current_state.status.name.lower }}</h4>
80
      <p>à partir du : {{ current_state.date_selected|date:"d/m/Y" }}</p>
81
      {% else %}
82
      <h4>État courant du dossier :  {{ current_state.status.name.lower }}</h4>
83
      <p>depuis le : {{ current_state.date_selected|date:"d/m/Y" }}</p>
84
      {% endif %}
85
      {% if current_state.comment %}<p><label>Commentaire :</label> {{ current_state.comment }}</p>{% endif %}
86
      {% for state in status %}
87
      <button type="button" id="{{ state.0 }}">{{ state.1 }}</button>
88
      {% endfor %}
89
      <button type="button" id="patientrecord-history">Historique</button>
90
      <hr/>
91
      <p id="confidential-msg" style="display: none; font-size: 10px;">Confidentialité mise à jour</p>
92
      {{ form.confidential.label_tag }} : <span class="autosubmit">{{ form.confidential }}</span>
93
      <p id="pause-msg" style="display: none; font-size: 10px;">Pause facturation mise à jour</p>
94
      {{ form.pause.label_tag }} : {{ form.pause }}
95
      <br/><label>Commentaire de la pause facturation</label> <button class="save enable-on-change btn-maj"></button><br/>
96
      {{ form.pause_comment }}
97

    
98
    </div>
99
  </form>
100

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

    
113

    
114
    <form method="post" action="{% url "create_directory" service object.id %}" id="create-directory-form">{% csrf_token %}
115
      <button>Créer répertoire patient</button>
116
    </form>
117
</div>
118
{% endblock %}
(15-15/30)