Opened 6 years ago

Closed 6 years ago

#619 closed defect (fixed)

Switching between cases will not always work

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

Description

Consider a patient with multiple specimen with different case-ids that are linked to a single 'primary' case. Eg.

  • Case: C1
  • Specimen: C1.1, C2.1

Going to the case summary for C1 will display information about specimen C1.1 only. In the 'Patient' section there is a list with 'All cases' which include the C2.1 case-id.

Clicking on the C2 case-id will display information about C2.1, but the list with 'All cases' will still show C1 as the active case, and now it is not possible to switch back to C1.

Change History (2)

comment:1 Changed 6 years ago by Nicklas Nordborg

After investigating this it seems like #534 which introduced support for searching for personal numbers always replaces the search string with the primary case-id (eg. C1). This makes sense when searching for personal numbers, but not if the case is a secondary case (eg. C2).

comment:2 Changed 6 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed

(In [2592]) Fixes #619: Switching between cases will not always work

Before using the primary case name we will check if the current name is found in the list of all case names. If it is found we do nothing, otherwise it is assumed to be a personal number and we use switch to the primary case name.

Note: See TracTickets for help on using tickets.