Changeset 1153 for trunk/grails-app/conf
- Timestamp:
- Nov 17, 2010, 11:34:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapTemplates.groovy
r1118 r1153 39 39 40 40 def ageField = new TemplateField( 41 name: 'Age',type: TemplateFieldType. INTEGER,entity: Subject,unit: 'years',comment: 'Either include age at the start of the study or date of birth (if known)')41 name: 'Age',type: TemplateFieldType.LONG,entity: Subject,unit: 'years',comment: 'Either include age at the start of the study or date of birth (if known)') 42 42 .with { if (!validate()) { errors.each { println it} } else save()} 43 43 … … 90 90 .addToFields(genderField) 91 91 .addToFields(new TemplateField( 92 name: 'Age', type: TemplateFieldType. INTEGER, entity: Subject, unit: 'weeks', comment: 'Age at start of study'))92 name: 'Age', type: TemplateFieldType.LONG, entity: Subject, unit: 'weeks', comment: 'Age at start of study')) 93 93 .addToFields(new TemplateField( 94 94 name: 'Age type',type: TemplateFieldType.STRINGLIST,entity: Subject, … … 97 97 name: 'Cage',type: TemplateFieldType.STRING,entity: Subject,comment:'Indicate the cage used for housing (type and/or size)')) 98 98 .addToFields(new TemplateField( 99 name: '#Mice in cage',type: TemplateFieldType. INTEGER,entity: Subject,comment:'If known, indicate the number of mice per cage'))100 .addToFields(new TemplateField( 101 name: 'Litter size',type: TemplateFieldType. INTEGER,entity: Subject,comment:'If known, indicate the litter size of the litter from which the subject originates'))99 name: '#Mice in cage',type: TemplateFieldType.LONG,entity: Subject,comment:'If known, indicate the number of mice per cage')) 100 .addToFields(new TemplateField( 101 name: 'Litter size',type: TemplateFieldType.LONG,entity: Subject,comment:'If known, indicate the litter size of the litter from which the subject originates')) 102 102 .addToFields(new TemplateField( 103 103 name: 'Weight', type: TemplateFieldType.DOUBLE, unit: 'gram',entity: Subject,comment:'If known indicate the weight of the subject in grams at the start of the study')) … … 120 120 name: 'Race',type: TemplateFieldType.STRING,entity: Subject, comment:'If known and of interest the ethnic group can be indicated')) 121 121 .addToFields(new TemplateField( 122 name: 'Waist circumference',type: TemplateFieldType. FLOAT, unit: 'cm',entity: Subject, comment:'The waist circumference is measured just above the hip bone. Indicate the measure at the start of the study.'))123 .addToFields(new TemplateField( 124 name: 'Hip circumference',type: TemplateFieldType. FLOAT, unit: 'cm',entity: Subject, comment:'The hip circumference is measured at the level of the two bony prominences front of the hips. Indicate the measure at the start of the study.'))125 .addToFields(new TemplateField( 126 name: 'Systolic blood pressure',type: TemplateFieldType. FLOAT, unit: 'mmHg',entity: Subject, comment:'Indicate the levels at the start of the study in mmHG'))127 .addToFields(new TemplateField( 128 name: 'Diastolic blood pressure',type: TemplateFieldType. FLOAT, unit: 'mmHg',entity: Subject, comment:'Indicate the levels at the start of the study in mmHG'))129 .addToFields(new TemplateField( 130 name: 'Heart rate',type: TemplateFieldType. FLOAT, unit: 'beats/min',entity: Subject, comment:'Indicate the heart rate at the start of in study in beats per minute'))122 name: 'Waist circumference',type: TemplateFieldType.DOUBLE, unit: 'cm',entity: Subject, comment:'The waist circumference is measured just above the hip bone. Indicate the measure at the start of the study.')) 123 .addToFields(new TemplateField( 124 name: 'Hip circumference',type: TemplateFieldType.DOUBLE, unit: 'cm',entity: Subject, comment:'The hip circumference is measured at the level of the two bony prominences front of the hips. Indicate the measure at the start of the study.')) 125 .addToFields(new TemplateField( 126 name: 'Systolic blood pressure',type: TemplateFieldType.DOUBLE, unit: 'mmHg',entity: Subject, comment:'Indicate the levels at the start of the study in mmHG')) 127 .addToFields(new TemplateField( 128 name: 'Diastolic blood pressure',type: TemplateFieldType.DOUBLE, unit: 'mmHg',entity: Subject, comment:'Indicate the levels at the start of the study in mmHG')) 129 .addToFields(new TemplateField( 130 name: 'Heart rate',type: TemplateFieldType.DOUBLE, unit: 'beats/min',entity: Subject, comment:'Indicate the heart rate at the start of in study in beats per minute')) 131 131 .addToFields(new TemplateField( 132 132 name: 'Run-in-food',type: TemplateFieldType.TEXT,entity: Subject, comment:'If defined, give a short description of the food used before the measurements')) … … 158 158 name: 'Sample measured weight', 159 159 unit: 'mg', 160 type: TemplateFieldType. FLOAT,160 type: TemplateFieldType.DOUBLE, 161 161 entity: Sample 162 162 ) … … 175 175 name: 'Sample measured volume', 176 176 unit: 'ml', 177 type: TemplateFieldType. FLOAT,177 type: TemplateFieldType.DOUBLE, 178 178 entity: Sample 179 179 ) … … 270 270 name: 'Growth protocol', entity: Subject, type: TemplateFieldType.TEXT)) 271 271 .addToFields(new TemplateField( 272 name: 'Position X', entity: Subject, type: TemplateFieldType. FLOAT))273 .addToFields(new TemplateField( 274 name: 'Position Y', entity: Subject, type: TemplateFieldType. FLOAT))272 name: 'Position X', entity: Subject, type: TemplateFieldType.DOUBLE)) 273 .addToFields(new TemplateField( 274 name: 'Position Y', entity: Subject, type: TemplateFieldType.DOUBLE)) 275 275 .addToFields(new TemplateField( 276 276 name: 'Block', entity: Subject, type: TemplateFieldType.STRING)) 277 277 .addToFields(new TemplateField( 278 name: 'Temperature at day', entity: Subject, type: TemplateFieldType. FLOAT))279 .addToFields(new TemplateField( 280 name: 'Temperature at night', entity: Subject, type: TemplateFieldType. FLOAT))278 name: 'Temperature at day', entity: Subject, type: TemplateFieldType.DOUBLE)) 279 .addToFields(new TemplateField( 280 name: 'Temperature at night', entity: Subject, type: TemplateFieldType.DOUBLE)) 281 281 .addToFields(new TemplateField( 282 282 name: 'Photo period', entity: Subject, type: TemplateFieldType.STRING)) … … 343 343 name: 'Block', type: TemplateFieldType.STRING, entity: Subject)) 344 344 .addToFields(new TemplateField( 345 name: 'Position X', type: TemplateFieldType. FLOAT, entity: Subject))346 .addToFields(new TemplateField( 347 name: 'Position Y', type: TemplateFieldType. FLOAT, entity: Subject))348 .addToFields(new TemplateField( 349 name: 'Temperature at day', type: TemplateFieldType. FLOAT, entity: Subject))350 .addToFields(new TemplateField( 351 name: 'Temperature at night', type: TemplateFieldType. FLOAT, entity: Subject))345 name: 'Position X', type: TemplateFieldType.DOUBLE, entity: Subject)) 346 .addToFields(new TemplateField( 347 name: 'Position Y', type: TemplateFieldType.DOUBLE, entity: Subject)) 348 .addToFields(new TemplateField( 349 name: 'Temperature at day', type: TemplateFieldType.DOUBLE, entity: Subject)) 350 .addToFields(new TemplateField( 351 name: 'Temperature at night', type: TemplateFieldType.DOUBLE, entity: Subject)) 352 352 .addToFields(new TemplateField( 353 353 name: 'Photo period', type: TemplateFieldType.STRING, entity: Subject)) … … 502 502 unit: 'mg', 503 503 entity: SamplingEvent, 504 type: TemplateFieldType. FLOAT504 type: TemplateFieldType.DOUBLE 505 505 ) 506 506 ) … … 520 520 entity: SamplingEvent, 521 521 unit: 'ml', 522 type: TemplateFieldType. FLOAT522 type: TemplateFieldType.DOUBLE 523 523 ) 524 524 ) … … 539 539 unit: 'ul', 540 540 entity: SamplingEvent, 541 type: TemplateFieldType. FLOAT541 type: TemplateFieldType.DOUBLE 542 542 ) 543 543 )
Note: See TracChangeset
for help on using the changeset viewer.