dossiers: add specific center field to contact.

This commit is contained in:
Mikaël Ates 2013-01-06 23:33:26 +01:00
parent 896dc77c64
commit e949a41256
1 changed files with 6 additions and 0 deletions

View File

@ -256,6 +256,9 @@ class PatientContact(People):
health_center = models.ForeignKey('ressources.HealthCenter',
verbose_name=u"Centre d'assurance maladie",
null=True, blank=True)
other_health_center = models.CharField(verbose_name=u"Centre spécifique",
max_length=4,
null=True, blank=True)
job = models.ForeignKey('ressources.Job',
related_name="job",
verbose_name=u"Profession",
@ -268,6 +271,9 @@ class PatientContact(People):
contact_comment = models.TextField(verbose_name=u"Commentaire",
null=True, blank=True)
old_contact_id = models.CharField(max_length=256,
verbose_name=u'Ancien ID du contact', blank=True, null=True)
def get_control_key(self):
if self.social_security_id:
nir = self.social_security_id