Compare commits

...
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.

17 Commits
master ... demo

Author SHA1 Message Date
Jérôme Schneider 04e3ad2193 Merge branch 'master' into demo 2014-07-07 19:19:56 +02:00
Jérôme Schneider 8b61629a51 anonimize: improved 2014-04-16 09:55:45 +02:00
Jérôme Schneider e527c2fa93 add missing import 2014-04-16 09:51:14 +02:00
Jérôme Schneider 30573bec29 anonimize.py: change all security ids 2014-04-16 09:47:22 +02:00
Jérôme Schneider 0d35ebb8d3 Merge branch 'master' into demo 2014-04-16 09:45:37 +02:00
Jérôme Schneider 2530ad1fdb Merge branch 'master' into demo 2014-04-14 19:06:26 +02:00
Jérôme Schneider c8afb93492 Merge branch 'master' into demo 2014-04-10 18:32:58 +02:00
Jérôme Schneider a6be71ef09 anonimize.py: cleanning 2014-03-29 11:49:00 +01:00
Jérôme Schneider 9ec8b7a2f1 agenda: don't store appoinment title into db 2014-03-29 11:49:00 +01:00
Jérôme Schneider 1d94216129 remove APS42 address 2014-03-20 17:20:38 +01:00
Jérôme Schneider 029569288c templates: removing APS42 2014-03-18 15:37:33 +01:00
Jérôme Schneider e2d7d17c19 anonymize: improved anonymization 2014-03-18 15:35:50 +01:00
Jérôme Schneider 99b661d3af anonimize.py: improve anonymization 2014-03-18 15:27:22 +01:00
Jérôme Schneider e678898d5f Merge branch 'master' into demo 2014-03-18 12:44:23 +01:00
Jérôme Schneider c34c3c1de2 Merge branch 'master' into demo 2014-03-18 12:41:57 +01:00
Jérôme Schneider 115d3a6393 anonimize: improve anonymisation 2014-03-17 15:57:25 +01:00
Jérôme Schneider bbaa2fc81c demo: initial commit 2014-03-11 18:09:32 +01:00
12 changed files with 80 additions and 32 deletions

49
anonimize.py Executable file
View File

@ -0,0 +1,49 @@
#!/usr/bin/env python
"""
Shuffle nom et prenom
"""
import django.core.management
import calebasse.settings
django.core.management.setup_environ(calebasse.settings)
import random
from random import randint
from calebasse.actes.models import Act
from calebasse.agenda.models import Event
from calebasse.dossiers.models import PatientRecord, PatientContact
from calebasse.dossiers.models import PatientAddress
from calebasse.personnes.models import People
last = []
first = []
random.seed()
for p in People.objects.all():
if p.last_name:
last.append(p.last_name)
if p.first_name:
first.append(p.first_name)
len_first = len(first) - 1
len_last = len(last) - 1
for p in People.objects.all():
p.last_name = last[randint(0, len_last)]
if len(p.last_name) > 5:
p.last_name = p.last_name[:-2] + 'zz'
p.first_name = first[randint(0, len_first)]
p.save()
if hasattr(p, "worker"):
p.worker.initials = p.worker.get_initials()
p.worker.save()
PatientContact.objects.all().update(social_security_id="3999999999999", contact_comment="", mobile="0606060606")
PatientRecord.objects.all().update(comment="")
Event.objects.all().update(description="")
Act.objects.all().update(comment="")
PatientAddress.objects.all().update(comment="",
phone="03%d%d040404" % (randint(0, 9), randint(0, 9)),
street="rue du poulpe", address_complement="")

View File

