@Unstable
@Role
public interface PushPatientData
| Modifier and Type | Method and Description |
|---|---|
PushServerGetPatientIDResponse |
getPatientURL(String remoteServerIdentifier,
String remoteGUID,
String userName,
String password,
String userToken)
Gets the remote patient ID and URL for viewing the remote patient.
|
PushServerConfigurationResponse |
getRemoteConfiguration(String remoteServerIdentifier,
String userName,
String password,
String user_token)
Retrieves the list of patient fields accepted by the remote server as well as the list of groups the given remote
user is a member of on the remote server.
|
PushServerSendPatientResponse |
sendPatient(Patient patient,
Set<String> exportFields,
org.json.JSONObject patientState,
String groupName,
String remoteGUID,
String remoteServerIdentifier,
String userName,
String password,
String user_token)
Submits the specified subset of patient data to the specified remote server.
|
PushServerConfigurationResponse getRemoteConfiguration(String remoteServerIdentifier, String userName, String password, String user_token)
Uses the provided credentials to authorize on the remote server. In case optional user_token is not null the token is used and the password is ignored.
remoteServerIdentifier - server name as configured in TODOuserName - user name on the remote serverpassword - user password on the remote server. Ignored if user_token is not null.user_token - passwordless-login token provided by the remote server on the last successful login (optional)PushServerConfigurationResponse.
Returns null if no response was received from the server (e.g. a wrong server IP, a network
problem, etc.)
PushServerSendPatientResponse sendPatient(Patient patient, Set<String> exportFields, org.json.JSONObject patientState, String groupName, String remoteGUID, String remoteServerIdentifier, String userName, String password, String user_token)
A new remote patient will be created with each submission, unless remoteGUID is provided, and a patient with the given GUID exists on the remote server and owned by the given group and is authored by the given user - in which case remote patient will be updated (only the submitted fields)
patient - local patient to be pushed to the remove serverexportFields - patient fields to be pushed. All other fields will be omitted.patientState - JSON containing different categories of patient state, such as granted consentsgroupName - group name (optional, can be null)remoteGUID - if a remote patient with the same GUID exists and is owned by the given group and is authored
by the given user patient data will be updated instead of creating a new patient (optional, can be
null)remoteServerIdentifier - server name as configured in TODOuserName - user name on the remote serverpassword - user password on the remote server. Ignored if user_token is not null.user_token - passwordless-login token provided by the remote server on the last successful login (optional,
can be null)PushServerSendPatientResponse for details.
Returns null if no response was received from the server (e.g. a wrong server IP, a network
problem, etc.)
PushServerGetPatientIDResponse getPatientURL(String remoteServerIdentifier, String remoteGUID, String userName, String password, String userToken)
Uses the provided credentials to authorize on the remote server. In case the optional user_token is not
null, the token is used and the password is ignored.
remoteServerIdentifier - server name as configured in TODOremoteGUID - GUID of the remote patient object, as received from the remote server when the patient was
createduserName - user name on the remote serverpassword - user password on the remote server. Ignored if user_token is not null.userToken - passwordless-login token provided by the remote server on the last successful login (optional,
can be null)PushServerGetPatientIDResponse.
Returns null if no response was received from the server (e.g. a wrong server IP, a network
problem, etc.)
Copyright © 2011–2016 University of Toronto, Computational Biology Lab. All rights reserved.