source: trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy @ 139

Last change on this file since 139 was 139, checked in by keesvb, 10 years ago

changed domain model for events and protocol parameters, and for template field storage, added NuGO PPS3 events, added searchable plugin for full text queries, corrected a few HTML errors in create study

File size: 559 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * This domain class describes the subjects in a study.
7 */
8class Subject {
9        static searchable = true
10        String name
11        Term species
12        Map templateStringFields
13        Map templateIntegerFields
14        Map templateFloatFields
15        Map templateTermFields
16
17        static hasMany = [
18                templateStringFields : String, // stores both STRING and STRINGLIST items (latter should be checked against the list)
19                templateIntegerFields : int,
20                templateFloatFields : float,
21                templateTermFields : Term
22        ]
23       
24        static constraints = {
25        }
26}
Note: See TracBrowser for help on using the repository browser.