Projet

Général

Profil

Télécharger (5,76 ko) Statistiques
| Branche: | Tag: | Révision:

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

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

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

    
118

    
119
    <form method="post" action="{% url "create_directory" service object.id %}" id="create-directory-form">{% csrf_token %}
120
      <button>Créer répertoire patient</button>
121
    </form>
122
</div>
123
{% endblock %}
(17-17/33)