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
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?