This API is available for Registering a participantUse this resource to register a new/existing participant in the OpenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSON format.
Below are the attributes which needs need to be send along with sent in the request body:
Parameter | Details | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
participant | Details of the participant which is being registered. ParamterIf the participant already exists then specify the identifier of that participant otherwise specify the complete details, below are the attributes of the participant:
| ||||||||||||||||||||||||||||||||||
cpId | Identifier of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
cpTitle | Title of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
cpShortTitle | ShortTitle of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
ppid [optional if autogeneration set at protocol leve] | Protocol Participant Identifier, this is the identifier to uniquely identify the participant with in a protocol. Note: If PPID is set to auto-generated at protocol level, then please leave this attribute blank. | ||||||||||||||||||||||||||||||||||
registrationDate | Date of the registration of participant |
Note: For the collection protocol attributes, any one is required from the three: cpId/cpTitle/cpShortTitle.
http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations
Use this URL to add participant in OpenSpecimen application.
Result:
The response of this request will contains the details of the registered participant.
Below is the example of the register participant:
URL | openspecimen/rest/ng/collection-protocol-registrations |
Request type | application/json |
Method | POST |
json | { "participantDetail":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "activityStatus":"Active", "registrationDate":"2014-04-21" } |
Response | { "id":5, "participantDetail":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "activityStatus":"Active", "registrationDate":"2014-04-21" } |
...