Randomize or dispense subject

post

/ec-dc-svc/rest/v6.0/studies/{studyId}/{mode}/subjects/randomizeordispense

Randomizes, dispenses or activates a subject, based on visit type, and completes the visit status. ORS dispensation or randomization is called.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Request Object for visit.
Show Source
Nested Schema : parameters
Type: array
Show Source
Nested Schema : Parameter
Type: object
Contains details about parameters of the form
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : RandomizeDetails
Type: object
Show Source
Nested Schema : VisitResult v16.0
Type: object
Title: VisitResult v16.0
Visit Result.
Show Source
Nested Schema : SubjectDto10
Type: object
Subject attributes including screen failure date information
Show Source
Nested Schema : VisitsStatusDto13
Type: object
Show Source
Nested Schema : kits
Type: array
Show Source
Nested Schema : DispensationKit
Type: object
Title: DispensationKit
Contains information for the kit dispensation
Show Source

400 Response

Bad request.
Body ()
Root Schema : DcsResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • Detailed 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type: object

500 Response

Internal server error.
Body ()
Root Schema : DcsResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • Detailed 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
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type: object
Back to Top