source: trunk/grails-app/domain/dbnp/studycapturing/Protocol.groovy @ 246

Last change on this file since 246 was 246, checked in by duh, 11 years ago
  • increased session lifetime to 7 days
  • improved wizard study template selector
  • wizard study page now contains study template fields (which are not yet handled)
  • added protocol selector to event descriptions page
  • renamed the 'blood sampling' protocol to 'Blood sampling' (it was duplicately named 'Liver sampling')
  • Property svn:keywords set to Rev Date Author
File size: 891 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * Class describing the available protocols in the database, and their respective protocol parameters
7 * Concrete instances of protocol application (and parameter values) should be stored as ProtocolInstance
8 * For the moment, there is one global Protocol store. From user experience, it should become clear if this store
9 * has to remain global or should be bound to specific templates, users, user groups or even studies.
10 *
11 * Revision information:
12 * $Rev: 246 $
13 * $Author: duh $
14 * $Date: 2010-03-08 17:25:07 +0000 (ma, 08 mrt 2010) $
15 */
16class Protocol implements Serializable {
17    String name
18    Term   reference
19   
20    static hasMany = [parameters : ProtocolParameter, compounds: Compound]
21    static constraints = {
22        reference(nullable: true, blank: true)
23    }
24
25        /**
26         * overloaded toString method
27         * @return String
28         */
29        def String toString() {
30                return this.name;
31        }
32}
Note: See TracBrowser for help on using the repository browser.