Project

General

Profile

« Previous | Next » 

Revision e37c8bd1

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

actes: add a HistoryAct object

View differences:

calebasse/actes/models.py
128 128
                label=u"Rendez-vous patient"
129 129
                )
130 130

  
131
        history = HistoryAct.objects.create(
132
                date = datetime.now(),
133
                event_type = 'NR')
131 134
        act_event = EventAct.objects.create(
132 135
                title=title,
133 136
                event_type=event_type,
134 137
                patient=patient,
135 138
                act_type=act_type,
136 139
                date=start_datetime,
140
                histories = [history]
137 141
                )
138 142
        act_event.doctors = participants
139 143
        ActValidationState(act=act_event, state_name='NON_VALIDE',
calebasse/agenda/urls.py
23 23
                name='activite-du-service'),
24 24
            url(r'^validation-des-actes/$',
25 25
                TemplateView.as_view(
26
                    template_name='agenda/validation-des-actes.html'),
26
                    template_name='agenda/act-validation.html'),
27 27
                name='validation-des-actes'),
28 28
            url(r'^rendez-vous-periodiques/$',
29 29
                TemplateView.as_view(
calebasse/dossiers/models.py
61 61
    contacts = models.ManyToManyField('personnes.People',
62 62
            related_name='contact_of')
63 63
    birthdate = models.DateField()
64
    paper_id = models.CharField(max_length=12)
64
    paper_id = models.CharField(max_length=12,
65
            null=True, blank=True)
65 66

  
66 67
    def __init__(self, *args, **kwargs):
67 68
        super(PatientRecord, self).__init__(*args, **kwargs)
calebasse/fixtures/dossiers.json
11 11
        2,
12 12
        3,
13 13
        4
14
      ]
14
      ], 
15
      "paper_id": "1024", 
16
      "birthdate": "1980-10-31"
15 17
    }
16 18
  },
17 19
  {
......
26 28
        2,
27 29
        3,
28 30
        4
29
      ]
30
    }
31
      ], 
32
      "birthdate": "1988-12-30"
33
    } 
31 34
  }
32 35
]
setup.py
14 14
        install_requires=[
15 15
            'django >= 1.4.2, < 1.5',
16 16
            'south >= 0.7',
17
            'django-reversion >= 1.6.2',
17
            'django-reversion >= 1.6.4',
18 18
            'python-dateutil >=1.5, < 2.0',
19 19
            'django-model-utils < 1.2.0',
20 20
            'django-ajax-selects < 1.3.0',

Also available in: Unified diff