This API is available for updating Specimen Collection Group.
List of mandatory fields:
- cprId
- name
- clinicalDiagnosis
- clinicalStatus
- activityStatus
- collectionSiteName
- collectionStatus
- comment
- surgicalPathologyNumber
URL | openspecimen/rest/ng/visits/{scg_id} |
Request type | application/json |
Method | PUT |
json | { "cprId":5, "cpeId":2, "name":"skinCancerStudy_1_11", "clinicalDiagnosis":"Not Specified", "clinicalStatus":"Not Specified", "activityStatus":"Active", "collectionSiteName":"ATCC", "collectionStatus":"Complete" } |
Response | { "id":1, "cprId":5, "cpeId":2, "name":"skinCancerStudy_1_11", "clinicalDiagnosis":"Not Specified", "clinicalStatus":"Not Specified", "activityStatus":"Active", "collectionSiteName":"ATCC", "collectionStatus":"Complete", "surgicalPathologyNumber":"path123", } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Specimen Collection Group has been updated successfully |
400 | All requests | Invalid parameters, e.g duplicate name, duplicate barcode, invalid Site Name 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 |