class InsulinRecord extends DataRecord { readonly units : number ; readonly insulinType : InsulinRecordType ; constructor ( id , date , insulinType , units ) { super ( id , date , RecordType . Insulin ) ; this . insulinType = insulinType ; this . units = units ; } }