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

Inherits com.mdsol.babbage.model.Field.

Public Member Functions

native List< DictionaryResponsegetPossibleResponses ()
 
native DictionaryResponse getSubjectResponse ()
 
native String getSubjectResponseAsString ()
 
native void setSubjectResponse (DictionaryResponse newSubjectResponse)
 
- 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

The dictionary field contains lists of string-optional answers that you can present to subjects in conjuction with a question. For instance, "What is your Gender?" would have the options "F" and "M". Options in the DictionaryField are contained in the com.mdsol.babbage.model.DictionaryResponse class.

Member Function Documentation

native List<DictionaryResponse> com.mdsol.babbage.model.DictionaryField.getPossibleResponses ( )

Returns lists of com.mdsol.babbage.model.DictionaryResponse objects; in this case, options to the question posed for the given field.

Returns
native DictionaryResponse com.mdsol.babbage.model.DictionaryField.getSubjectResponse ( )

Gets Subject responses as the given object type.

Returns
Subject responses.
native String com.mdsol.babbage.model.DictionaryField.getSubjectResponseAsString ( )

Returns Subject responses to questions formatted as strings.

Returns
Subject responses.
native void com.mdsol.babbage.model.DictionaryField.setSubjectResponse ( DictionaryResponse  newSubjectResponse)

Sets subject responses

Parameters
newSubjectResponse