source: trunk/grails-app/domain/dbnp/clinicaldata/ClinicalMeasurementType.groovy @ 106

Last change on this file since 106 was 106, checked in by keesvb, 11 years ago

added first version of clean data layer specification and clinical data module

File size: 675 bytes
Line 
1package dbnp.clinicaldata
2
3/**
4 * Enum describing the data type of a clinical measurement
5 */
6public enum ClinicalMeasurementType {
7        NUMBER('Number'), // measurement is stored in ClinicalFloatData
8        STRING('String')  // measurement is stored in ClinicalStringData
9
10        String name
11
12        ClinicalMeasurementType(String name) {
13                this.name = name
14        }
15
16        static list() {
17                [STRING, NUMBER]
18        }
19
20        // It would be nice to see the description string in the scaffolding,
21        // and the following works, but then the item cannot be saved properly.
22        // TODO: find a way to display the enum description but save the enum value in the scaffolding
23        /*def String toString() {
24    return this.name
25}*/
26
27}
Note: See TracBrowser for help on using the repository browser.