gnumed-bugs
[Top][All Lists]
Advanced

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

Re: <bug>: trying to remove enterprise sickbay ward


From: Karsten Hilbert
Subject: Re: <bug>: trying to remove enterprise sickbay ward
Date: Mon, 6 Mar 2023 23:57:31 +0100

Dear Aimee,

thanks for this report.

> client version: 1.8.9
>
> user comment  : trying to remove enterprise sickbay ward

This happens ...

>  type: <class 'psycopg2.errors.ForeignKeyViolation'>
>  value: update or delete on table "org_unit" violates foreign key constraint 
> "fk_clin_ext_care_fk_org_unit" on table "external_care"
> DETAIL:  Key (pk)=(2) is still referenced from table "external_care".

because the organizational unit "Enterprise Sickbay" is
currently being referenced from an "external care" entry in
one of the patient charts.

I will make GNUmed say so when this occurs. For the time
being the database prevents us from shooting ourselves in
the foot...

Best,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



reply via email to

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