Project

General

Profile

« Previous | Next » 

Revision 47b11707

Added by Jérôme Schneider over 13 years ago

models: improve models to manage validation ac

View differences:

calebasse/actes/models.py
doctors = models.ManyToManyField('personnes.Worker',
limit_choices_to={'type__intervene': True},
verbose_name=u'Thérapeutes')
histories = models.ManyToManyField('HistoryAct')
def is_absent(self):
if self.get_state() in ('ABS_NON_EXC', 'ABS_EXC', 'ANNUL_NOUS',
......
ordering = ['-date', 'patient']
class HistoryAct(models.Model):
EVENT_CHOICES = (
('NR', u'Nouveau rendez-vous'),
('AV', u'Acte validé'),
('CF', u'En cours de facturation'),
('AF', u'Acte facturé'),
)
date = models.DateTimeField()
event_type = models.CharField(max_length=2,
choices=EVENT_CHOICES)
description = models.TextField(default='')
class EventActManager(EventManager):
def create_patient_appointment(self, creator, title, patient, participants,
calebasse/dossiers/models.py
editable=False)
contacts = models.ManyToManyField('personnes.People',
related_name='contact_of')
birthdate = models.DateField()
paper_id = models.CharField(max_length=12)
def __init__(self, *args, **kwargs):
super(PatientRecord, self).__init__(*args, **kwargs)

Also available in: Unified diff