Versions Compared

Key

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

openspecimen/rest/ng/collection-protocols

...

Parameter
Details
titleCollection protocol title. Should be unique in the application
shortTitle

Collection protocol short title. Should be unique in the application

code[optional]Collection protocol code
startDateCollection protocol starting date
endDate[optional]Collection protocol end date. If given then, the endDate should not be later than start date.
investigatorprincipalInvestigator

Principal investigator of CP

Mainly contains following  parameters :

loginName :  User login name. For this specified user must be present in application.

domainName: Name of domain to which user belongs to. By default it will be catissue.

coordinators [optional]

Collection of coordinators. It is collection of user info mainly contains following parameters :

loginName :  User login name. For this specified user must be present in application.

domainName: Name of domain to which user belongs to. By default it will be catissue.

irbId[optional] 
anticipatedParticipantsCount[optional]Anticipated participants count
activityStatusActivity status of a collection protocol
cpTypevisitNameFmt[optional]Collection protocol typelabelFormatVisit name format
specimenLabelFmt[optional]CP Specimen label format
derivedLabelFormat[optional]Derived label format
aliquotLabelFormat[optional]Aliquot label format
ppIdFormat[optional]PPId format
cpSitescpeDetailsSites
events[optional]

It is collection of collection protocol event details

Mainly contains following  parameters :

collectionPointLabelCollection point label. It should be unique in CP
studyCalendarEventPoint[optional]Study calendar event point
labelFormat[optional]Collection protocol event label format
activityStatusActivity status of collection protocol event
defaultSiteName [optional]Site name

specimenRequirementDetails [optional]

   

It is collection of specimen requirement details

Mainly contains following  parameters :

collectionTimestamp [optional]Collection timestamp
collector [optional]

Collector of specimen

Mainly contains following  parameters :

loginName :  User login name. For this specified user must be present in application.

domainName: Name of domain to which user belongs to. By default it will be catissue.

collectionComments[optional] Comments while collecting specimen
collectionProcedure[optional] Collection procedure
collectionContainer[optional] Collection container
receivedQuality[optional] Received quality
receivedTimestamp[optional] Received Timestamp
receiver[optional]

 Receiver of specimen

 Mainly contains following  parameters :

loginName :  User login name. For this specified user must be present in application.

domainName: Name of domain to which user belongs to. By default it will be catissue.

receivedComments[optional] Comments while receiving specimen
childSpecimenRequirementCollection[optional] Collection of the child specimen requirements
tissueSite[optional]Tissue site
tissueSide[optional]Tissue side
pathologicalStatus[optional] Pathological Status
lineage[optional] Lineage, Should be New if the specimen requirement doesn't have parrent
initialQuantity[optional] Initial quantity
specimenClass[optional] Specimen class
specimenType[optional] Specimen type
labelFormat[optional] Label format for specimen requirement
specimenRequirementLabel[optional] Label for specimen requirement
activityStatus[optional] Activity status of specimen requirement
cpSiteRoles[optional]

It is collection of Sites and Roles with respect to CP. By default it will be none. i.e. Blank collection.

Mainly contains following  parameters :

roleName :  Role of user like Scientist, Admin etc. For this attribute role must be present in application.

siteName: Site name. For this attribute Site must be present in application.

 

...

URLhttp://<host>:<port>/openspecimen/rest/ng/collection-protocols
MethodPOST
Requestapplication/json
json{
    "title": "LiverCancer Study",
    "shortTitle": "LCS",
    "cpType": "Parent",
    "startDate": "2014-02-02",
    "activityStatus": "Active",
    "cpeDetails":
    [    
        {       
            "collectionPointLabel":"First Follow-up",
            "activityStatus":"Active",
            "specimenRequirementDetails":
            [
                {
                    "collectionTimestamp":"2014-09-12",
                    "collector": {
                        "loginName":"admin@admin.com",
                        "domainName":"catissue"
                    },
                    "receiver": {
                        "loginName":"admin@admin.com",
                        "domainName":"catissue"
                    },
                    "collectionContainer":"Frizeer",
                    "collectionProcedure" : "Needle Aspirate",
                    "receivedQuality":"Acceptable",
                    "lineage" : "New",
                    "activityStatus":"Active",
                    "childSpecimenRequirementCollection":
                    [
                        {
                            "collectionTimestamp":"2014-09-12",
                            "collector": {
                                "loginName":"admin@admin.com",
                                "domainName":"catissue"
                            },
                            "receiver": {
                                "loginName":"admin@admin.com",
                                "domainName":"catissue"
                            },
                            "collectionContainer":"Frizeer",
                            "collectionProcedure" : "Not Specified",
                            "receivedQuality":"Acceptable",
                            "lineage" : "Aliquot",
                            "activityStatus":"Active",
                            "childSpecimenRequirementCollection":[ ]
                       }
                   ]
                }
            ]
        }
    ],
    "coordinators": [],
    "investigator": {
        "loginName": "admin@admin.com",
        "domainName": "catissue"
    }
}

Response

{
id158
title"LiverCancer Study"
shortTitle"LCS"
cpType"Parent"
startDate1391299200000
endDatenull
activityStatus"Active"
labelFormatnull
derivedLabelFormatnull
aliquotLabelFormatnull
ppIdFormatnull
cpeDetails:    
 
{
id1038
collectionPointLabel"First Follow-up"
studyCalendarEventPointnull
labelFormatnull
activityStatus"Active"
defaultSiteNamenull
specimenRequirementDetails:    
 
{
id14295
collectionTimestamp1410480000000
collector
{
loginName"admin@admin.com"
domainName"catissue"
}
collectionCommentsnull
collectionProcedure"Needle Aspirate"
collectionContainer"Frizeer"
receivedQuality"Acceptable"
receivedTimestampnull
receiver
{
loginName"admin@admin.com"
domainName"catissue"
}
receivedCommentsnull
collectionProtocolEventnull
childSpecimenRequirementCollection
 {
id14296
collectionTimestamp1410480000000
collector
{
loginName"admin@admin.com"
domainName"catissue"
}
collectionCommentsnull
collectionProcedure"Needle Aspirate"
collectionContainer"container"
receivedQuality"Acceptable"
receivedTimestampnull
receiver
{
loginName"admin@admin.com"
domainName"catissue"
}
receivedCommentsnull
collectionProtocolEventnull
childSpecimenRequirementCollection
[0]
tissueSitenull
tissueSidenull
pathologicalStatusnull
lineage"Aliquot"
initialQuantitynull
specimenClassnull
specimenTypenull
labelFormatnull
specimenRequirementLabelnull
activityStatus"Active"
}
tissueSitenull
tissueSidenull
pathologicalStatusnull
lineage"New"
initialQuantitynull
specimenClassnull
specimenTypenull
labelFormatnull
specimenRequirementLabelnull
activityStatus"Active"
}
}
coordinators
[0 ]
investigator
{
loginName"admin@admin.com"
domainName"catissue"
}
cpSiteRoles
[0]
}

 Error Cases :

code
Applies to
Status Message
200All resourcesCollection Protocol has been created successfully
400All requestsInvalid parameters, e.g  duplicate CP title, blank CP title etc
401All requestsAuthorization failed, user doesn’t have authority
500All requestsInternal server error, encountered server error while performing operations