V1.0
post
/ec-dc-svc/rest/v1/studies/{studyId}/{mode}/visitstatus/migratevisit
Persists migrated visit data.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
studyId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest payload to migrate visit data for a subject and event. Contains identifiers and timestamps.
Show Source
-
eventId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
53915DD9B758466AB2226CBCC4466B7E -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
1 -
siteId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.Example:
8F2B7E6C5D4A3B2C1D0E9F8A7B6C5D4E -
sourceTimeStamp: string
(date-time)
Source system timestamp in ISO 8601 UTCExample:
2023-01-01T09:00:00Z -
studyVersion: string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
3.0.0.1 -
subjectId: string
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
visitStartDate: string
(date-time)
Visit start date-time in ISO 8601 UTCExample:
2023-01-01T09:00:00Z -
visitStatus: string
Status of the visit. The Value of the status can be NEW, COMPLETE, COMPLETE_ERR, INPROGRESS, INCOMPLETE, INCOMPLETE_ERR, SKIPPED, UNDO_SKIP and NOT_STARTED.Example:
COMPLETE
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : VisitDataMigrationDtoV1
Type:
objectVisit data migration payload/response containing identity, versioning, visit status and timing fields.
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048CommentExample:All data verified -
eventId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
53915DD9B758466AB2226CBCC4466B7E -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
1 -
eventType: string
Event type corresponding to the visit. The acceptable values are: Visit_Not_Started, Visit_Started, Visit_Complete, Visit_Skipped, Visit_Skip_Undone, Visit_Date_Changed, Visit_Inserted, Visit_Show, Visit_Hide, VisitDateEntered and VisitDateCleared.Example:
Visit_Not_Started -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the recordExample:
A1B2C3D4E5F6471890ABCDEF12345678 -
objectVersionNumber: number
Object version number used for concurrency control.Example:
14 -
reason: string
Minimum Length:
0Maximum Length:255ReasonExample:Subject completed the visit successfully -
siteId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.Example:
8F2B7E6C5D4A3B2C1D0E9F8A7B6C5D4E -
sourceTimeStamp: string
(date-time)
Source timestamp when the record was generated in the source systemExample:
2023-01-01T09:00:00Z -
studyVersion: string
Minimum Length:
0Maximum Length:100String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:3.0.0.1 -
subjectId: string
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
userId: string
Unique Identifier (UUID, 32-character uppercase hexadecimal string) of the userExample:
9F8E7D6C5B4A3A2B1C0D9E8F7A6B5C4D -
versionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2023-01-01T09:00:00Z -
visitStartDate: string
(date-time)
Date of visitExample:
2023-01-01T09:00:00Z -
visitStatus: string
Status of the visit. The Value of the status can be NEW, COMPLETE, COMPLETE_ERR, INPROGRESS, INCOMPLETE, INCOMPLETE_ERR, SKIPPED, UNDO_SKIP and NOT_STARTED.Example:
COMPLETE -
visitType: string
Type of visit as per the visit type enumeration. The acceptable values are: SCREENING, RANDOMIZATION, DISPENSATION, NON_DISPENSATION, OPTIONAL, OPTIONAL_DISPENSATION, WITHDRAW, SCREENDISP, SCREENRAND, SUBJECT_COMPLETE, UNSCHEDULED, UNSCHEDULED_DISPENSATION, ADVERSE_EVENT, SCREENFAILURE, RESCREENING and RESCREENDISP.Example:
SCREENING
Examples
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: 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:
objectNested 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