@Unstable @Role public interface PushServerConfigurationResponse extends PushServerResponse
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getConsents()
Get the list of consents available on the remote server.
|
Set<String> |
getPushableFields() |
Set<String> |
getPushableFields(String groupName)
Get the intersection of locally available non-personally identifiable fields and fields accepted by the remote
server.
The list may or may not be different depending on the remote group. |
Set<String> |
getRemoteAcceptedPatientFields() |
Set<String> |
getRemoteAcceptedPatientFields(String groupName)
Get the list of patient data fields accepted by the remote server.
|
Set<String> |
getRemoteUserGroups()
Get the list of remote PhenoTips group names the given remote user is a member of.
|
String |
getRemoteUserToken()
Get the user_token for future passwordless patient data pushes to the same server by the same remote user.
|
boolean |
remoteUpdatesEnabled()
Indicates whether remote server allows updates of existing patients.
|
isActionFailed_isUnknownAction, isActionFailed_knownReason, isActionFailed, isClientDoesNotAcceptServerProtocolVersion, isLoginFailed_IncorrectCredentials, isLoginFailed_knownReason, isLoginFailed_TokensNotSuported, isLoginFailed_UnauthorizedServer, isLoginFailed_UserTokenExpired, isLoginFailed, isServerDoesNotAcceptClientProtocolVersion, isSuccessfulSet<String> getRemoteUserGroups()
Null if login attempt was not successful, otherwise a list of remote PhenoTips group names the
given remote user is a member of on the remote server. The set may be empty if the user is not a member
of any PhenoTips groups.Set<String> getRemoteAcceptedPatientFields(String groupName)
groupName - remote group name (optional, may be null).Set<String> getPushableFields(String groupName)
groupName - remote group name (optional, may be null).boolean remoteUpdatesEnabled()
Note that even when updates are enabled, remote user used for pushing should have enough permissions to modify the patient. Updates are also only allowed when a valid GUID is provided, supposedly obtained as a result of an earlier push request.
true if remote server allowsString getRemoteUserToken()
null is returned.null.org.json.JSONArray getConsents()
Copyright © 2011–2016 University of Toronto, Computational Biology Lab. All rights reserved.