class GlucoseRecord extends DataRecord { readonly glucose : GlucoseValue ; readonly glucoseType : GlucoseRecordType ; constructor ( id , date , glucoseType , glucose ) { super ( id , date , RecordType . Glucose ) ; this . glucoseType = glucoseType ; this . glucose = glucose ; } }