Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#302 closed enhancement (fixed)

Update functionality in the Personal information registration

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v1.2
Component: net.sf.basedb.reggie Keywords:
Cc:

Description (last modified by Nicklas Nordborg)

The "Personal information registration" should get update capabilities. The start page is the same as before, but if the user enters an existing case number an "update path" should be entered instead. This is currently not supported and the wizard will show an error message.

The update path should allow the user to update the following information about the case and specimen tubes:

  • Laterality: case + specimen tubes
  • PAD: case + specimen tubes
  • ReasonIfNoSpecimen: on case
  • SamplingDateTime: specimen tubes
  • RNALaterDateTime: specimen tubes

Note that a case may not have any specimen tubes. The ReasonIfNoSpecimen is only displayed if that is the case, and the four specimen tube specific annotations are only displayed if there are specimen tubes. The date-time annotations should have two separate input fields each, one for the date part and one for the time part.

Change History (6)

comment:1 by Nicklas Nordborg, 13 years ago

Status: newassigned

comment:2 by Nicklas Nordborg, 13 years ago

(In [1325]) References #302: Update functionality in the Personal information registration

Added SamplingDateTime and RNALaterDateTime to installation servlet.

comment:3 by Nicklas Nordborg, 13 years ago

Description: modified (diff)

comment:4 by Nicklas Nordborg, 13 years ago

(In [1326]) References #302: Update functionality in the Personal information registration

Restructured the code which should make it easier to keep track of related reggie items (patient/case/specimen tube). It is also easier to make sure that JSON representations are consistent if more functions are needed in the future.

The wizard now recognises 3 variants of existing cases:

  1. Match by exact name
  2. Match by name of specimen tubes that have been merged with a different case
  3. Match by [prefix] of ResonIfNoSpecimen comment for a merged case without specimen tubes.

If an existing case is found, the wizard loads patient information, etc. and proceeds immediately to step 3 in "Update mode". Currently, only the laterality value can be updated. PAD, the various timestamps, comments, etc. are not yet supported.

Hopefully this has been done without breaking any of the functions for registering a new case...

comment:5 by Nicklas Nordborg, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [1333]) Fixes #302: Update functionality in the Personal information registration

The create and update paths have been made more similar to reduce the number of special cases that the code needs to handle. Basically, as much info as we can is extracted from the case (if it exists) and specimen tubes in step 1. This information is used in step 3 and the user can accept it as it is, add missing information or change the current information.

There are some exotic cases that are still problematic. For example, it is not always possible to relate PAD to a case without specimen tubes if there is more than one case for a patient.

Also updated the index page to make it look better.

comment:6 by Nicklas Nordborg, 13 years ago

(In [1334]) References #302: Update functionality in the Personal information registration

Update README with information about the new functionality.

Note: See TracTickets for help on using tickets.