Changeset 188


Ignore:
Timestamp:
Feb 10, 2010, 4:21:55 PM (7 years ago)
Author:
keesvb
Message:

clarified clean data feature example in sandbox

Location:
trunk/grails-app
Files:
3 edited

Legend:

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

    r187 r188  
    353353                        lipidAssayRef.save()
    354354
     355                        humanStudy.addToAssays(lipidAssayRef);
     356                        humanStudy.save()
     357
    355358                }
    356359
  • trunk/grails-app/controllers/SandboxController.groovy

    r187 r188  
    3838
    3939                // Demonstration of querying mechanism
    40                 println clinicalDataLayerService.getFeaturesQuantitative(1)
    41                 clinicalDataLayerService.getDataQuantitative('LDL',1,['A1_B','A3_B'] as String[])
     40                println "Features available for first assay of PPSH study: " + clinicalDataLayerService.getFeaturesQuantitative(Study.findByCode("PPSH").assays*.id[0])
     41                println "LDL feature value for two subjects: " + clinicalDataLayerService.getDataQuantitative('LDL',1,['A1_B','A3_B'] as String[])
    4242
    4343                // Specify which variables we want to be available in the controller (implicit return statement)
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r186 r188  
    2323
    2424        static hasMany = [      editors: nimble.User,
    25                                                 readers: nimble.User,
    26                                                 subjects: Subject,
    27                                                 groups: SubjectGroup,
    28                                                 events: Event,
    29                                                 samplingEvents: SamplingEvent,
     25                        readers: nimble.User,
     26                        subjects: Subject,
     27                        groups: SubjectGroup,
     28                        events: Event,
     29                        samplingEvents: SamplingEvent,
     30                        assays: Assay,
    3031                        persons: StudyPerson,
    3132                        publications: Publication
Note: See TracChangeset for help on using the changeset viewer.