|
Patient Cloud AppConnect Android API References
|
Inherited by com.mdsol.babbage.model.DiskDatastore.
Public Member Functions | |
| void | dispose () |
| List< Form > | getAvailableAnytimeFormsForSubject (long subjectID) |
| List< Form > | getAvailableFormsForSubject (long subjectID) |
| List< Form > | getAvailableScheduledFormsForSubject (long subjectID) |
| native List< SubjectDataEnvelope > | getCollectedData () |
| native List< Form > | getCompletedForms () |
| native List< Form > | getCompletedFormsForSubject (long subjectID) |
| SubjectDataEnvelope | getEnvelope (long envelopeID) |
| native Field | getField (long id) |
| Form | getForm (long id) |
| native List< Form > | getForms (long subjectID) |
| List< Form > | getForms () |
| native List< Form > | getIncompleteForms () |
| native List< Study > | getStudies () |
| Study | getStudy (String uuid) |
| Study | getStudy (long id) |
| Subject | getSubject (String uuid, String studyUUID, String userUUID) |
| Subject | getSubject (long id) |
| native List< Subject > | getSubjects () |
| native List< Subject > | getSubjectsForUser (long userID) |
| native int | getTotalFormCountForSubject (long subjectID) |
| User | getUser (String username) |
| User | getUser (long id) |
| native void | nuke () |
| native void | purgeExpiredIncompleteFormResponses () |
| native void | removeFormsForSubject (long subjectID) |
| native void | reread () |
Static Public Member Functions | |
| static native boolean | isMigrationRequired () |
| static boolean | migrateIfNeeded (Babbage.Listener listener) |
| static native void | setSharedKey (byte[] key) |
Protected Member Functions | |
| abstract void | delete () |
| void | finalize () throws Throwable |
Protected Attributes | |
| long | mNativeObject |
Use the Datastore to load and persist clinical objects - study, user, form, and so on - to and from the local database.
|
abstractprotected |
For dbo::Transaction used in c++ code.
| void com.mdsol.babbage.model.Datastore.dispose | ( | ) |
|
protected |
Clean up the native object when freed by the GC
| List<Form> com.mdsol.babbage.model.Datastore.getAvailableAnytimeFormsForSubject | ( | long | subjectID | ) |
A public method that returns all forms for the current system date. Invokes a private method.
| subjectID |
| List<Form> com.mdsol.babbage.model.Datastore.getAvailableFormsForSubject | ( | long | subjectID | ) |
A public method that returns all forms for the current system date. Invokes a private method.
| subjectID |
| List<Form> com.mdsol.babbage.model.Datastore.getAvailableScheduledFormsForSubject | ( | long | subjectID | ) |
A public method that returns all forms for the current system date. Invokes a private method.
| subjectID |
| native List<SubjectDataEnvelope> com.mdsol.babbage.model.Datastore.getCollectedData | ( | ) |
Gets all SubjectDataEnvelopes that have been collected but not submitted.
| native List<Form> com.mdsol.babbage.model.Datastore.getCompletedForms | ( | ) |
Gets all completed and submissible forms.
| native List<Form> com.mdsol.babbage.model.Datastore.getCompletedFormsForSubject | ( | long | subjectID | ) |
Gets the forms of a given subject that have been completed and are ready for submission.
| subjectID | The identifier of the subject. |
| SubjectDataEnvelope com.mdsol.babbage.model.Datastore.getEnvelope | ( | long | envelopeID | ) |
Gets the SubjectDataEnvelope that matches a given database identifier.
| id | The database identifier of the SubjectDataEnvelope requested. |
| native Field com.mdsol.babbage.model.Datastore.getField | ( | long | id | ) |
| Form com.mdsol.babbage.model.Datastore.getForm | ( | long | id | ) |
Gets forms that match a given database ID.
| id | The database identifier of the target form. |
| native List<Form> com.mdsol.babbage.model.Datastore.getForms | ( | long | subjectID | ) |
Get all the subject's forms.
| subjectID | The identifier of the subject. |
| List<Form> com.mdsol.babbage.model.Datastore.getForms | ( | ) |
Get all the forms in the database.
| native List<Form> com.mdsol.babbage.model.Datastore.getIncompleteForms | ( | ) |
Gets all forms that are not completed.
| native List<Study> com.mdsol.babbage.model.Datastore.getStudies | ( | ) |
Get all studies from the database.
| Study com.mdsol.babbage.model.Datastore.getStudy | ( | String | uuid | ) |
Gets the study that matches a given universally unique identifier (UUID).
| uuid | The universally unique identifier (UUID) of the study requested. |
| Study com.mdsol.babbage.model.Datastore.getStudy | ( | long | id | ) |
Gets the study that matches a given database identifier.
| id | The database identifier of the study requested. |
| Subject com.mdsol.babbage.model.Datastore.getSubject | ( | String | uuid, |
| String | studyUUID, | ||
| String | userUUID | ||
| ) |
Get the subject that matches the given universally unique identifiers (UUID) belonging to the specified study and user.
| uuid | The universally unique identifier of the subject. |
| studyUUID | The universally unique identifier of the study that the subject belongs to. |
| userUUID | The universally unique identifier of the user that the subject belongs to. |
| Subject com.mdsol.babbage.model.Datastore.getSubject | ( | long | id | ) |
Gets subjects that match the given database identifier.
| id | The subject's database identifier. |
| native List<Subject> com.mdsol.babbage.model.Datastore.getSubjects | ( | ) |
Get all subjects from the database.
| native List<Subject> com.mdsol.babbage.model.Datastore.getSubjectsForUser | ( | long | userID | ) |
Get the subjects associated with a given user.
| userID | The user's database identifier. |
| native int com.mdsol.babbage.model.Datastore.getTotalFormCountForSubject | ( | long | subjectID | ) |
Gets the number of forms that exist for the given subject. The value returned by this method includes all non-completed forms, even those that are not currently available because of their time window.
| subjectID | The subject's database identifier. |
| User com.mdsol.babbage.model.Datastore.getUser | ( | String | username | ) |
Gets the user that matches a given username.
| username | The username of the user. |
| User com.mdsol.babbage.model.Datastore.getUser | ( | long | id | ) |
Gets the user that matches a given database identifier.
| id | The database identifier of the user. |
|
static |
|
static |
| native void com.mdsol.babbage.model.Datastore.nuke | ( | ) |
Clears the contents of all database tables.
| native void com.mdsol.babbage.model.Datastore.purgeExpiredIncompleteFormResponses | ( | ) |
Removes user responses from forms that are both expired and partially complete.
| native void com.mdsol.babbage.model.Datastore.removeFormsForSubject | ( | long | subjectID | ) |
Remove all forms that belong to the subject, including completed forms.
| subjectID | The identifier of the subject. |
| native void com.mdsol.babbage.model.Datastore.reread | ( | ) |
|
static |
|
protected |
For native object storage.
1.8.11