Patient Cloud AppConnect Android API References
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.mdsol.babbage.model.Subject

Inherits com.mdsol.babbage.model.DatastoreRelation.

Public Member Functions

void collectData (byte[] data, String metadata, String contentType) throws Exception
 
void collectDataFromFile (File file, String metadata, String contentType) throws Exception
 
native boolean equals (Object other)
 
native String getCRFVersion ()
 
native long getID ()
 
native Study getStudy ()
 
native String getStudyUUID ()
 
native String getSubjectID ()
 
native String getSubjectName ()
 
native User getUser ()
 
native String getUUID ()
 
- Public Member Functions inherited from com.mdsol.babbage.model.DatastoreRelation
Datastore getDatastore ()
 

Static Public Attributes

static final int MAX_DATA_COLLECTION_SIZE = (int)1e+7
 

Protected Member Functions

void finalize ()
 

Additional Inherited Members

- Protected Attributes inherited from com.mdsol.babbage.model.DatastoreRelation
long mNativeObject
 

Detailed Description

Subject represents subjects as they exist in Medidata Rave EDC.

Member Function Documentation

void com.mdsol.babbage.model.Subject.collectData ( byte[]  data,
String  metadata,
String  contentType 
) throws Exception

Collect arbitrary data for the Subject, and if collection is successful, queue that data for upload. This method is intended to be used to collect data in small chunks, smaller than MaxDataCollectionSize.

Parameters
dataan array of data to be collected.
metadataOptional metadata string associated with this data.
contentTypeOptional basic mime-type of this data.
Exceptions
Exceptionif anything goes wrong during data collection; if data parameter is empty, larger than MaxDataCollectionSize, or null.
void com.mdsol.babbage.model.Subject.collectDataFromFile ( File  file,
String  metadata,
String  contentType 
) throws Exception

Collect arbitrary data for the Subject from a File, and if collection is successful, queue that data for upload. This method is intended to be used to collect data in small chunks. smaller than MaxDataCollectionSize.

Parameters
Filethe file containing the raw data to be collected.
metadataOptional metadata string associated with this data.
contentTypeOptional basic mime-type of this data.
Exceptions
Exceptionif anything goes wrong during data collection; if file paramater is empty, or larger than MaxDataCollectionSize, or null.
native boolean com.mdsol.babbage.model.Subject.equals ( Object  other)

Override the 'equal to' operator for the object.

void com.mdsol.babbage.model.Subject.finalize ( )
protected
native String com.mdsol.babbage.model.Subject.getCRFVersion ( )

Returns Case Report Form (CRF) value for this subject.

Returns
Case Report Form.
native long com.mdsol.babbage.model.Subject.getID ( )

Gets the unique identifier of the subject in the local datastore.

Returns
Subject identifier.
native Study com.mdsol.babbage.model.Subject.getStudy ( )

Returns the study com.mdsol.babbage.model.Study object linked to the subject.

Returns
Study object.
native String com.mdsol.babbage.model.Subject.getStudyUUID ( )

Returns universally unique identifier (UUID) of the study in which the subject is enrolled.

Returns
Study UUID.
native String com.mdsol.babbage.model.Subject.getSubjectID ( )

Returns the primary key of subjects as the key exists in the Rave EDC database. Necessary data element for submitting data through Medidata Rave Web Services Operational Data Model (ODM).

Returns
Subject identifier.
native String com.mdsol.babbage.model.Subject.getSubjectName ( )

Returns public identifier of the subject as it exists the Rave EDC web interface. The label for this field is "Subject ID".

Returns
Subject name.
native User com.mdsol.babbage.model.Subject.getUser ( )

Returns user com.mdsol.babbage.model.User object linked to the subject.

Returns
User object.
native String com.mdsol.babbage.model.Subject.getUUID ( )

Returns the universally unique identifier (UUID) of subjects.

Returns
Universally unique identifier (UUID).

Member Data Documentation

final int com.mdsol.babbage.model.Subject.MAX_DATA_COLLECTION_SIZE = (int)1e+7
static