Update interface with new patient fields.

This commit is contained in:
Mikaël Ates 2015-10-26 11:32:47 +01:00
parent c0ff8a01c3
commit f7519a7c26
5 changed files with 82 additions and 64 deletions

View File

@ -33,7 +33,7 @@ class MainForm(forms.ModelForm):
class Meta:
model = models.Patient
fields = ['firstname', 'lastname', 'sex', 'birthdate', 'monitoring_place',
'medical_comment']
'emergency_contact', 'regular_doctor', 'medical_comment']
class SimpleAlertProfileForm(forms.ModelForm):

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-30 10:24+0200\n"
"POT-Creation-Date: 2015-10-25 19:36+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mikaël Ates mates@entrouvert.com\n"
"Language-Team: Entr'ouvert\n"
@ -77,6 +77,14 @@ msgstr "Ouvert"
msgid "Creation date"
msgstr "Date de création"
#: src/biomon/models.py:54
msgid "Male"
msgstr "Masculin"
#: src/biomon/models.py:55
msgid "Female"
msgstr "Féminin"
#: src/biomon/models.py:57
msgid "First name"
msgstr "Prénom"
@ -126,7 +134,7 @@ msgstr "Lieu de surveillance"
msgid "Simple monitoring profile"
msgstr "Profil simple de surveillance"
#: src/biomon/models.py:122 src/biomon/templates/biomon/patient_detail.html:30
#: src/biomon/models.py:122 src/biomon/templates/biomon/patient_detail.html:19
msgid "Monitoring profile"
msgstr "Profil de surveillance"
@ -138,139 +146,138 @@ msgstr "Commentaire médical"
msgid "Enabled"
msgstr "Activé"
#: src/biomon/templates/biomon/alerts.html:10
#: src/biomon/templates/biomon/patient_detail.html:12
msgid "My patients"
msgstr "Mes patients"
#: src/biomon/templates/biomon/alerts.html:20
#: src/biomon/templates/biomon/patient_detail.html:107
msgid "Running episodes !"
msgstr "Épisodes en cours !"
#: src/biomon/templates/biomon/alerts.html:17
#: src/biomon/templates/biomon/patient_list.html:18
msgid "Filter patient by their last name."
msgstr "Filtrer les patients par leur nom de famille."
#: src/biomon/templates/biomon/alerts.html:22
#: src/biomon/templates/biomon/patient_detail.html:109
msgid "Closed episodes"
msgstr "Épisodes terminés"
#: src/biomon/templates/biomon/base.html:7
msgid "Biomon - VEADISTA monitoring system"
msgstr "Biomon - Système de surveillance VEADISTA"
#: src/biomon/templates/biomon/base.html:67
msgid "My patients"
msgstr "Mes patients"
#: src/biomon/templates/biomon/base.html:68
#: src/biomon/templates/biomon/patient_detail.html:18
#: src/biomon/templates/medibot/episode_form.html:21
msgid "Alerts"
msgstr "Alertes"
#: src/biomon/templates/biomon/base.html:69
msgid "Add patient"
msgstr "Ajouter un patient"
#: src/biomon/templates/biomon/patient_alert_profile.html:5
#: src/biomon/templates/biomon/patient_detail.html:102
#: src/biomon/templates/biomon/patient_detail.html:149
#: src/biomon/templates/biomon/patient_detail.html:173
#: src/biomon/templates/biomon/patient_detail.html:179
#: src/biomon/templates/biomon/patient_detail.html:91
#: src/biomon/templates/biomon/patient_detail.html:138
#: src/biomon/templates/biomon/patient_detail.html:162
#: src/biomon/templates/biomon/patient_detail.html:168
#: src/biomon/templates/biomon/patient_edit.html:5
#: src/biomon/templates/biomon/patient_form.html:17
#: src/biomon/templates/biomon/patient_form.html:10
#: src/biomon/templates/medibot/episode_form.html:30
msgid "Validate"
msgstr "Valider"
#: src/biomon/templates/biomon/patient_dashboard.html:6
#: src/biomon/templates/biomon/patient_dashboard.html:9
#: src/biomon/templates/biomon/patient_detail.html:38
#: src/biomon/templates/biomon/patient_detail.html:41
#: src/biomon/templates/biomon/patient_detail.html:27
#: src/biomon/templates/biomon/patient_detail.html:30
msgid "Alert"
msgstr "Alerte"
#: src/biomon/templates/biomon/patient_dashboard.html:10
#: src/biomon/templates/biomon/patient_detail.html:42
#: src/biomon/templates/biomon/patient_detail.html:31
msgid "Live"
msgstr "En direct"
#: src/biomon/templates/biomon/patient_dashboard.html:11
#: src/biomon/templates/biomon/patient_detail.html:43
#: src/biomon/templates/biomon/patient_detail.html:32
msgid "Delay"
msgstr "Différé"
#: src/biomon/templates/biomon/patient_dashboard.html:14
#: src/biomon/templates/biomon/patient_detail.html:46
#: src/biomon/templates/biomon/patient_detail.html:35
msgid "Display time frame"
msgstr "Plage de visualisation"
#: src/biomon/templates/biomon/patient_dashboard.html:22
#: src/biomon/templates/biomon/patient_detail.html:54
#: src/biomon/templates/biomon/patient_detail.html:128
#: src/biomon/templates/biomon/patient_detail.html:43
#: src/biomon/templates/biomon/patient_detail.html:117
msgid "Heartrate"
msgstr "Pouls"
#: src/biomon/templates/biomon/patient_dashboard.html:29
#: src/biomon/templates/biomon/patient_detail.html:61
#: src/biomon/templates/biomon/patient_detail.html:50
msgid "PPM"
msgstr "BPM"
#: src/biomon/templates/biomon/patient_dashboard.html:32
#: src/biomon/templates/biomon/patient_dashboard.html:54
#: src/biomon/templates/biomon/patient_detail.html:64
#: src/biomon/templates/biomon/patient_detail.html:86
#: src/biomon/templates/biomon/patient_detail.html:53
#: src/biomon/templates/biomon/patient_detail.html:75
msgid "Min"
msgstr "Min"
#: src/biomon/templates/biomon/patient_dashboard.html:33
#: src/biomon/templates/biomon/patient_dashboard.html:55
#: src/biomon/templates/biomon/patient_detail.html:65
#: src/biomon/templates/biomon/patient_detail.html:87
#: src/biomon/templates/biomon/patient_detail.html:54
#: src/biomon/templates/biomon/patient_detail.html:76
msgid "Max"
msgstr "Max"
#: src/biomon/templates/biomon/patient_dashboard.html:36
#: src/biomon/templates/biomon/patient_dashboard.html:58
#: src/biomon/templates/biomon/patient_detail.html:68
#: src/biomon/templates/biomon/patient_detail.html:90
#: src/biomon/templates/biomon/patient_detail.html:57
#: src/biomon/templates/biomon/patient_detail.html:79
msgid "Mean 5 min"
msgstr "Moy. 5 min"
#: src/biomon/templates/biomon/patient_dashboard.html:37
#: src/biomon/templates/biomon/patient_dashboard.html:59
#: src/biomon/templates/biomon/patient_detail.html:69
#: src/biomon/templates/biomon/patient_detail.html:91
#: src/biomon/templates/biomon/patient_detail.html:58
#: src/biomon/templates/biomon/patient_detail.html:80
msgid "Mean 24 h"
msgstr "Moy. 24 h"
#: src/biomon/templates/biomon/patient_dashboard.html:44
#: src/biomon/templates/biomon/patient_detail.html:76
#: src/biomon/templates/biomon/patient_detail.html:152
#: src/biomon/templates/biomon/patient_detail.html:65
#: src/biomon/templates/biomon/patient_detail.html:141
msgid "Temperature"
msgstr "Température"
#: src/biomon/templates/biomon/patient_dashboard.html:51
#: src/biomon/templates/biomon/patient_detail.html:83
#: src/biomon/templates/biomon/patient_detail.html:72
msgid "°C"
msgstr "°C"
#: src/biomon/templates/biomon/patient_detail.html:27
#: src/biomon/templates/biomon/patient_detail.html:16
msgid "Dashboard"
msgstr "Dashboard"
#: src/biomon/templates/biomon/patient_detail.html:28
#: src/biomon/templates/biomon/patient_detail.html:17
msgid "Profile"
msgstr "Profil"
#: src/biomon/templates/biomon/patient_detail.html:29
#: src/biomon/templates/biomon/patient_list.html:10
#: src/biomon/templates/medibot/episode_form.html:21
msgid "Alerts"
msgstr "Alertes"
#: src/biomon/templates/biomon/patient_list.html:6
msgid "Filter patient by their last name."
msgstr "Filtrer les patients par leur nom de famille."
#: src/biomon/templates/biomon/patient_detail.html:118
msgid "Running episodes !"
msgstr "Épisodes en cours !"
#: src/biomon/templates/biomon/patient_detail.html:120
msgid "Closed episodes"
msgstr "Épisodes terminés"
#: src/biomon/templates/biomon/patient_form.html:8
#: src/biomon/templates/medibot/episode_form.html:20
#: src/biomon/templates/medibot/episode_list.html:20
msgid "Home"
msgstr "Accueil"
#: src/biomon/templates/biomon/patient_list.html:11
msgid "Add patient"
msgstr "Ajouter un patient"
#: src/biomon/templates/medibot/episode_list.html:21
msgid "Add alert"
msgstr "Ajouter une alerte"
#: src/biomon/views.py:121
#: src/biomon/views.py:129
msgid "Patient record updated."
msgstr "Dossier patient mis à jour."

