Opened 8 years ago

Closed 8 years ago

#929 closed defect (fixed)

The "All cases" field display null when running the Mark extracts for retraction wizard on a case with consent=no

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: Reggie v4.9
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

The reason is that the case number list is retrieved via the Case.findAllCaseNumbersByPatient() method which uses Specimen, NoSpecimen and Blood items to make sure that cases with multiple case number are not missed.

Registrations with Consent=No do not have any child items and the list remains empty. It is also not displayed in the lab protocol generated from the same page.

Change History (1)

comment:1 by Nicklas Nordborg, 8 years ago

Resolution: fixed
Status: newclosed

(In [4269]) Fixes #929: The "All cases" field display null when running the Mark extracts for retraction wizard on a case with consent=no

Got rid of the Case.findAllCaseNumbersByPatient() method and instead simply check the name of all items that we have found after collecting all child items. Names that start with 7 digits are assumed to be case numbers.

Note: See TracTickets for help on using tickets.