V2.0
get
/ec-dc-svc/rest/v2.0/studies/{studyId}/{mode}/subjects/count
Returns the number of subjects in the study for the given mode and site. Use this to quickly retrieve subject population statistics per site (including summary information).
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
active -
studyId(required): string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE
Query Parameters
-
siteId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.Example:
00AA11BB22CC33DD44EE55FF66GG77HH
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Subject count response with summary per site.
Root Schema : schema
Type:
Show Source
array-
Array of:
object SubjectCountResponseDto20
Subject count summary including total, active, withdrawn, enrolled, screen failed and per-site counts
Nested Schema : SubjectCountResponseDto20
Type:
objectSubject count summary including total, active, withdrawn, enrolled, screen failed and per-site counts
Show Source
-
activeSubjects: integer
(int32)
Number of currently active subjectsExample:
160 -
completedSubjects: integer
(int32)
Number of subjects who completed the studyExample:
23 -
enrolledSubjects: integer
(int32)
Number of subjects who have been enrolledExample:
89 -
newSubjects: integer
(int32)
Number of newly added subjectsExample:
12 -
screendSubjects: integer
(int32)
Number of subjects who have been screenedExample:
180 -
screenFailedSubjects: integer
(int32)
Number of subjects who failed screeningExample:
4 -
siteSummary: object
siteSummary
Subject count summary for a single site
-
totalSubjects: integer
(int32)
Total number of subjectsExample:
200 -
withdrwanSubjects: integer
(int32)
Number of subjects withdrawn from the studyExample:
5
Nested Schema : siteSummary
Type:
objectSubject count summary for a single site
Show Source
-
activeSubjects: integer
(int32)
Number of active subjects at this siteExample:
40 -
completedSubjects: integer
(int32)
Number of completed subjects at this siteExample:
4 -
enrolledSubjects: integer
(int32)
Number of enrolled subjects at this siteExample:
30 -
newSubjects: integer
(int32)
Number of new subjects at this siteExample:
12 -
screendSubjects: integer
(int32)
Number of screened subjects at this siteExample:
48 -
screenFailedSubjects: integer
(int32)
Number of subjects who failed screening at this siteExample:
1 -
siteId: string
Site unique identifier (UUID, 32-character uppercase hex)Example:
AABBCCDDEEFF1234567890ABCDEF1234 -
totalSubjects: integer
(int32)
Total number of subjects at this siteExample:
50 -
withdrwanSubjects: integer
(int32)
Number of withdrawn subjects at this siteExample:
1
Examples
400 Response
Bad request.
Root Schema : DcsResponse
Type:
Show Source
object-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
-
status: string
-
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: object
details
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
-
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectNested Schema : details
Type:
objectDetailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
Example:
User role is missing required permission REPORTING_VIEW. Field: userId