GET api/v{version}/laboratory/{laboratoryId}/subject/{subjectId}/task/{taskId}
Gets the specified Task.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
laboratoryId |
The laboratory identifier. |
integer |
Required |
taskId |
The task identifier. |
integer |
Required |
subjectId |
The subject identifier. |
integer |
Default value is -1 |
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
ResponseOfTaskModelName | Description | Type | Additional information |
---|---|---|---|
Data | TaskModel |
None. |
|
StatusCode |
Gets or sets the status code. |
HttpStatusCode |
None. |
StatusDescription |
Gets or sets the status description. |
string |
None. |
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "taskID": 1, "taskTypeID": 2, "laboratoryID": 3, "sopID": 4, "researcherName": "sample string 5", "researcherID": 6, "startDate": "2024-10-30T09:23:00.862253-07:00", "endDate": "2024-10-30T09:23:00.862253-07:00", "reason": "sample string 9", "conclusion": "sample string 10", "folderID": 11, "plannedStartDate": "2024-10-30T09:23:00.862253-07:00", "plannedEndDate": "2024-10-30T09:23:00.862253-07:00", "procedureNumber": "sample string 14", "expectedDurationInHours": 15.0, "percentComplete": 16.0, "taskTypeDescription": "sample string 17", "laboratoryName": "sample string 18", "isTask": true, "isMedical": true, "state": "sample string 21", "projectID": 22, "studyID": 23, "projectName": "sample string 24", "studyTitle": "sample string 25", "shortName": "sample string 26", "taskPriorityID": 27, "taskPriorityDescription": "sample string 28", "subjectCallBy": "sample string 29", "subjectID": 30, "changedBy": 31, "changedDate": "2024-10-30T09:23:00.862253-07:00", "taskTypeExpectedDurationInHours": 33, "subjectVisitID": 34, "assignedToID": 35, "assignedTo": "sample string 36", "completedByID": -1, "completedBy": "" }, "statusCode": 100, "statusDescription": "sample string 1", "errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ResponseOfTaskModeluskxzdf5 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CancerBytesAPI.Response"> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <StatusCode>Continue</StatusCode> <StatusDescription>sample string 1</StatusDescription> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CancerBytesAPI.Models"> <d2p1:AssignedTo>sample string 36</d2p1:AssignedTo> <d2p1:AssignedToID>35</d2p1:AssignedToID> <d2p1:ChangedBy>31</d2p1:ChangedBy> <d2p1:ChangedDate>2024-10-30T09:23:00.862253-07:00</d2p1:ChangedDate> <d2p1:CompletedBy></d2p1:CompletedBy> <d2p1:CompletedByID>-1</d2p1:CompletedByID> <d2p1:Conclusion>sample string 10</d2p1:Conclusion> <d2p1:EndDate>2024-10-30T09:23:00.862253-07:00</d2p1:EndDate> <d2p1:ExpectedDurationInHours>15</d2p1:ExpectedDurationInHours> <d2p1:FolderID>11</d2p1:FolderID> <d2p1:IsMedical>true</d2p1:IsMedical> <d2p1:IsTask>true</d2p1:IsTask> <d2p1:LaboratoryID>3</d2p1:LaboratoryID> <d2p1:LaboratoryName>sample string 18</d2p1:LaboratoryName> <d2p1:PercentComplete>16</d2p1:PercentComplete> <d2p1:PlannedEndDate>2024-10-30T09:23:00.862253-07:00</d2p1:PlannedEndDate> <d2p1:PlannedStartDate>2024-10-30T09:23:00.862253-07:00</d2p1:PlannedStartDate> <d2p1:ProcedureNumber>sample string 14</d2p1:ProcedureNumber> <d2p1:ProjectID>22</d2p1:ProjectID> <d2p1:ProjectName>sample string 24</d2p1:ProjectName> <d2p1:Reason>sample string 9</d2p1:Reason> <d2p1:ResearcherID>6</d2p1:ResearcherID> <d2p1:ResearcherName>sample string 5</d2p1:ResearcherName> <d2p1:ShortName>sample string 26</d2p1:ShortName> <d2p1:SopID>4</d2p1:SopID> <d2p1:StartDate>2024-10-30T09:23:00.862253-07:00</d2p1:StartDate> <d2p1:State>sample string 21</d2p1:State> <d2p1:StudyID>23</d2p1:StudyID> <d2p1:StudyTitle>sample string 25</d2p1:StudyTitle> <d2p1:SubjectCallBy>sample string 29</d2p1:SubjectCallBy> <d2p1:SubjectID>30</d2p1:SubjectID> <d2p1:SubjectVisitID>34</d2p1:SubjectVisitID> <d2p1:TaskID>1</d2p1:TaskID> <d2p1:TaskPriorityDescription>sample string 28</d2p1:TaskPriorityDescription> <d2p1:TaskPriorityID>27</d2p1:TaskPriorityID> <d2p1:TaskTypeDescription>sample string 17</d2p1:TaskTypeDescription> <d2p1:TaskTypeExpectedDurationInHours>33</d2p1:TaskTypeExpectedDurationInHours> <d2p1:TaskTypeID>2</d2p1:TaskTypeID> </Data> </ResponseOfTaskModeluskxzdf5>