This API is available for updating Specimen Collection Group.
List of mandatory fields:
- cprId
- name
- clinicalDiagnosis
- clinicalStatus
- activityStatus
- collectionSiteName
- collectionStatus
- comment
- surgicalPathologyNumber
...
/openspecimen/rest/ng/visits/{visitId}
This rest api is used to add visit of registered participant. Use HTTP PUT method to call this api by passing below details in json format.
Below are the attributes which need to be sent in request body.
Parameter | Description |
---|---|
cprId | Participant registration identifier |
eventId | Event Identifier |
ppid | Participant protocol identifer |
eventLabel | Event label |
eventPoint | Event point |
cpId | Collection protocol identifier |
cpTitle | Collection protocol title |
cpShortTitle | Collection protocol short title |
name | Visit name |
code | Unique code given to visit. Which can used for barcode based data entry |
clinicalDiagnosis | Clinical diagnosis |
clinicalStatus | Clinical status |
activityStatus | Activity Status |
site | Site name where visit perform |
status | Status of visit (COMPLETE, PENDING, MISSED) |
missedReason | Reason in case of missed visits |
missedBy | User details by which visit got missed |
comments | Comments on visit |
surgicalPathologyNumber | Surgical pathology number |
cohort | Cohort is a group of subjects who have shared a particular event together during a particular time span. Cohorts may be tracked over extended periods in a cohort study |
http[s]:<host>:<port>/openspecimen/rest/ng/visits/{
...
visitId}
Use this URL to add visit for a registered participant in OpenSpecimen application.
Result:
The response of this request will contains the details of the created visit.
Below is the example of the create participant:
URL | openspecimen/rest/ng/visits/1 |
Request type | application/json |
Method | PUTPOST |
json | { "name": "LP-5600-W0-PD", 101, " cpeIdeventId": 21, " nameeventLabel": "skinCancerStudy_1_11","Initial Visit", Not Specified", "clinicalStatus": " Not SpecifiedOperative", "activityStatus": "Active", " collectionSiteNamesite": " ATCC"Site 1", " collectionStatusstatus": "Complete "", |
Response | { { "id":1, "id": 1 101, " cpeIdeventId": 21, " nameeventLabel": "skinCancerStudy_1_11","Initial Visit", "clinicalStatus": " Not SpecifiedOperative", "activityStatus": "Active", " collectionSiteNamesite": "ATCC""Site 1", " collectionStatusstatus": "Complete", "surgicalPathologyNumber": " path1231234567" ,
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Specimen Collection Group group has been updated created successfully |
400 | All requests | Invalid parameters, e.g duplicate name, duplicate barcode, invalid Site Name , duplicate code etc |
401 | All requests | Authorization failed, User doesn’t have Authority to create specimen collection group for the given collection protocol |
500 | All requests | Internal server error, Encountered server error while performing operations |