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 3 Next »

openspecimen/rest/ng/collection-protocol-registrations/{cprId}/consents

Use this resource to save consent-tier response for participant registration in the OpenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSON format.

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

Parameter
Details
cprId[mandatory]Collection Protocol Registration Id
consentDocumentUrlidentifier of consent-tier to update
consentSignatureDateconsent-tier statement
consentTierResponses
parameterdetail
statementConsent tier statement defined in CP
response

Patient response. Response should be one of the below:

Yes, No, Not Specified, Withdrawn, None

witness
Parameter

Details

emailAddressEmail address of the witness
loginNameLogin name of the witness



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

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

Result:

The response of this request will contains the details of the updated  consent-tier

Below is the example of the update consent-tier:

URLhttp[s]://<host>:<port>/openspecimen/rest/ng/collection-protocol-registrations/2/consents
MethodPUT
Requestapplication/json
json
{
  "consentSignatureDate": "2022-04-20",
  "witness": {
    "id": 1,
    "emailAddress:": "admin@krishagni.com"
  },
  "comments": "Consent to die",
  "responses": [
    {
      "code": "CS1",
      "response": "Yes"
    },
    {
      "code": "CS2",
      "response": "No"
    }
  ]
}

Response

{
    "opComments": null,
    "cprId": null,
    "cpId": null,
    "cpShortTitle": "kaustubh_cp",
    "ppid": "PPID_KW_001",
    "consentSignatureDate": 1650412800000,
    "witness": {
        "id": 1,
        "type": "SUPER",
        "firstName": "Admin",
        "lastName": "Admin",
        "loginName": "admin@krishagni.com",
        "domain": "openspecimen",
        "emailAddress": "admin@krishagni.com",
        "instituteId": 1,
        "instituteName": "A1 - For Demo Users",
        "admin": true,
        "instituteAdmin": false,
        "phoneNumber": "",
        "manageForms": true,
        "manageWfs": true,
        "cpCount": 0,
        "activityStatus": "Locked"
    },
    "comments": "Consent to die",
    "responses": [
       {
         "code": "CS1",
         "response": "Yes"
       },
       {
         "code": "CS2",
         "response": "No"
       }
    ],
    "consentDocumentName": null,
    "statement": null,
    "code": null,
    "response": null,
    "documentFile": null,
    "mergeKey": "kaustubh_cp_PPID_KW_001"
}
  • No labels