[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] <bug>: Entering patient data???
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-bugs] <bug>: Entering patient data??? |
Date: |
Wed, 1 Dec 2010 15:36:39 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hello John,
thanks for your report.
> Date: 30 Nov 2010
...
> user comment : Entering patient data???
...
> client version: 0.8.3
The problem you see here:
> File "/usr/share/gnumed/Gnumed/pycommon/gmDateTime.py", line 380, in
> calculate_apparent_age
> raise ValueError('calculate_apparent_age(): <end> (%s) before <start> %s'
> % (end, start))
> ValueError: calculate_apparent_age(): <end> (2010-11-30
> 10:42:48.592855+01:00) before <start> 2010-11-30 11:11:11.111000+01:00
...
> 2010-11-30 10:42:48 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #157): >>>
> execution frame [calculate_apparent_age] in
> [/usr/share/gnumed/Gnumed/pycommon/gmDateTime.py] at line 380 <<<
> 2010-11-30 10:42:48 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> start = 2010-11-30 11:11:11.111000+01:00
> 2010-11-30 10:42:48 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> end = 2010-11-30 10:42:48.592855+01:00
...
> File "/usr/share/gnumed/Gnumed/business/gmPerson.py", line 999, in
> get_medical_age
> age = gmDateTime.calculate_apparent_age(start = dob)
> File "/usr/share/gnumed/Gnumed/pycommon/gmDateTime.py", line 399, in
> calculate_apparent_age
> end = end.replace(month = start.month)
> ValueError: day is out of range for month
...
> 2010-11-30 10:50:44 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #157): >>>
> execution frame [calculate_apparent_age] in
> [/usr/share/gnumed/Gnumed/pycommon/gmDateTime.py] at line 399 <<<
> 2010-11-30 10:50:44 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> start = 1973-02-08 11:11:11.111000+01:00
> 2010-11-30 10:50:44 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> months = 9
> 2010-11-30 10:50:44 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> end = 1973-11-30 10:50:44.957645+01:00
> 2010-11-30 10:50:44 DEBUG gm.logging
> (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #172):
> years = 37
This has been fixed starting with 0.8.4.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346