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

Version 1 Current »

openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers


Use this resource to get consent-tiers for collection protocol. This API returns all the consent-tiers for given collection protocol present in the openSpecimen application. Use HTTP GET method to call this API by passing the below parameters.

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

Parameter
Details
cpIdCollection Protocol Id

 

http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers

Use this URL to get all consent-tier for Collection Protocol in the OpenSpecimen application.

Result:

The response of this request will contains the details of the all consent-tier for given collection protocol

Below is the example of the get all consent-tier:

URLhttp://<host>:<port>/openspecimen/rest/ng/collection-protocols/{cpId}/consent-tiers
MethodGET

Response

[
	{
		"cpId": null,
		"id": 7,
		"statement": "Consent to store the samples for research"
	},{
		"cpId": null,
		"id": 8,
		"statement": "Consent to process DNA"
	},{
		"cpId": null,
		"id": 9,
		"statement": "Consent to dispatch the samples to outside researchers"
	},{
		"cpId": null,
		"id": 18,
		"statement": "Consent to process fixed tissue for long term storage"
	}
 ]
  • No labels