pshung29 / turbocare

Automatically exported from code.google.com/p/turbocare
0 stars 0 forks source link

Patient Registration Age / Date of Birth related problem and data not accepted #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Patient registration new entry
2. I think Age and Date of Birth either entry should accept.
3. While save giving 500 internal error

What is the expected output? What do you see instead?
Also the age should accept fraction figure like 26.5, 10.2 (10years 2 months) 

What version of the product are you using? On what operating system?

revision 228
Please provide any additional information below.

 File "/home/turbocare/controllers_registration.py", line 438, in
RegistrationPage1Reload
    Age = int(((datetime.datetime.now().date() -
patient.DateBirth).days+0.5)/365.25)
AttributeError: 'NoneType' object has no attribute 'DateBirth'

Original issue reported on code.google.com by tushar.c...@gmail.com on 30 Mar 2007 at 10:50

GoogleCodeExporter commented 8 years ago
I removed the "patient" reference.  It didn't need it and it would only work 
for returning patients.  It's ready for 
testing.

Original comment by umpen...@gmail.com on 31 Mar 2007 at 3:19