Randomize or dispense subject
post
/ec-dc-svc/rest/v4.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
-
mode(required): string
Mode of the study. Accepts test, active, or training.
-
studyId(required): string
ID of the study where a subject is being randomized or dispensed.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest Object for visit.
Show Source
-
parameters: array
parameters
-
siteId(required): string
(uuid)
ID of the site
-
studyVersion(required): string
Version of the studyExample:
1.0.0.5 -
subjectId(required): string
ID of the subjectExample:
B1B8327AFAA6412287106192AB5984EF -
visitId(required): string
(uuid)
ID of the visit
-
visitTimestamp: string
Pattern:
(\d){4}-(\d){2}-(\d){2} (\d){2}:(\d){2}:(\d){2}Visit date and timeExample:2018-11-23 08:43:01
Nested Schema : parameters
Type:
Show Source
array-
Array of:
object Parameter
Contains details about parameters of the form
Nested Schema : Parameter
Type:
objectContains details about parameters of the form
Show Source
-
formId: string
(uuid)
ID of the form
-
itemId: string
(uuid)
ID of the item
-
value: string
(uuid)
Value of the item
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : VisitResult v15.0
Type:
objectTitle:
VisitResult v15.0Visit Result.
Show Source
-
countOfKitTypesOnDoseHold: integer
(int32)
countOfKitTypesOnDoseHold.Example:
1 -
kits: array
kits
-
needsToVisitPharmacist: boolean
Unblinded pharmacist kitExample:
true -
pendingKitQuantity: integer
(int32)
pendingKitQuantity.Example:
1 -
randomNumber: string
Random NumberExample:
10 -
treatmentTitle: string
Treatment TitleExample:
A -
visitTimestamp: string
(date-time)
Visit Timestamp
Nested Schema : kits
Type:
Show Source
array-
Array of:
object DispensationKit
Title:
DispensationKitContains information for the kit dispensation
Nested Schema : DispensationKit
Type:
objectTitle:
DispensationKitContains information for the kit dispensation
Show Source
-
barcode: string
Barcode for kitExample:
1000 -
conserved: boolean
Conserved for dispensationExample:
true -
consumeAcrossDoses: boolean
Indicate if consume across dosed allowed.Example:
true -
deviceConnection: string
Allowed Values:
[ "CloudtoCloud", "DevicetoCloud", "NoConnection" ]Device Connection TypeExample:DevicetoCloud -
deviceType: string
Allowed Values:
[ "ActivityWatch", "BloodPressureMonitor", "WeightScale", "ECGReader", "Spirometer", "MobileApp", "SmartPillBottle", "PulseOximeter", "WearablePatch", "Other", "GlucoseMonitor" ]Device TypeExample:ActivityWatch -
dispensationConfirmed: string
Barcode confirmation while dispensing kitExample:
1000 -
dose: number
(double)
Dose.Example:
5 -
dosingInstruction: string
Dosing InstructionExample:
Take one capsule daily -
dosingUnblinded: boolean
Indicate if unblinded or blinded.Example:
true -
frequency: string
Allowed Values:
[ "Once", "QD", "BID", "TID", "QID", "Q3", "Q4", "Q8", "Q12", "Q24", "Bedtime", "With meals", "With meals and at bedtime" ]Dosing frequency.Example:BID -
groupingNumber: integer
(int32)
Grouping number for a kit.Example:
1 -
id: number
(Integer)
Id of the dispensing kit.Example:
2 -
inventoryId: string
Inventory IdExample:
D313327EF13845169A8ADADDA435431E -
kitDescription: string
Kit descriptionExample:
Kit A -
kitNumberUTF: string
Alpha-numeric KitNumberExample:
A-1 -
locallySourced: boolean
Kit is locally sourcedExample:
true -
lotId: string
Lot IdExample:
D313327EF13845169A8ADADDA435431E -
lotNumber: string
Lot NumberExample:
LOT20240605A -
measurement: string
Dose Measurement.Example:
ml -
quantity: number
(double)
kit quantity.Example:
5 -
titrationKitLabel: string
Titration Kit LabelExample:
High dose -
titrationOption: string
Allowed Values:
[ "up", "down", "maintain" ]Titration OptionExample:up -
trialSupplyType: string
Trial Supply TypeExample:
BOTTLE
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: string
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 -
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:
object500 Response
Internal server error.
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: string
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 -
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:
object