Ignore:
Timestamp:
Feb 10, 2010, 1:55:45 PM (10 years ago)
Author:
keesvb
Message:

added samples, assays and clinical data to bootstrap, modified clean data module linkage

Location:
trunk/grails-app/domain/dbnp
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/clinicaldata/ClinicalAssay.groovy

    r162 r186  
    1414
    1515        static constraints = {
     16                reference(nullable: true, blank: true)
     17                appliedMethod(nullable: true, blank: true)
     18                SOP(nullable: true, blank: true)
    1619        }
    1720}
  • trunk/grails-app/domain/dbnp/clinicaldata/ClinicalAssayInstance.groovy

    r162 r186  
    33class ClinicalAssayInstance {
    44
    5         long externalAssayID // in the future, we might do a more sophisticated mapping to the study capture part, as multiple metadata instances might exist
     5        // The (auto-generated) id of this instance will be used in the study capture module to refer to the assay
     6
    67        ClinicalAssay assay
    78
  • trunk/grails-app/domain/dbnp/clinicaldata/ClinicalFloatData.groovy

    r162 r186  
    66class ClinicalFloatData {
    77
    8         long assayID   // external or internal assay ID? the latter approach seems better
    9         long sampleID  // same question
     8        ClinicalAssayInstance assay
    109        ClinicalMeasurement measurement
     10        String sample  // universal sample ID
    1111        float value
    1212
  • trunk/grails-app/domain/dbnp/clinicaldata/ClinicalMeasurement.groovy

    r162 r186  
    1313
    1414        static constraints = {
     15                referenceValues(nullable: true, blank: true)
     16                detectableLimit(nullable: true)
     17                correctionMethod(nullable: true, blank: true)
    1518        }
    1619}
  • trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy

    r184 r186  
    1010    String name
    1111    AssayModule module
    12     long externalAssayId
     12    long externalAssayId // the assay ID the assay has in the external module
    1313
    1414    static hasMany = [samples : Sample]
  • trunk/grails-app/domain/dbnp/studycapturing/AssayType.groovy

    r162 r186  
    77    TRANSCRIPTOMICS('Transcriptomics'),
    88    METABOLOMICS('Metabolomics'),
    9     CLINICAL_CHEMISTRY('Clinical Chemistry')
     9    CLINICAL_DATA('Clinical data')
    1010
    1111    String name
     
    1616
    1717    static list() {
    18      [TRANSCRIPTOMICS, METABOLOMICS, CLINICAL_CHEMISTRY]
     18     [TRANSCRIPTOMICS, METABOLOMICS, CLINICAL_DATA]
    1919    }
    2020
  • trunk/grails-app/domain/dbnp/studycapturing/EventDescription.groovy

    r162 r186  
    1010class EventDescription {
    1111
    12     String name
    13     String description
    14     Term classification
    15     Protocol protocol
     12        String name
     13        String description
     14        Term classification
     15        Protocol protocol
     16        boolean isSamplingEvent
    1617
    17     static constraints = {
    18     }
     18        static constraints = {
     19                classification(nullable: true)
     20        }
     21
    1922}
  • trunk/grails-app/domain/dbnp/studycapturing/Protocol.groovy

    r184 r186  
    1515   
    1616    static hasMany = [parameters : ProtocolParameter, compounds: Compound]
    17     static constraints = { }
     17    static constraints = {
     18        reference(nullable: true)
     19    }
    1820
    1921
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r184 r186  
    5151                return template.studyFields;
    5252        }
     53
     54        def giveSamples() {
     55                return samplingEvents*.samples;
     56        }
    5357}
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateSubjectField.groovy

    r162 r186  
    1111class TemplateSubjectField extends TemplateField {
    1212        static constraints = {
     13                name(unique: true)
    1314        }
    1415
Note: See TracChangeset for help on using the changeset viewer.