@Component
public class StudyConsentRest
extends java.lang.Object
Constructor and Description |
---|
StudyConsentRest() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
completeWithdrawConsent(java.lang.String keyAsString,
UserConsentDetails userConsentDetails)
This Restful Web Service takes one parameter keyAsString and UserConsentDetails json object
This is used to store the user consent withdrawn date
RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/completeWithdrawConsent
REQUEST TYPE: POST
|
java.lang.String |
getConsentFields(java.lang.String keyAsString)
This Restful Web Service takes one parameter keyAsString
This is used to get consent fields,review consent form and withdraw consent form for the particular study
RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/getConsentFields
REQUEST TYPE: GET
|
java.lang.String |
putUserConsentDetails(java.lang.String keyAsString,
UserConsentDetails userConsentDetails)
This Restful Web Service takes one parameter keyAsString and UserConsentDetails json object
This is used to store user details (name,signature,consentAgreed date)
RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/putUserConsentDetails
REQUEST TYPE: POST
|
public java.lang.String getConsentFields(java.lang.String keyAsString)
This Restful Web Service takes one parameter keyAsString This is used to get consent fields,review consent form and withdraw consent form for the particular study RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/getConsentFields REQUEST TYPE: GET
keyAsString
- - phone session keyIf session key is invalid, returns json object with fields("code":404,"message":"error") If study is completed, returns json object with fields("code":600,"message":"study is completed") If consent not agreed, returns json object with fields("code":600,"message":"consent not agreed") If study not exists, returns json object with fields ("code":700,message":"study not exists") If session key is valid -onSuccess- returns json object with fields (jsonResult={consentid,studyid,heading,longFormData,shortFormData},code=200,message="ok") -If any exception occurs then returns json object with fields(code=500,message="error")
public java.lang.String putUserConsentDetails(java.lang.String keyAsString, UserConsentDetails userConsentDetails)
This Restful Web Service takes one parameter keyAsString and UserConsentDetails json object This is used to store user details (name,signature,consentAgreed date) RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/putUserConsentDetails REQUEST TYPE: POST
keyAsString
- - phone session keyjson
- object of type UserConsentDetails class with fields (name,signature,consentAgreedDate)If session key is invalid, returns json object with fields("code":404,"message":"error") If study is completed, returns json object with fields("code":600,"message":"study is completed") If consent not agreed, returns json object with fields("code":600,"message":"consent not agreed") If study not exists, returns json object with fields ("code":700,message":"study not exists") If session key is valid -onSuccess- store user details and returns (code=200,message="ok") -If any exception occurs then returns json object with fields(code=500,message="error")
public java.lang.String completeWithdrawConsent(java.lang.String keyAsString, UserConsentDetails userConsentDetails)
This Restful Web Service takes one parameter keyAsString and UserConsentDetails json object This is used to store the user consent withdrawn date RestFul End Point URI: http://host:port/ResearcherService/rest/studyConsent/completeWithdrawConsent REQUEST TYPE: POST
keyAsString
- - phone session keyjson
- object of type UserConsentDetails class with fields (consentWithdrawnDate)If session key is invalid, returns json object with fields("code":404,"message":"error") If study is completed, returns json object with fields("code":600,"message":"study is completed") If consent not agreed, returns json object with fields("code":600,"message":"consent not agreed") If study not exists, returns json object with fields ("code":700,message":"study not exists") If session key is valid -onSuccess- store user consent withdrawn details and returns (code=200,message="ok") -If any exception occurs then returns json object with fields(code=500,message="error")