Opened 10 years ago
Closed 10 years ago
#769 closed task (fixed)
Retraction wizard - Additions to Step 2: Follow up
Reported by: | olle | Owned by: | olle |
---|---|---|---|
Priority: | major | Milestone: | Reggie v3.4 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description
Retraction wizard steps:
- [Ticket #526] Marking extracts for retraction, produce lists and protocols to simplify finding these in the lab or external storage.
- [Ticket #723] Follow-up of step 1, where a web form is presented for a selected retraction object, allowing dates to be entered when different sub-steps are finished. When all sub-steps are marked to have been finished, the items are marked to be ready for deletion/destruction.
This ticket is concerned with extending step 2, by adding a date when information has been sent to RCC Syd (Regionalt cancercentrum syd), that a patient is no longer included in the SCAN-B project, so referrals for follow-up blood samples need not be sent. No date is needed for a received response.
Change History (8)
comment:1 by , 10 years ago
Status: | new → assigned |
---|
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Milestone: | Reggie v3.x → Reggie v3.4 |
---|
comment:4 by , 10 years ago
Design specification for the RCC Syd notification date addition to the retraction follow-up step:
- The new RCC Syd notification date should have the same functionality as the forwarded date (only a date when information has been sent, but no response date). The design will therefore be based on that of the latter.
- JSP file
retraction_followup_form.jsp
inresources/personal/
updated in step 2 by adding a new input field for an RCC Syd notification date to the form. The input field has id equal to "rccSydSentDate
". - Javascript file
retraction_followup_form.js
inresources/personal/
updated:
a. New global variablerccSydSentDateIsValid
added, initialized tofalse
.
b. FunctioninitPage()
updated by setting new global variablerccSydSentDateIsValid
tofalse
, and adding new functionrccSydDateOnChange()
as event handler to field with id "rccSydSentDate
".
c. FunctioncaseInfoLoaded(response)
updated to set value of new RCC Syd sent date input field to value for JSON key "rccSydSentDate
" in patient info JSON data.
d. New functionrccSydDateOnChange()
added. It checks if the RCC Syd notification date is valid, in wich case it sets value of global variablerccSydSentDateIsValid
totrue
, and sets input status for form id "rccSydDate
" tovalid
.
e. FunctionvalidateStep2(event)
updated by calling new functionrccSydDateOnChange()
in addition to other date validation functions, in order to get up-to-date values for date validation variables, and includes the value of new global variablerccSydSentDateIsValid
, when checking if all dates are valid.
f. Functionsubmit()
updated by extending JSON info sent toRetractionFollowUpFormServlet
for command "RegisterRetraction
" with new JSON object with key "rccSydSentDate
" and value equal to that of new input field with id "rccSydSentDate
". - Java class/file
Annotationtype.java
insrc/net/sf/basedb/reggie/dao/
updated with one new retract date annotationRETRACT_TX_RCC_SYD
. - Java class/file
InstallServlet.java
insrc/net/sf/basedb/reggie/servlet/
updated inprotected
methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
to create the new annotation type item, if not existing. - Java servlet class/file
RetractionFollowUpFormServlet.java
insrc/net/sf/basedb/reggie/servlet/
updated:
a. Private methodvoid loadPatientInfo(DbControl dc, Patient patient)
updated to load patient annotationAnnotationtype.RETRACT_TX_RCC_SYD
to key "rccSydSentDate
".
b. Protected methodvoid doPost(HttpServletRequest req, HttpServletResponse resp)
updated for command "RegisterRetraction
" to obtain date for RCC Syd notification from input data, as well as from stored patient annotationAnnotationtype.RETRACT_TX_RCC_SYD
in database, and to update the latter with the new value. The new RCC Syd notification date is included, when checking whether the patient data is ready for destruction.
comment:5 by , 10 years ago
(In [3265]) Refs #769. Follow-up step of retraction wizard updated by addition of an RCC Syd notification date:
- JSP file
retraction_followup_form.jsp
inresources/personal/
updated in step 2 by adding a new input field for an RCC Syd notification date to the form. The input field has id equal to "rccSydSentDate
". - Javascript file
retraction_followup_form.js
inresources/personal/
updated:
a. New global variablerccSydSentDateIsValid
added, initialized tofalse
.
b. FunctioninitPage()
updated by setting new global variablerccSydSentDateIsValid
tofalse
, and adding new functionrccSydDateOnChange()
as event handler to field with id "rccSydSentDate
".
c. FunctioncaseInfoLoaded(response)
updated to set value of new RCC Syd sent date input field to value for JSON key "rccSydSentDate
" in patient info JSON data.
d. New functionrccSydDateOnChange()
added. It checks if the RCC Syd notification date is valid, in wich case it sets value of global variablerccSydSentDateIsValid
totrue
, and sets input status for form id "rccSydDate
" tovalid
.
e. FunctionvalidateStep2(event)
updated by calling new functionrccSydDateOnChange()
in addition to other date validation functions, in order to get up-to-date values for date validation variables, and includes the value of new global variablerccSydSentDateIsValid
, when checking if all dates are valid.
f. Functionsubmit()
updated by extending JSON info sent toRetractionFollowUpFormServlet
for command "RegisterRetraction
" with new JSON object with key "rccSydSentDate
" and value equal to that of new input field with id "rccSydSentDate
". - Java class/file
Annotationtype.java
insrc/net/sf/basedb/reggie/dao/
updated with one new retract date annotationRETRACT_TX_RCC_SYD
. - Java class/file
InstallServlet.java
insrc/net/sf/basedb/reggie/servlet/
updated inprotected
methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
to create the new annotation type item, if not existing. - Java servlet class/file
RetractionFollowUpFormServlet.java
insrc/net/sf/basedb/reggie/servlet/
updated:
a. Private methodvoid loadPatientInfo(DbControl dc, Patient patient)
updated to load patient annotationAnnotationtype.RETRACT_TX_RCC_SYD
to key "rccSydSentDate
".
b. Protected methodvoid doPost(HttpServletRequest req, HttpServletResponse resp)
updated for command "RegisterRetraction
" to obtain date for RCC Syd notification from input data, as well as from stored patient annotationAnnotationtype.RETRACT_TX_RCC_SYD
in database, and to update the latter with the new value. The new RCC Syd notification date is included, when checking whether the patient data is ready for destruction.
comment:6 by , 10 years ago
comment:7 by , 10 years ago
Test:
- Setup: A case name for a biosource of type
Retract
with "RetractStatus
" having valueReadyForDestruction
, i.e. all 7 previous dates had specific values, was used as input. - Tests:
1. Test perfomed: The "Register" button was pressed, without entering a date in new field "RCC Syd notification
".
Result: No retract date annotations modified. "RetractStatus
" annotation modified fromReadyForDestruction
tonull
.
2. Test perfomed: The "Register" button was pressed, after a date had been entered in new field "RCC Syd notification
".
Result: 1 retract date annotation modified (the new annotationAnnotationtype.RETRACT_TX_RCC_SYD
was set to the entered date). "RetractStatus
" annotation modified fromnull
toReadyForDestruction
.
In both tests, the outcome was the expected one. The tests therefore passed with successful result.
comment:8 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Ticket closed since the desired functionality has been added.
Ticket accepted.