Opened 6 years ago

Closed 6 years ago

#514 closed enhancement (fixed)

Do not enter date if time is missing in specimen tube registration

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

Description

Ticket #437 made a few changes to how date and times are validated in the specimen tube registration wizard. It's still a bit unclear how to handle the case were a date is present, but time is missing. Since the information is stored in the database as a timestamp, it is not possible to just store the date without time. The "correct" way to handle the situation is to leave both the date and time empty.

To aid users of the wizard, the error message about missing time should also state that the date should be removed unless the time is known. No guesses, estimations or special values in this case.

A missing date will be detected later in the pathology form registration and usually some effort is put into finding out the correct date and time here. The pathology form registration also allow special values such as 00:00 for the time.

Change History (3)

comment:1 Changed 6 years ago by olle

Owner: changed from Nicklas Nordborg to olle

comment:2 Changed 6 years ago by olle

Status: newassigned

Ticket accepted.

comment:3 Changed 6 years ago by olle

Resolution: fixed
Status: assignedclosed

(In [2058]) Fixes #514. Specimen tube registration updated in error message when a valid date but invalid time has been entered:

  1. JSP script specimentube.jsp in reggie/resources/sampleproc/ updated in functions samplingDateTimeOnChange() and rnaLaterDateTimeOnChange() by changing error message when a valid date has been entered, but not a valid time, from "Not a valid time" to "Not a valid time (if time unknown, also leave date field blank)".
Note: See TracTickets for help on using tickets.