Get dispensation info for a subject
get
/ec-ors-svc/rest/v1.0/studies/{studyId}/{mode}/subjects/{subjectId}/visits/{visitId}
Retrieves dispensation info of most recent dispensation happened or all previou dispensations for a study by subject and visit ID. Rights: OrsUnblinded
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training
-
studyId(required): string(uuid)
ID of the study
-
subjectId(required): string(uuid)
ID of the subject
-
visitId(required): string(uuid)
ID of the visit
Query Parameters
-
dispensationInfo(required): string
Dispensation info requried [last/previous]
-
includeReplacementVisits: string
Include replacement visits [Y/N]
-
includeUnScheduledVisits: string
Include unScheduled visits [Y/N]
-
instanceNumber: number
Instance number for unscheduled visit.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
array-
Array of:
object DispensationInfoResponse
Title:
DispensationInfoResponseResponse object containing dispensation information for a subject visit.
Nested Schema : DispensationInfoResponse
Type:
objectTitle:
DispensationInfoResponseResponse object containing dispensation information for a subject visit.
Show Source
-
dateDispensed: string
(date-time)
Date dispensed
-
dosage: number
(double)
DosageExample:
0.5 -
eventInstanceNumber: number
(double)
Event Instance NumberExample:
2 -
isHeld: boolean
Indicates if dose hold is ture or falseExample:
false -
kitDescription: string
Kit DescriptionExample:
Kit A description paracetamol 5mg -
kitType: string
Kit TypeExample:
KitA -
kitTypeSrcId: string
(uuid)
Kit Type Source Id
-
quantity: number
(double)
QuantityExample:
3 -
visitName: string
Visit NameExample:
Week1 -
visitSrcId: string
(uuid)
Visit Source Id
400 Response
Invalid parameters
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: 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:
objectResult Object
404 Response
Invalid study ID or visit ID OR Subject 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: 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:
objectResult Object
500 Response
Error
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: 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:
objectResult Object