Leave a comment at the end of this page or email contact@krishagni.com
Register Existing Participant To Another Protocol
In OpenSpecimen to register an existing participant to another collection protocol use the following API.
URL: http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/
Method: POST
Content-Type: application/json
Below is the example of registering existing participant to another protocol.
URL | http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/ |
Method | POST |
Content-type | application/json |
Json | {
"participant":{
"id":5721 // existing participant id
},
"registrationDate":"2016-08-26",
"cpId":202, // Protocol id in which you wants to register participant
"ppid":"PPID09"
} |
Response | {
"id": 5726,
"participant": {
"id": 5721,
"firstName": null,
"lastName": null,
"middleName": null,
"birthDate": null,
"deathDate": null,
"gender": null,
"races": [],
"vitalStatus": null,
"pmis": [],
"sexGenotype": null,
"ethnicity": null,
"uid": null,
"activityStatus": "Active",
"empi": null,
"phiAccess": true,
"registeredCps": [],
"extensionDetail": null,
"cpId": -1
},
"cpId": 202,
"cpTitle": "Adolescents Study",
"cpShortTitle": "ARS",
"ppid": "PPID09",
"activityStatus": "Active",
"registrationDate": 1472169600000
} |
Error Cases :
code | Applies to | Status Message |
|---|---|---|
200 | All resources | Participant registered successfully |
400 | All requests | Invalid parameters. |
401 | All requests | Authorization failed, User doesn’t have Authority to register Participant for the given collection protocol |
500 | All requests | Internal server error, Encountered server error while performing operations |