Changeset 554 for trunk/grails-app/conf


Ignore:
Timestamp:
Jun 10, 2010, 11:43:50 AM (11 years ago)
Author:
jahn
Message:

Refactored member 'code' of Study. Changed it from being template to being a proper member. This allows using as external ID in module communication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r550 r554  
    215215                        )
    216216                        .addToFields(new TemplateField(name: 'Description',type: TemplateFieldType.TEXT, entity: Study,comment:'Describe here the type of subjects and the treatment, challenges and sampling.'))
     217/*
    217218                        .addToFields(new TemplateField(
    218219                                name: 'Study code',
     
    222223                                comment: 'Fill out the code by which many people will recognize your study')
    223224                        )
     225*/
    224226                        .addToFields(new TemplateField(name: 'Objectives',type: TemplateFieldType.TEXT,entity: Study,comment:'Fill out the aim or questions of the study'))
    225227                        .addToFields(new TemplateField(name: 'Consortium',type: TemplateFieldType.STRING,entity: Study,comment:'If the study was performed within a consortium (e.g. NMC, NuGO), you can indicate this here'))
     
    731733                                        ecCode:"2007117.c",
    732734                                        startDate: Date.parse('yyyy-MM-dd','2008-01-02'),
    733                                         externalStudyID: 1
    734735                                )
    735736                                .with { if (!validate()) { errors.each { println it} } else save()}
     
    939940                                        ecCode:"unknown",
    940941                                        startDate: Date.parse('yyyy-MM-dd','2008-01-14'),
    941                                         externalStudyID: 2
    942942                                )
    943943                                .setFieldValue( 'Description', "Human study performed at RRI; centres involved: RRI, IFR, TUM, Maastricht U." )
Note: See TracChangeset for help on using the changeset viewer.