View File

@ -257,7 +257,7 @@ transform: scale(0.4, 0.707) rotate(45deg);
div#search {
text-align: center;
height: 20%;
height: 70px;
font-size: 50px;
}
@ -310,7 +310,7 @@ color: purple;
div#patient-list {
text-align: center;
height: 80%;
height: 85%;
overflow-y: auto;
}
@ -335,8 +335,7 @@ text-align: left;
}
div.patient-block {
height: 200px;
width: 300px;
width: 350px;
background: none repeat scroll 0% 0% rgba(255, 255, 255, 1);
display: inline-block;
padding: 10px;
@ -351,7 +350,11 @@ vertical-align: bottom;
cursor: pointer;
}
span#display_name {
div.patient-block > * {
color: black;
}
span.display_name {
font-weight: bold;
}
@ -927,3 +930,7 @@ color: green !important;
span#title {
color: white;
}
.small{
font-size: 0.8em;
}

View File

@ -19,7 +19,10 @@
<span class="display_name {% if not item.enabled %}disabled{% endif %}">{{ item.lastname|upper }} {{ item.firstname|title }}</span>
{% if item.sex %}<span class="sex"><i class="fa fa-{% if item.sex == 1 %}mars{% else %}{% if item.sex == 2 %}venus{% else %}transgender{% endif %}{% endif %}"></i></span>{% endif %}
{% if item.age %}<span class="age"> {{ item.age }}</span>{% endif %}
{% if item.monitoring_place %}<span class="monitoring_place"><pre>{{ item.monitoring_place }}</pre></span>{% endif %}
{% if item.monitoring_place %}<pre><span><i class="fa fa-hotel"></i> {{ item.monitoring_place }}</span></pre>{% endif %}
{% if item.emergency_contact %}<pre><span><i class="fa fa-phone critical"></i> {{ item.emergency_contact }}</span></pre>{% endif %}
{% if item.regular_doctor %}<pre><span><i class="fa fa-user-md"></i> {{ item.regular_doctor }}</span></pre>{% endif %}
{% if item.medical_comment %}<pre><i class="fa fa-edit"></i> <span class="small">{{ item.medical_comment }}</span></pre>{% endif %}
</div>
{% endfor %}
</div>

View File

@ -89,7 +89,8 @@ class PatientList(ListView):
class PatientCreate(CreateView):
model = models.Patient
fields = ['firstname', 'lastname', 'sex', 'birthdate', 'monitoring_place',
'medical_comment', 'enabled']
'emergency_contact', 'regular_doctor', 'medical_comment',
'enabled']
def form_valid(self, form):
messages.add_message(self.request, messages.INFO, u'Patient créé.')
@ -107,7 +108,7 @@ class PatientCreate(CreateView):
class PatientUpdate(UpdateView):
model = models.Patient
fields = ['firstname', 'lastname', 'sex', 'birthdate', 'monitoring_place',
'medical_comment']
'emergency_contact', 'regular_doctor', 'medical_comment']
class PatientDetail(cbv.MultiUpdateView):