Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API is available for add visit for.

List of mandatory fields:

  1. cprId
  2. eventId
  3. ppid
  4. eventLabel
  5. eventPoint
  6. cpTitle
  7. cpShortTitle
  8. name
  9. clinicalDiagnosis
  10. clinicalStatus
  11. activityStatus
  12. site
  13. status
  14. comments
  15. surgicalPathologyNumber
  16. missedReason
  17. missedBy - (User Details)
  18. visitDate
  19. code
  20. cohort

...

/openspecimen/rest/ng/visits


This rest api is used to add visit of registered participant. Use HTTP POST method to call this api by passing below details in json format.

Below are the attributes which need to be sent in request body.

 

ParameterDescription
cprIdParticipant registration identifier
eventIdEvent Identifier
ppidParticipant protocol identifer
eventLabelEvent label
eventPointEvent point
cpIdCollection protocol identifier
cpTitleCollection protocol title
cpShortTitleCollection protocol short title
nameVisit name
codeUnique code given to visit. Which can used for barcode based data entry
clinicalDiagnosisClinical diagnosis
clinicalStatusClinical status
activityStatusActivity Status
siteSite name where visit perform
statusStatus of visit (COMPLETE, PENDING, MISSED)
missedReasonReason in case of missed visits
missedByUser details by which visit got missed
commentsComments on visit
surgicalPathologyNumberSurgical 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

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:

 

URLopenspecimen/rest/ng/visits
Request typeapplication/json
MethodPOST
json

{
   "cprIdname": 5"LP-5600-W0-PD",
   "eventIdcode": 2"1",
   "cpShortTitlecpTitle": "CNSLung Cancer Protocol",
   "namecprId": "skinCancerStudy_1_11",
   101,
"eventId": 1,
"eventLabel": "Initial Visit",
"eventPoint": 0,
"clinicalDiagnosis": "Not SpecifiedNot Specified",
   "clinicalStatus": "Not SpecifiedOperative",
   "activityStatus": "Active",
   "site": "ATCC""Site 1",
"visitDate": 23-11-2015,
   "collectionStatusstatus": "Complete", 
   "surgicalPathologyNumber": "path1231234567" 
}

Response

{

 

{
   "id":1,
  

"id": 1
"name": "LP-5600-W0-PD",
"code": "1",
"cpTitle": "Lung Cancer Protocol",
"cprId":

5

101,

  

"

cpeId

eventId":

2

1,

  

"

name

eventLabel": "

skinCancerStudy_1_11"

Initial Visit",
"eventPoint": 0,

  

"clinicalDiagnosis": "Not Specified",

  

"clinicalStatus": "

Not Specified

Operative",

  

"activityStatus": "Active",

  

"

collectionSiteName

site": "

ATCC"

Site 1",
"visitDate": 23-11-2015,

  

"

collectionStatus

status": "Complete",
"surgicalPathologyNumber": "1234567"
}

 

Error Cases :

code
Applies to
Status Message
200All resourcesSpecimen Collection group has been created successfully
400All requestsInvalid parameters, e.g  duplicate name, duplicate barcode, invalid Site Name , duplicate code etc
401All requestsAuthorization failed, User doesn’t have Authority to create specimen collection group for the given collection protocol
500All requestsInternal server error, Encountered server error while performing operations