health
[Top][All Lists]
Advanced

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

Re: [Health] Issues with hospitalizations and roundings


From: tumashu
Subject: Re: [Health] Issues with hospitalizations and roundings
Date: Sat, 22 Jun 2024 22:51:28 +0800 (CST)

def get_rec_name(self, name):
if self.patient:
return f'{self.name}:{self.bed.rec_name}:{self.patient.rec_name}'
else:
return self.name

it is confuse, if self.patient is None, we just use self.name





--
发自我的网易邮箱手机智能版



在 2024-06-22 21:56:27,"Odile C. Kamno" <christelia3@hotmail.com> 写道:
Dear Luis,


Thanks for the response.

We have other objects related to the patients (for exemple lab results, invoices)are still there, also the patient is still visible. 

If i understand correctly, the patients are deleted only for the affected tables (in this case rounding and evaluations) at the database level?

Thank you

Envoyé à partir de Outlook pour Android

From: Luis Falcon <falcon@gnuhealth.org>
Sent: Friday, June 21, 2024 1:55:38 PM
To: Odile C. Jioda <christelia3@hotmail.com>
Cc: General GNU Health discussion and help <health@gnu.org>
Subject: Re: [Health] Issues with hospitalizations and roundings
 
Dear Odile

El Fri, 21 Jun 2024 08:58:10 +0100
"Odile C. Jioda" <christelia3@hotmail.com> escribió:
> Hello,
>
> Here is the error message when trying to open roudings.
> Then the list is empty after the error pop up message is closed.
> When a new rounding is created it can be seen in the list only
> directly after it creation. after that the "registration code" field
> is somehow emptied and the rounding is not visible anymore when the
> rounding list is called and a later point of time. The latest
> rounding which can be seen from the list is the of september 2023 all
> others do not appear.
>   File "/trytond/modules/health_inpatient/health_inpatient.py", line
> 423, in get_rec_name
>     + self.patient.rec_name
> AttributeError: 'NoneType' object has no attribute 'rec_name'

Here it seems like the patient associated to the hospitalization is
missing

>
>
> And whe have the same issue while trying to open the évaluation list.
> Here is the error message Traceback (most recent call last):
> get_patient_gender return self.patient.gender
> AttributeError: 'NoneType' object has no attribute 'gender'

Again, when looking for the gender of a patient it throws the error
because it can't find the patient.


Maybe the patient/ person has been removed at database level?


reply via email to

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