@ -762,7 +762,7 @@ class GenerateRtfFormView(cbv.FormView):
variables = {'AD11': '', 'AD12': '', 'AD13': '', 'AD14': '',
'AD15': '', 'AD18': '',
'JOU1': formats.date_format(datetime.today(), "DATE_FORMAT"),
'VIL1': u'Saint-Étienne',
'VIL1': u'Une Ville',
'RDV1': '', 'HEU1': '', 'THE1': '', 'DPA1': '',
'NOM1': '', 'PRE1': '', 'NAI1': '', 'NUM2': '',
'NOM2': '', 'PRE2': '', 'TPA1': '', 'NSS1': '',
@ -1033,11 +1033,11 @@ class GenerateTransportPrescriptionFormView(cbv.FormView):
def get_context_data(self, **kwargs):
ctx = super(GenerateTransportPrescriptionFormView, self).get_context_data(**kwargs)
ctx['lieu'] = 'Saint-Etienne'
ctx['lieu'] = 'Une Ville'
ctx['date'] = formats.date_format(datetime.today(), "SHORT_DATE_FORMAT")
ctx['id_etab'] = '''%s SAINT ETIENNE
66/68, RUE MARENGO
42000 SAINT ETIENNE''' % ctx['service'].upper()
ctx['id_etab'] = '''%s UNE VILLE
3, RUE DE LA DEMO
00000 UNE VILLE''' % ctx['service'].upper()
try:
patient = PatientRecord.objects.get(id=self.kwargs['patientrecord_id'])
ctx['object'] = patient

View File

@ -116,9 +116,9 @@ def invoice_files(service, invoicing, batch, invoice, counter=None):
'NUM_LOT': unicode(batch.number),
'NUM_FACTURE': unicode(invoice.number),
'NUM_ENTREE': unicode(invoice.patient_id),
'IDENTIFICATION_ETABLISSEMENT': '''%s SAINT ETIENNE
66/68, RUE MARENGO
42000 SAINT ETIENNE''' % service.name,
'IDENTIFICATION_ETABLISSEMENT': '''%s UNE VILLE
3, RUE DE LA DEMO
00000 UNE VILLE''' % service.name,
'DATE_ELABORATION': datetime.datetime.now().strftime('%d/%m/%Y'),
'NOM_BENEFICIAIRE': u' '.join((invoice.patient_first_name,
invoice.patient_last_name.upper())),

View File

@ -109,11 +109,11 @@
<tr style="padding-top: 3px; padding-bottom: 2px; line-height: 50%; background-color: #EEEEEE; margin-bottom: 3cm"><td> Établissement</td></tr>
<tr><td style="height: 5cm; display: block;">
{% block payee %}
{{ service.name }} SAINT ETIENNE</br>
{{ service.name }} UNE VILLE</br>
Finess: 420788606 MT: 19 DMT: 320</br>
66/68, RUE MARENGO</br>
42000 SAINT-ETIENNE</br>
Tél.: 04 77 92 05 70
3, RUE DE LA DEMO</br>
00000 UNE VILLE</br>
Tél.: 00 00 00 00 00
</br>
</br>
</br>

View File

@ -47,10 +47,10 @@
<tr style="padding-top: 3px; padding-bottom: 2px; line-height: 50%; background-color: #EEEEEE; margin-bottom: 3cm"><td> Établissement</td></tr>
<tr><td style="height: 5cm; display: block;">
{% block payee %}
{{ service.name }} de SAINT-ETIENNE</br>
66/68, RUE MARENGO</br>
42000 SAINT-ETIENNE</br>
Tél.: 04 77 92 05 70</br>
{{ service.name }} de UNE VILLE</br>
3, RUE DE LA DEMO</br>
00000 VILLE</br>
Tél.: 00 00 00 00 00</br>
</br>
Période du {{ start_date|date:"d/m/Y" }} au {{ end_date|date:"d/m/Y" }}</br>
</br>
@ -106,7 +106,7 @@
</table>
<div id="footer">
Bordereau des actes par patient page <pdf:pagenumber/>
</br>{{ service.name }} de SAINT-ETIENNE
</br>{{ service.name }} de UNE VILLE
</br>Période du {{ start_date|date:"d/m/Y" }} au {{ end_date|date:"d/m/Y" }}
</div>
</body>

View File

@ -31,10 +31,10 @@
<tr style="padding-top: 3px; padding-bottom: 2px; line-height: 50%; background-color: #EEEEEE; margin-bottom: 3cm"><td> Établissement</td></tr>
<tr><td style="height: 5cm; display: block;">
{% block payee %}
{{ service.name }} de SAINT-ETIENNE</br>
66/68, RUE MARENGO</br>
42000 SAINT-ETIENNE</br>
Tél.: 04 77 92 05 70</br>
{{ service.name }} de UNE VILLE</br>
3, RUE DE LA DEMO</br>
00000 UNE VILLE</br>
Tél.: 00 00 00 00 00</br>
</br>
Période du {{ start_date|date:"d/m/Y" }} au {{ end_date|date:"d/m/Y" }}</br>
</br>

View File

@ -2,7 +2,7 @@
{% load url from future %}
{% block page-title %}
APS42 - Accueil
Démonstrateur - Accueil
{% endblock %}
{% block header %}

View File

@ -2,7 +2,7 @@
{% load url from future %}
{% block page-title %}
APS42 - Accueil
Démonstrateur - Accueil
{% endblock %}
{% block header %}

View File

@ -38,7 +38,7 @@
{% endblock %}
{% if not popup %}
<div id="header">
{% block header %}<h1><a href="/">APS 42</a></h1>{% endblock %}
{% block header %}<h1><a href="/">Etablissement</a></h1>{% endblock %}
</div>
<div id="splash" class="{{ service }}">
<div id="user-links">

View File

@ -2,7 +2,7 @@
{% load url from future %}
{% block page-title %}
APS42 - Accueil
Accueil
{% endblock %}
{% block header %}
@ -16,7 +16,7 @@ APS42 - Accueil
{% block content %}
<div id="user-info">
Bienvenue sur le logiciel de gestion de l'Association Prévention Soins.
Bienvenue sur le logiciel de gestion de l'Etablissement.
(<a href="{% url 'password_change' %}">changer votre mot de passe</a>)
</div>

View File

@ -1,7 +1,7 @@
{% extends "calebasse/base.html" %}
{% load url from future %}
<title>{% block title %}APS42{% endblock %}</title>
<title>{% block title %}Demo{% endblock %}</title>
{% block wrapper %}
<div id="wrap">
@ -13,8 +13,7 @@
{% block content %}
<p>
Bienvenue sur le logiciel de gestion de l'Association Prévention
Soins.
Bienvenue sur le démonstrateur du logiciel Calebasse.
</p>
<h2>Connexion</h2>

View File

@ -2,7 +2,7 @@
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>Association Prévention Soins — Connexion</title>
<title>Démonstrateur — Connexion</title>
<link rel="stylesheet" type="text/css" media="all" href="css/style.css"/>
</head>
<body>
@ -10,7 +10,7 @@
<body>
<div id="wrap">
<div id="header">
<h1>Association Prévention Soins</h1>
<h1>Démonstrateur</h1>
<span></span>
</div>
@ -19,7 +19,7 @@
<div id="content">
<p>
Bienvenue sur le logiciel de gestion de l'Association Prévention Soins.
Bienvenue sur le logiciel Calebasse.
</p>
<h2>Connexion</h2>