Patient Cloud AppConnect Android API References
Public Member Functions | List of all members
com.mdsol.babbage.model.DateTimeField

Inherits com.mdsol.babbage.model.Field.

Public Member Functions

native String getDateTimeFormat ()
 
native Date getDistantPastResponse ()
 
native Date getSubjectResponse ()
 
native String getSubjectResponseAsString ()
 
native boolean isResponse24HourTime ()
 
native boolean isResponseWithDate ()
 
native boolean isResponseWithTime ()
 
native void setSubjectResponse (Date date)
 
- Public Member Functions inherited from com.mdsol.babbage.model.Field
native boolean equals (Object other)
 
native String getFieldNumber ()
 
native String getFieldOID ()
 
native int getFieldOrdinal ()
 
native Type getFieldType ()
 
native String getHeader ()
 
native long getID ()
 
native String getLabel ()
 
native Problem getResponseProblem ()
 
native boolean isVisible ()
 
- Public Member Functions inherited from com.mdsol.babbage.model.DatastoreRelation
Datastore getDatastore ()
 

Additional Inherited Members

- Protected Member Functions inherited from com.mdsol.babbage.model.Field
void finalize ()
 
- Protected Attributes inherited from com.mdsol.babbage.model.DatastoreRelation
long mNativeObject
 

Detailed Description

Use DateTimeField to prompt users for a date and time.

Member Function Documentation

native String com.mdsol.babbage.model.DateTimeField.getDateTimeFormat ( )

Returns a string format for the date that com.mdsol.babbage.model.RaveDateFormat uses in converting between date and string.

Returns
Date formatter string.
native Date com.mdsol.babbage.model.DateTimeField.getDistantPastResponse ( )

Gets the response that the field considers to be the distant past. The view can use this information to disallow responses from users before this date. If the view does allow it, getResponseProblem() returns

Field.Problem.CONCERN_DATE_RESPONSE_IN_DISTANT_PAST

so that the view can still choose to confirm responses with users.

Returns
Distant past response.
native Date com.mdsol.babbage.model.DateTimeField.getSubjectResponse ( )

Gets the subject's response as a date.

Returns
Subject response as a date.
native String com.mdsol.babbage.model.DateTimeField.getSubjectResponseAsString ( )

Returns the datetime response as a string. Response is formatted per com.mdsol.babbage.model.RaveDateFormat, which is set in Medidata Rave EDC for this field.

Returns
native boolean com.mdsol.babbage.model.DateTimeField.isResponse24HourTime ( )

Gets whether the response format uses a 24-hour clock. This information is extracted from the field's data format. The view uses this information to display the time picker as a 12- or 24-hour clock. An alternative is to have the system make this decision based on the locale settings of the operating system.

Returns
Whether to use the 24-hour clock.
native boolean com.mdsol.babbage.model.DateTimeField.isResponseWithDate ( )

Gets whether the response format requires a date. This information is extracted from the field's data format. The view uses this information to display a date picker. If a date is not required but is provided in the response, it is ignored.

Returns
Whether a date is required.
native boolean com.mdsol.babbage.model.DateTimeField.isResponseWithTime ( )

Gets whether the response format requires a time. This information is extracted from the field's data format. The view uses this information to display a time picker. If a time is not required but is provided in the response, it is ignored.

Returns
Whether a time is required.
native void com.mdsol.babbage.model.DateTimeField.setSubjectResponse ( Date  date)

Sets subjects' responses.

Parameters
date