v2.0
post
/ec-ors-svc/rest/v2.0/studies/{studyId}/{mode}/subjects/{srcSubjectId}/codebreak
Retrieves code break. Rights: OrsSubjectVisitGet.
Request
Path Parameters
-
mode(required): string
Indicates the operational mode of the study. Accepted values: active, test, or training.Example:
test -
srcSubjectId(required): string(uuid)
Unique identifier of the subject. Used to represent a participant enrolled in a study. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
C36A3197FDEE433FB5547EE83DE99E4B -
studyId(required): string(uuid)
Unique identifier of the study. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
C36A3197FDEE433FB5547EE83DE99E4B
Supported Media Types
- application/json
Root Schema : Code View Request
Type:
objectTitle:
Code View RequestContains code view request details.
Show Source
-
adverseEvent(required): integer
(int32)
Minimum Value:
0Maximum Value:1Allowed Values:[ 0, 1 ]Adverse event.Example:1
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : Code View Response
Type:
objectTitle:
Code View ResponseContains code view response details.
Show Source
-
kitTypes: array
Kit Types
Title:
Kit TypesContains kit type details. -
treatmentArms: array
Treatment Arms
Title:
Treatment ArmsContains treatment arm details.
Nested Schema : Kit Types
Type:
arrayTitle:
Kit TypesContains kit type details.
Show Source
-
Array of:
object CodeViewResponse.KitTypes
Kit type details object.
Example:
[
{
"id":"B1B8327AFAA6412287106192AB5984EF",
"kitTypeName":"Kit A",
"description":"Non dosing kit",
"packageTypeId":5,
"packageType":"BOTTLE"
}
]Nested Schema : Treatment Arms
Type:
arrayTitle:
Treatment ArmsContains treatment arm details.
Show Source
-
Array of:
object RandomizationHistoryTO
Title:
RandomizationHistoryTOContains subject randomization history details.
Example:
[
{
"id":"B1B8327AFAA6412287106192AB5984EF",
"description":"Randomized successfully",
"externalTreatmentId":"TA",
"randNumber":1001,
"randomizationDate":"2025-01-01T12:34:56Z",
"rndStatusId":5
}
]Nested Schema : CodeViewResponse.KitTypes
Type:
objectKit type details object.
Show Source
-
description: string
Kit type description.Example:
Non dosing kit -
dispensationDetails: array
dispensationDetails
Dispensation details for the kit type.
-
id: string
ID of the kit type.Example:
B1B8327AFAA6412287106192AB5984EF -
kitTypeName: string
Kit type name.Example:
Kit A -
packageType: string
Allowed Values:
[ "BLISTERPACK", "BOTTLE", "DEVICE", "SYRINGE", "OINTMENT", "VIAL", "INHALER", "INFUSION", "BOX", "OTHER" ]Package type.Example:INHALER -
packageTypeId: number
(double)
Allowed Values:
[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]Unique ID corresponding to each package type value (1 for BLISTERPACK, 2 for BOTTLE, 3 for DEVICE, 4 for SYRINGE, 5 for OINTMENT, 6 for VIAL, 7 for INHALER, 8 for INFUSION, 9 for BOX, 10 for OTHER).Example:5
Example:
{
"id":"B1B8327AFAA6412287106192AB5984EF",
"kitTypeName":"Kit A",
"description":"Non dosing kit",
"packageTypeId":5,
"packageType":"BOTTLE"
}Nested Schema : dispensationDetails
Type:
arrayDispensation details for the kit type.
Show Source
-
Array of:
object DispensationHistoryResponse v4.0
Title:
DispensationHistoryResponse v4.0Response object containing Dispensation History.
Example:
[
{
"lotId":"B1B8327AFAA6412287106192AB5984EF",
"lotNumber":"LOT-001",
"quantity":5
}
]Nested Schema : DispensationHistoryResponse v4.0
Type:
objectTitle:
DispensationHistoryResponse v4.0Response object containing Dispensation History.
Show Source
-
balanceUnits: number
(double)
Title:
Balance UnitsBalanced units for the kit.Example:1 -
deviceConnection: string
Title:
Device Connection TypeAllowed Values:[ "CloudtoCloud", "DevicetoCloud", "NoConnection" ]Device connection type.Example:DevicetoCloud -
deviceType: string
Title:
Device TypeAllowed Values:[ "ActivityWatch", "BloodPressureMonitor", "WeightScale", "ECGReader", "Spirometer", "MobileApp", "SmartPillBottle", "PulseOximeter", "WearablePatch", "Other", "GlucoseMonitor" ]Device type.Example:WearablePatch -
dispensationDate: string
(date-time)
Title:
Dispensation DateDispensation date. -
dose: number
(double)
Title:
DoseDose.Example:5 -
frequency: string
Title:
FrequencyAllowed Values:[ "Once", "QD", "BID", "TID", "QID", "Q3", "Q4", "Q8", "Q12", "Q24", "Bedtime", "With meals", "With meals and at bedtime" ]Dosing frequency.Example:BID -
inventoryId: string
(uuid)
Title:
Inventory IDInventory ID. -
inventoryStatus: number
(double)
Title:
Inventory StatusAllowed Values:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]Unique ID corresponding to each inventory status value (1 for Available, 2 for Damaged, 3 for Destroyed, 4 for Dispensed, 5 for Expired, 6 for Not in Use, 7 for Misallocated, 8 for Missing, 9 for In Transit, 10 for Quarantined, 11 for Pre-quarantined, 12 for Pending Destruction, 13 for Lost by Subject, 14 for Temporarily Unavailable, 15 for Damaged by Subject, 16 for New, 17 for Not Dispensed to Subject, 18 for Returned to Site, 19 for Conserved, 20 for Received for Destruction).Example:5 -
kitDescription: string
Title:
Kit DescriptionKit description.Example:Kit A -
kitNumber: number
(double)
Title:
Kit NumberKit number.Example:5 -
lastModifiedDate: string
(date-time)
Title:
Last Modified DateLast modified date. -
measurement: string
Title:
MeasurementDose Measurement.Example:ml -
mHealthDeviceId: string
Title:
mHealth Device IDmHealth device identifier.Example:B1B8327AFAA6412287106192AB5984EF -
missingUnits: number
(double)
Title:
Missing UnitsMissing units for the kit.Example:1 -
packageTypeId: number
(double)
Title:
Package Type IDAllowed Values:[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]Package type ID.Example:5 -
returnedUnits: number
(double)
Title:
Returned UnitsReturned units for the kit.Example:1 -
siteId: string
(uuid)
Title:
Site IDSite ID. -
trialSupplyType: string
Title:
Trial Supply TypeType of the trial supply.Example:BOTTLE -
unitsPerKit: number
(double)
Title:
Units Per KitUnits per kit.Example:1 -
visitId: string
(uuid)
Title:
Visit IDVisit ID.
Nested Schema : RandomizationHistoryTO
Type:
objectTitle:
RandomizationHistoryTOContains subject randomization history details.
Show Source
-
description: string
Treatment descriptionExample:
Some description. -
externalTreatmentId: string
External treatment ID.Example:
TxA -
id: string
(uuid)
Treatment ID
-
randNumber: number
(double)
Randomization number.Example:
5 -
randomizationDate: string
(date-time)
Randomization date.Example:
2025-01-01T12:34:56Z -
rndStatusId: number
(double)
Allowed Values:
[ 1, 2, 3, 4, 5 ]Randomization status ID.Example:5
Example:
{
"id":"B1B8327AFAA6412287106192AB5984EF",
"description":"Randomized successfully",
"externalTreatmentId":"TA",
"randNumber":1001,
"randomizationDate":"2025-01-01T12:34:56Z",
"rndStatusId":5
}Examples
400 Response
For invalid parameters
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : result
Type:
objectResult Object
Nested Schema : details
Type:
objectExamples
404 Response
For invalid study ID or version. Or subject not found. Or site ID not found in site service
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : result
Type:
objectResult Object
Nested Schema : details
Type:
objectExamples
500 Response
Internal server error
Root Schema : ORSResponse
Type:
objectCommon response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success -
version: integer
(int32)
Nested Schema : result
Type:
objectResult Object
Nested Schema : details
Type:
objectExamples