Skip to content

Commit

Permalink
Add Date-only and Time-only as column types. (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-danield authored Feb 13, 2024
1 parent 37c1636 commit 197ee22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/labkey/test/params/FieldDefinition.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ public LookupInfo getLookupInfo()

// Temporary, for 'ColumnType.values()'
private static final List<ColumnType> COLUMN_TYPES = List.of(
ColumnType.MultiLine, ColumnType.Integer, ColumnType.String, ColumnType.Subject, ColumnType.DateAndTime,
ColumnType.MultiLine, ColumnType.Integer, ColumnType.String, ColumnType.Subject,
ColumnType.DateAndTime, ColumnType.Date, ColumnType.Time,
ColumnType.Boolean, ColumnType.Double, ColumnType.Decimal, ColumnType.File, ColumnType.Flag,
ColumnType.Attachment, ColumnType.User, ColumnType.Lookup, ColumnType.OntologyLookup, ColumnType.VisitId,
ColumnType.VisitDate, ColumnType.Sample, ColumnType.Barcode, ColumnType.TextChoice, ColumnType.SMILES
Expand All @@ -474,6 +475,8 @@ public interface ColumnType
ColumnType String = new ColumnTypeImpl("Text", "string");
ColumnType Subject = new ColumnTypeImpl("Subject/Participant", "string", "http://cpas.labkey.com/Study#ParticipantId", null);
ColumnType DateAndTime = new ColumnTypeImpl("Date Time", "dateTime");
ColumnType Date = new ColumnTypeImpl("Date", "date");
ColumnType Time = new ColumnTypeImpl("Time", "time", "http://www.w3.org/2001/XMLSchema#time", null);
ColumnType Boolean = new ColumnTypeImpl("Boolean", "boolean");
ColumnType Double = new ColumnTypeImpl("Number (Double)", "float");
ColumnType Decimal = new ColumnTypeImpl("Decimal (floating point)", "double");
Expand Down

0 comments on commit 197ee22

Please sign in to comment.