gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] <bug>: I really don't know what caused this, I hop


From: Ismail Adegbenga
Subject: Re: [Gnumed-bugs] <bug>: I really don't know what caused this, I hop
Date: Mon, 26 Mar 2012 11:18:50 +0100

Dear Dr. Hilbert,

Thank you for the time to look into my error log.

I can adduce from your analysis that it seems this is a user generated bug report.

I will however like to point out that there does not seem to be an obvious way of directly adding drug prescription from FreeDiams into a patients emr in Gnumed.

The submitted error log arose while I was attempting to save a Patient's drug prescription from Freediams into Gnumed.

Thanks for the good job.

----- Original message -----
> Dear Dr.Adegbenga,
>
> thanks for you report.
>
> > client version: 1.1.12
> ...
> > user comment  : I really don't know what caused this, I hope it
> > contains useful information.
>
> Mainly there are two things in the log.
>
> You tried to use:
>
> > ValueError: year=201 is before 1900; the datetime strftime() methods
> > require year >= 1900
>
> ... 201 and ...
>
> > ValueError: year=198 is before 1900; the datetime strftime() methods
> > require year >= 1900
>
> ... 198 in a date field (the DOB, perhaps ?) which ...
>
> > 2012-03-24 20:07:04  ERROR        gm.datetime
> > (/usr/share/gnumed/Gnumed/pycommon/gmDateTime.py::pydt_strftime()
> > #258): Python cannot strftime() this <datetime>
>
> ... Python cannot handle (but GNUmed helpfully handles for it).
>
> The other thing is that importing a prescription created
> with the FreeDiams drug database failed for some reason:
>
> > 2012-03-24 20:49:01  DEBUG        gm.gui
> > (/usr/share/gnumed/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
> > #186): unhandled exception caught: Traceback (most recent call last):
> > File "/usr/share/gnumed/Gnumed/wxpython/gmMedicationWidgets.py", line
> > 2468, in _on_rx_button_pressed self._grid_substances.prescribe()
>
> > File "/usr/share/gnumed/Gnumed/business/gmMedication.py", line 795, in
> > import_fd2gm_file_as_drugs
>
> Likely because FreeDiams changed its XML API:
>
> > db_id = db_def.text.strip()
> > AttributeError: 'NoneType' object has no attribute 'text'
>
> ...
>
> > 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #155):
> > >>> execution frame [import_fd2gm_file_as_drugs] in
> > [/usr/share/gnumed/Gnumed/business/gmMedication.py] at line 795 <<<
> > 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #170):
> >                                self =
> > <Gnumed.business.gmMedication.cFreeDiamsInterface object at 0x3c7b490>
> > 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #170):
> >                      fd2gm_xml = <xml.etree.ElementTree.ElementTree object at
> > 0x3c7b590> 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #170):
> >                            db_def = None 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #170):
> >                  data_src_pk = 9 2012-03-24 20:49:02  DEBUG        gm.logging
> > (/usr/share/gnumed/Gnumed/pycommon/gmLog2.py::log_stack_trace() #170):
> >                        filename = /tmp/gnumed/gm-G3d7Ik/freediams2gm-4D92Ze.xml
>
> I'll have to look into the latter issue.
>
> Karsten
> --
> GPG key ID E4071346 @ gpg-keyserver.de
> E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


reply via email to

[Prev in Thread] Current Thread [Next in Thread]