next up previous contents
Next: Subject Management Screen Up: Finding/Selecting a subject Previous: Finding/Selecting a subject   Contents

Details of manageSubjects action

In manageSubjects action, first, the corresponding record from nc_humansubject table is retrieved, then the corresponding visits (if any) are retrieved from the database and sorted by descending date. For the Subject Management screen to be shown, only those visits belonging to the current experiments are set in the form bean. After that the experiment records for the experiments this subject is participating are retrieved from the database.

The visit type is retrieved from database if not cached already using an implementation of IDBCache interface gotten via the ServiceFactory. IDBCache provides caching support for the mostly static tables of the HID database. The caching mechanism provided by the implementation uses lazy loading and the cache is not released till the web server/container is restarted. Whenever the nearly static state cached is changed via the web application, the cache is refreshed by using forceRecache option in IDBCache method calls. Then, the protocol info is retrieved from cache via IDBCache interface. Afterwards, the bookkeeping for the studies of the visit to be shown in the 'Subject Management' screen is done. Most of the functionality in manageSubjects method is delegated to the helper class SubjectManagementHelper. Also the segment information for the visit/study to be displayed is set in the form bean.

In the current implementation, a segment can directly belong to a visit without being associated with a study. Those segments are grouped under the virtual study Default Study. Also, the segments are numbered uniquely under a visit meaning that the segments belonging to a study are not numbered starting from one, for each visit they are numbered starting from one.


next up previous contents
Next: Subject Management Screen Up: Finding/Selecting a subject Previous: Finding/Selecting a subject   Contents
Burak Ozyurt 2008-03-28