Last change
on this file since 186 was
186,
checked in by keesvb, 12 years ago
|
added samples, assays and clinical data to bootstrap, modified clean data module linkage
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
1.1 KB
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | /** |
---|
4 | * Domain class describing the basic entity in the study capture part: the Study class. |
---|
5 | * |
---|
6 | * Revision information: |
---|
7 | * $Rev: 186 $ |
---|
8 | * $Author: keesvb $ |
---|
9 | * $Date: 2010-02-10 12:55:45 +0000 (wo, 10 feb 2010) $ |
---|
10 | */ |
---|
11 | class Study implements Serializable { |
---|
12 | static searchable = true |
---|
13 | nimble.User owner |
---|
14 | String title |
---|
15 | String code |
---|
16 | String researchQuestion |
---|
17 | String description |
---|
18 | String ecCode |
---|
19 | Date dateCreated |
---|
20 | Date lastUpdated |
---|
21 | Date startDate |
---|
22 | Template template |
---|
23 | |
---|
24 | static hasMany = [ editors: nimble.User, |
---|
25 | readers: nimble.User, |
---|
26 | subjects: Subject, |
---|
27 | groups: SubjectGroup, |
---|
28 | events: Event, |
---|
29 | samplingEvents: SamplingEvent, |
---|
30 | persons: StudyPerson, |
---|
31 | publications: Publication |
---|
32 | ] |
---|
33 | |
---|
34 | static constraints = { |
---|
35 | owner(nullable: true, blank: true) |
---|
36 | title(nullable: false, blank: false) |
---|
37 | template(nullable: true, blank: true) |
---|
38 | } |
---|
39 | |
---|
40 | static mapping = { |
---|
41 | researchQuestion type: 'text' |
---|
42 | description type: 'text' |
---|
43 | autoTimestamp true |
---|
44 | } |
---|
45 | |
---|
46 | def String toString() { |
---|
47 | return title; |
---|
48 | } |
---|
49 | |
---|
50 | def giveAllFields() { |
---|
51 | return template.studyFields; |
---|
52 | } |
---|
53 | |
---|
54 | def giveSamples() { |
---|
55 | return samplingEvents*.samples; |
---|
56 | } |
---|
57 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.