Opened 12 years ago

Closed 12 years ago

#448 closed enhancement (fixed)

Register comments for blood samples

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

Description (last modified by Nicklas Nordborg)

It should be possible to register comments for the blood samples. The value should be stored in the OtherPathNote annotation. Make sure that this value is retrieved and made visible if updating an existing blood registration.

The installation wizard should also be updated to include the OtherPathNote annotation in the 'Blood' category.

Change History (5)

comment:1 by Nicklas Nordborg, 12 years ago

Description: modified (diff)

comment:2 by olle, 12 years ago

Owner: changed from Nicklas Nordborg to olle
Status: newassigned

Ticket accepted.

comment:3 by olle, 12 years ago

Traceability note:

  • The blood registration wizard was introduced in Ticket #350 (Blood referral form registration wizard).
  • The blood registration wizard was most recently updated in Ticket #444 (The 'Plasma/serum' checkbox should be checked by default in the blood registration wizard).

comment:4 by olle, 12 years ago

Design discussion:

  • The blood registration form is managed by JSP script bloodform.jsp in reggie/resources/, which communicates with servlet BloodRegistrationServlet.java in reggie/src/net/sf/basedb/reggie/servlet/.
  • The JSP script is updated by adding a textarea input field in the blood registration form, whose value is sent to the servlet via variable bloodInfo.otherPathNote. The servlet stores the value as an annotation of type Annotationtype.OTHER_PATH_NOTE for the blood sample item. To ensure that an existing comment is shown, when updating a blood registration, the servlet should in this case retrieve the value from the database and transfer it to the JSP script via variable bloodInfo.otherPathNote.
  • The design for adding a comment to the blood registration wizard will be based on the one for handling a comment for a specimen tube in JSP script specimentube.jsp in reggie/resources/ and servlet SpecimenTubeServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ (there are some differences, such as in what registration step, the comment is added, but the same outline will be followed).
  • The installation wizard is managed by JSP script install.jsp in reggie/resources/, which communicates with servlet InstallServlet.java in reggie/src/net/sf/basedb/reggie/servlet/. The latter servlet should be updated to include Annotationtype.OTHER_PATH_NOTE for Subtype.BLOOD, in order for the OtherPathNote annotation to be shown in the 'Blood' category.
Last edited 12 years ago by olle (previous) (diff)

comment:5 by olle, 12 years ago

Resolution: fixed
Status: assignedclosed

(In [1775]) Fixes #448. The blood registration form now accepts comments.

Note: See TracTickets for help on using tickets.