[Top][All Lists]

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

Re: [Gnumed-bugs] <bug>: printing Tex-template in overview-view with

From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: printing Tex-template in overview-view with
Date: Tue, 11 Sep 2012 09:42:07 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

> user comment  : printing Tex-template in overview-view with latest gnumed 
> version
> client version: 1.2.3

I have looked at the log again and it shows another problem:

> 2012-09-10 10:02:17  DEBUG     gm.gui 
> (/usr/share/gnumed/Gnumed/wxpython/
>  #186): unhandled exception caught:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/", 
> line 14665, in <lambda>
>     lambda event: event.callable(*event.args, ** )
>   File "/usr/share/gnumed/Gnumed/wxpython/", line 266, in 
> __update_text_for_selected_node
>     with_co_encountlet_hints = True
>   File "/usr/share/gnumed/Gnumed/business/", line 1793, in 
> format
>     raise ValueError(msg)
> ValueError: <patient>.ID = 323 but encounter 1620 belongs to patient 476

This means the EMR tree detects a mismatch between the
patient linked in the encounter-to-be-formatted and the
patient the tree is passing into the format() method.

Now, one may ask why passing in the patient at all (since it
is linked from the encounter) ?

That's for technical reasons and the two really should
match. Them not matching clearly indicates a bug somewhere.

I have made some changes which will more explicitely
delete/rebuild the EMR tree at the appropriate times during
patient change. This should prevent the bug-signalling code
from getting called inappropriately.

This will be in 1.2.4 which I am going to release this week
(along with bill misappropriation fixes).

A question remains, namely why patient change infelicities
show up after printing ?

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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