Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

ItemValue
HTTP MethodPOST
URL/rest/ng/collection-protocol-registrations
Request Body
{
  "cpId": <collection protocol ID>,
  "registrationDate": <registration date>,
  "ppid": <ppid>
  "name": <participant first name or last name>
  "dob": <birth date>,
  "uid": <SSN or any national ID>,
  "specimen" <specimen label or barcode>,
  "includeStats": <true|false>,
  "startAt": <startAt | 0>,
  "maxResults": <maxResults | 100>
}
Response BodyList of registered participants that match the requested criteria.


Parameters:

Parameter
Details
cpIdIdentifier of CP whose participants are queried. Mandatory parameter. 
searchStrQuery string. Finds participants whose first name or last name or UID contains query string.
registraitonDateParticipant registration date
nameFinds participants whose first name or last name contains this parameter  value.
ppidMatches participants by PPID. Exact or contains match is specified by exactMatch parameter.
uidMatches participants by UID. Exact or contains match is specified by exactMatch parameter.
dobMatches participants by birth date
specimenFinds participants whose specimen labels or barcodes contains this parameter value
startAt Specifies the starting participant to include in the response. 
maxResultsMaximum number of records to fetch. By default it will be 100
includeStatsBoolean specifying whether participant statistics like visits, specimens count should be included in the response
exactMatchSpecifies whether the PPID or UID match should be exact match or contains match (i.e. sub-string match).

Given below is an example of API call request body to fetch first 25 participants whose name is "John" registered to collection protocol whose ID is 16 

POST <app-url>/rest/ng/collection-protocol-registrations
{
  "cpId": 16,
  "name": "john",
  "startAt": 0,
  "maxResults": 25
}
  • No labels