← Back to team overview

dhis2-devs team mailing list archive

[Bug 676340] Re: name-based records: Can't delete an patient

 

Hi Kim Anh,

I fixed this bug so long time, and I have just add DeletionHandler for
ProgramAttribute object for patient. Please check again.

Best regards,

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/676340

Title:
  name-based records: Can't delete an patient

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  Name-based records: Can't delete an patient

Version:
    2.0.6-SNAPSHOT
Build revision:
    2067 
Build date:
    2010-11-16 09:34

Description:
Can't delete an patient (in case of needing... with rational reasons, for example. Anyway, this function is supported :) so just make it workable)
Tomcat log: Caused by: java.sql.BatchUpdateException: Batch entry 0 delete from patient wher
e patientid='212' was aborted.  Call getNextException to see the cause.
        at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handle
Error(AbstractJdbc2Statement.java:2598)

IT SEEMS that just merely/simply focus on deleting records in "patient" table without checking the constraints on other possible related tables, 
for example: in the tree of relationship
programstageinstance, programattributevalue, programinstance_attributes<--programinstance<--patient





References