[Deprecated]: Randomize subject or dispense kit during visit
post
/ec-ors-svc/rest/v10.0/studies/{studyId}/{mode}/visits/subjectvisit
Deprecated: Randomize a subject and/or dispense kits during a randomization or dispensation visit. This version of the API includes additional attributes for barcodes and dispensationConfirmed. Rights: OrsVisitManagementPost.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.
-
studyId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.
Supported Media Types
- application/json
Root Schema : VisitRequest v7.0
Type:
objectTitle:
VisitRequest v7.0Visit Request.
Show Source
-
instanceNumber: number
(BigDecimal)
Minimum Value:
1Instance number of the unscheduled visitExample:2 -
parameters: object
Parameter
Contains details about parameters of the form
-
reusableKits: array
reusableKits
Unique Items Required:
true -
siteId(required): string
(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.
-
studyVersion(required): string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
1.0.0.5 -
subjectId(required): string
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
B1B8327AFAA6412287106192AB5984EF -
titrationOption: string
Allowed Values:
[ "up", "down", "maintain" ]Pattern:up|down|maintainTitration OptionExample:up -
userConfirmationTaken: boolean
User confirmation for titration.Example:
true -
visitId(required): string
(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) 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 : Parameter
Type:
objectContains details about parameters of the form
Show Source
-
formId: string
(uuid)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.
-
itemId: string
(uuid)
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.
-
value: string
(uuid)
Value of the item
Nested Schema : reusableKits
Type:
arrayUnique Items Required:
Show Source
true-
Array of:
string(uuid)
ID of the kit
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : VisitResult v9.0
Type:
objectTitle:
VisitResult v9.0Visit Result.
Show Source
-
kits: array
kits
-
needsToVisitPharmacist: boolean
Unblinded pharmacist kitExample:
true -
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 v8.0
Title:
DispensationKit v8.0Contains information for the kit dispensation
Nested Schema : DispensationKit v8.0
Type:
objectTitle:
DispensationKit v8.0Contains 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 -
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 -
id: number
(Integer)
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the dispensing kit.Example:
2 -
inventoryId: string
Inventory IdExample:
D313327EF13845169A8ADADDA435431E -
kitDescription: string
Kit descriptionExample:
Kit A -
measurement: string
Dose Measurement.Example:
ml -
titrationKitLabel: string
Titration Kit LabelExample:
High dose -
titrationOption: string
Allowed Values:
[ "up", "down", "maintain" ]Titration OptionExample:up -
trialSupplyType: string
Trail supplly type can be of type BLISTERPACK, BOTTLE, DEVICE, SYRINGE, OINTMENT, VIAL, INHALER, INFUSION, BOXExample:
BOTTLE
400 Response
Invalid visit timestamp OR You must associate the randomization design with a visit before you can create/upload a randomization list for it OR The next step in this visit isn???t allowed for subject because the study version at your site isn???t compatible with the subject OR Subject can't be Re-randomized before randomization OR This operation is not allowed in the current subject status
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
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:
objectResult Object
Nested 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: userId404 Response
Invalid study ID or version OR Rand List not found OR Design not found
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
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:
objectResult Object
Nested 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: userId500 Response
Unsupported Visit OR Subject already completed the visit OR Subject is randomized in error OR Invalid treatment found for the subject OR Visit out of order OR This operation is not allowed in the current subject status OR Visit is outside visit window OR Visit is outside visit window and at least one kit is configured not to dispense outside visit window OR Not enough inventory.
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
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:
objectResult Object
Nested 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