V1.0
put
/ec-dc-svc/rest/v1.0/studies/{studyId}/{mode}/dataelements/clear/forms
Skeleton endpoint for clearing form data.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectRequest payload for clearing form data.
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048Comment -
reason: string
Minimum Length:
0Maximum Length:255ReasonExample:Change for encoding -
subjectId: string
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:
ABCDEF1234567890ABCDEF1234567890 -
visits: array
visits
List of visit payloads for clear form operation.
Nested Schema : visits
Type:
arrayList of visit payloads for clear form operation.
Show Source
-
Array of:
object ClearFormsVisitRequestDto
Visit-level payload for clear form API.
Nested Schema : ClearFormsVisitRequestDto
Type:
objectVisit-level payload for clear form API.
Show Source
-
eventId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) of the clinical event. A clinical event can be, for example: Screening, Randomization, Visit 1, etc. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
CBCDEF1234567890ABCDEF1234567890 -
eventInstanceNumber: integer
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits (e.g., 1, 2, 3). It is null for scheduled events.Example:
1 -
forms: array
forms
List of forms to clear in this visit.
-
studyVersion: string
String representing the version of the study. Helps track changes in form or study design.Example:
1.0.0.0
Nested Schema : forms
Type:
arrayList of forms to clear in this visit.
Show Source
-
Array of:
object ClearFormsFormRequestDto
Form-level payload for clear form API.
Nested Schema : ClearFormsFormRequestDto
Type:
objectForm-level payload for clear form API.
Show Source
-
formId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
formSectionId: string
Unique identifier of the table within a two section form or lab form. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
50DB4EF4847849CCB24EFCCB71CDA436 -
innerRepeat: integer
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
1 -
outerRepeat: integer
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : ClearFormsResponseDto10
Type:
objectResponse payload for clear form API.
Show Source
-
clearedData: object
ClearFormsClearedDataDto10
Cleared data section for clear form response.
-
formsStatus: array
formsStatus
Form status summary after clear action.
-
notClearedData: array
notClearedData
Data elements that could not be cleared.
-
visits: object
Visits
Visit status targets and refresh indicator.
Nested Schema : ClearFormsClearedDataDto10
Type:
objectCleared data section for clear form response.
Show Source
-
dataElements: array
dataElements
Cleared data elements.
-
labs: array
labs
Cleared lab associations.
Nested Schema : formsStatus
Type:
arrayForm status summary after clear action.
Show Source
-
Array of:
object FormsStatusResponseDto
Form status with outer repeat hierarchy.
Nested Schema : notClearedData
Type:
arrayData elements that could not be cleared.
Show Source
-
Array of:
object ClearFormsNotClearedDataDto10
Represents an item that could not be cleared in clear form API.
Nested Schema : Visits
Type:
objectVisit status targets and refresh indicator.
Show Source
-
refreshVisit: boolean
Indicates whether the visit needs to be refreshed after the operation.Example:
false -
visitsStatus: object
VisitsStatusRuleTargetsDto7
Visit status update response including visit action and inherited rule targets
Nested Schema : dataElements
Type:
arrayCleared data elements.
Show Source
-
Array of:
object DataElementDto136
Data element DTO version 136
Nested Schema : labs
Type:
arrayCleared lab associations.
Show Source
-
Array of:
object DCPropertyDto
Laboratory property details associated with a data element.
Nested Schema : DataElementDto136
Type:
objectData element DTO version 136
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048Comment for the data element changeExample:Captured by device -
dataFlag: string
(UUID)
Unique Data flag identifier(UUID, 32-character uppercase hexadecimal string).Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
dateTimeValueUTC: string
(date-time)
Date-time value in UTCExample:
2025-10-16T14:30:31.892Z -
dayValue: integer
(int32)
Day part of dateExample:
16 -
documentId: string
Unique identifier of the associated source document (hex UUID, 32-character uppercase), enabling traceability between the data element and its original supporting document or file.Example:
A1B2C3D4E5F64789ABCDEF0123456789 -
documentVersion: number
Version of the source or supporting document linked to this data element.Example:
1 -
eventId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) of the clinical event. A clinical event can be, for example: Screening, Randomization, Visit 1, etc. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
ADF5A7800A954FA5B831E7B6B9CA39A9 -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits (e.g., 1, 2, 3). It is null for scheduled events.Example:
1 -
floatValue: number
(decimal)
Numeric decimal valueExample:
12.34 -
formId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
formSectionId: string
(UUID)
Unique identifier of the table within a two section form or lab form. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
B6E0C7D5A1F3428C8B8B6A77C5E9D4AA -
formStatus: string
Status of the form. Status can be NEW, OPTIONAL, COMPLETED, COMPLETED_WITH_ERROR, IN_PROGRESS, IN_PROGRESS_WITH_ERROR, INCOMPLETE, INCOMPLETE_WITH_ERROR or DELETED.Example:
COMPLETED -
freezedStatus: string
Freeze status of the data element,can have Values NOT_APPLICABLE, FROZENExample:
FROZEN -
hourValue: integer
(int32)
Hour part of timeExample:
14 -
id: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) of the data elementExample:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
innerRepeat: integer
(int32)
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
1 -
itemD: string
The decoded value of the raw value, which provides a more meaningful representation of the data. For dates, it follows the ISO 8601 standard. For questions with multiple choice options, it uses the corresponding code from the codelist. Additionally, ItemD decodes special flags like NA, ND, and UNK to their corresponding meanings, making it easier to understand the data.Example:
DETAIL -
itemF: string
The formatted value that matches the data type of the question, such as a date in a specific format or a number with correct decimal places. If the user didn't provide a valid response, ItemF will be null.Example:
FLAG -
itemId: string
(UUID)
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the question within a form. This ID corresponds to the reference code set by the study designer when creating or updating a form question in draft mode.Example:
DEADBEEFDEADBEEFDEADBEEFDEADBEEF -
itemR: string
The raw value entered by the user, which can be a text, number, or date, and is stored as alphanumeric data. It may also contain special flags such as NA (Not Applicable), ND (Not Done), UNK (Unknown), or Not Answered if the user didn't provide a response.Example:
REASON -
itemType: string
Type of item represented by this data elementExample:
TEXT -
lockedDateTime: string
(date-time)
Timestamp when the data element lock state last changedExample:
2023-01-01T09:00:00Z -
lockedStatus: string
Lock state of the data element. Values LOCKED, UNLOCKED, NEVER_LOCKEDExample:
LOCKED -
measureUnit: string
Minimum Length:
0Maximum Length:64Measurement unitExample:mg/dL -
minuteValue: integer
(int32)
Minute part of timeExample:
30 -
monthValue: integer
(int32)
Month part of dateExample:
10 -
normalizedUnitId: string
Identifier of normalized unitExample:
A78AD8C31CD843CD8B847C06C0420FF5 -
normalizedValue: string
Minimum Length:
0Maximum Length:100Normalized value if applicableExample:120 -
numValue: integer
(int32)
Numeric integer valueExample:
120 -
objectVersionNumber: number
Audit trail field that represents the version number of the data.Example:
14 -
operationType: string
Operation type on the record, can have values CREATED, MODIFIED or REMOVEDExample:
MODIFIED -
originatorId: string
(UUID)
An identifier representing the system, or user that initiated the transaction (UUID, 32-character uppercase hexadecimal string).Example:
FEDCBA9876543210FEDCBA9876543210 -
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1 -
parentId: string
(UUID)
Identifier (UUID, 32-character uppercase hexadecimal string) of the parent data element in uppercase hex.Example:
ABCDEF1234567890ABCDEF1234567890 -
propertyId: string
Unique Identifier (UUID, 32-character uppercase hexadecimal string) of the property.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
propertyVersionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2025-10-16T14:30:31.892Z -
reason: string
Minimum Length:
0Maximum Length:255Reason associated with the data element changeExample:Initial entry -
repeatFormNumber: integer
(int32)
Represents the ordinal number assigned to a repeated instance of a data collection form. It uniquely identifies each occurrence of a repeating form for a subject when multiple instances of the form.Example:
2 -
repeatSequenceNumber: integer
(int32)
Indicates the order of occurrence for a repeating form instance, used to distinguish between multiple repetitions of the same form.Example:
1 -
rootId: string
(UUID)
Identifier of root data element in UUID, 32-character uppercase hexadecimal string.Example:
1234567890ABCDEF1234567890ABCDEF -
secondValue: integer
(int32)
Second part of timeExample:
31 -
signedStatus: string
Signature status of the data element, can have Values NOT_APPLICABLE, SIGNEDExample:
SIGNED -
siteId: string
(UUID)
Unique identifier of the site. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
ABCDEF1234567890ABCDEF1234567890 -
softwareVersionNumber: number
Software version numberExample:
14 -
sourceTimeStamp: string
(date-time)
Timestamp when the data element was captured in the source systemExample:
2025-10-16T14:30:31.892Z -
studyId: string
(UUID)
Unique identifier of the study. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
ABCDEF1234567890ABCDEF1234567890 -
studyName: string
Minimum Length:
0Maximum Length:100Study nameExample:STUDY-ABC -
studyVersion(required): string
Minimum Length:
0Maximum Length:100String representing the version of the study. Helps track changes in form or study design.Example:3.0.0.1 -
subjectId: 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:
10F75668189F422F9A461A315D211111 -
transactionEnd: string
(date-time)
The date and time at which the transaction processing completed.Example:
2025-10-16T14:30:31.892Z -
transactionStart: string
(date-time)
The date and time at which the transaction processing began.Example:
2025-10-16T14:30:31.892Z -
validationFailure: string
Minimum Length:
0Maximum Length:32767Validation failure details if anyExample:Incorrect values not allowed -
validationStatus: string
Minimum Length:
0Maximum Length:25Validation status of the data element. The validation status can be null or SUCCESS.Example:SUCCESS -
value: string
Minimum Length:
0Maximum Length:4000Raw value captured for the itemExample:120 -
variableId: string
(UUID)
Variable identifier (UUID, 32-character uppercase hexadecimal string) in uppercase hex format.Example:
0123456789ABCDEF0123456789ABCDEF -
vendorCode: string
Minimum Length:
0Maximum Length:100Vendor code if providedExample:VENDOR1 -
verifiedStatus: string
Verification status of the data element can have Values NOT_APPLICABLE, VERIFIEDExample:
VERIFIED -
versionEnd: string
(date-time)
End timestamp of the data element versionExample:
2025-10-16T14:30:31.892Z -
versionStart: string
(date-time)
The timestamp marking the beginning of the validity period for this record version within the system.Example:
2025-10-16T14:30:31.892Z -
visitStartDateLockedDateTime: string
(date-time)
Timestamp when the visit start date lock state last changedExample:
2023-01-01T09:00:00Z -
visitStartDateLockedStatus: string
Action taken on the visit start date value. Acceptable values are LOCKED, UNLOCKED, NEVER_LOCKED.Example:
NEVER_LOCKED -
yearValue: integer
(int32)
Year part of dateExample:
2025
Nested Schema : DCPropertyDto
Type:
objectLaboratory property details associated with a data element.
Show Source
-
comment: string
CommentExample:
Cleared due to verified lab correction -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the recordExample:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
labId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the lab normals record. Include for update requests; omit for new create.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1 -
reason: string
ReasonExample:
Data cleared by monitor
Nested Schema : FormsStatusResponseDto
Type:
objectForm status with outer repeat hierarchy.
Show Source
-
formId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
formStatus: string
Status of the form. Status can be NEW, OPTIONAL, COMPLETED, COMPLETED_WITH_ERROR, IN_PROGRESS, IN_PROGRESS_WITH_ERROR, INCOMPLETE, INCOMPLETE_WITH_ERROR or DELETED.Example:
IN_PROGRESS -
outerRepeats: array
outerRepeats
Outer repeat entries for this form
Nested Schema : outerRepeats
Type:
arrayOuter repeat entries for this form
Show Source
-
Array of:
object FormsStatusOuterRepeatDto
Outer repeat status with inner repeat entries.
Nested Schema : FormsStatusOuterRepeatDto
Type:
objectOuter repeat status with inner repeat entries.
Show Source
-
formStatus: string
Status of the form. Status can be NEW, OPTIONAL, COMPLETED, COMPLETED_WITH_ERROR, IN_PROGRESS, IN_PROGRESS_WITH_ERROR, INCOMPLETE, INCOMPLETE_WITH_ERROR or DELETED.Example:
IN_PROGRESS -
innerRepeats: array
innerRepeats
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.
-
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1
Nested Schema : innerRepeats
Type:
arrayIndicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.
Show Source
-
Array of:
object FormsStatusInnerRepeatDto
Inner repeat status for a specific outer repeat.
Nested Schema : FormsStatusInnerRepeatDto
Type:
objectInner repeat status for a specific outer repeat.
Show Source
-
formStatus: string
Status of the form. Status can be NEW, OPTIONAL, COMPLETED, COMPLETED_WITH_ERROR, IN_PROGRESS, IN_PROGRESS_WITH_ERROR, INCOMPLETE, INCOMPLETE_WITH_ERROR or DELETED.Example:
IN_PROGRESS -
innerRepeat: integer
(int32)
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
1 -
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1
Nested Schema : ClearFormsNotClearedDataDto10
Type:
objectRepresents an item that could not be cleared in clear form API.
Show Source
-
hasChildFormOrVisitData: boolean
Indicates whether item has child form/visit data.Example:
true -
isItemClearBlockedBySameFormChild: boolean
Indicates whether clear is blocked by same-form child data.Example:
true -
isItemFrozen: boolean
Indicates whether item is frozen.Example:
true -
isItemLocked: boolean
Indicates whether item is locked.Example:
true -
isItemReadOnly: boolean
Indicates whether item is read-only for user.Example:
true -
isItemSafetyTrigger: boolean
-
isItemUnfrozen: boolean
Indicates whether item was unfrozen.Example:
true -
itemId: string
Item identifier that could not be cleared.Example:
itemId1
Nested Schema : VisitsStatusRuleTargetsDto7
Type:
objectVisit status update response including visit action and inherited rule targets
Show Source
-
associatedStudyVersion: string
String representing the version of the study. Helps track changes in form or study design.Example:
3.0.0.1 -
comment: string
Minimum Length:
0Maximum Length:2048Additional comment for the visit statusExample:All data verified -
eventId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) of the clinical event. A clinical event can be, for example: Screening, Randomization, Visit 1, etc. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
ABCDEF1234567890ABCDEF1234567890 -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits (e.g., 1, 2, 3). 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:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
reason: string
Minimum Length:
0Maximum Length:255Reason associated with the visit statusExample:Subject completed the visit successfully -
siteId: string
Unique identifier of the site. Uses UUID in a 32-character uppercase hexadecimal string format.Example:
ABCDEF1234567890ABCDEF1234567890 -
studyVersion(required): string
Minimum Length:
0Maximum Length:100String representing the version of the study. Helps track changes in form or study design.Example:3.0.0.1 -
subjectId: string
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:
ABCDEF1234567890ABCDEF1234567890 -
targets: array
targets
List of rule targets affected by this operation
-
versionStart: string
Start timestamp of the version recordExample:
2025-10-16T14:30:31.892Z -
visitAction: string
Action taken on the visit start date value. Acceptable values are SCREEN_ENABLE ,SCREEN_DISABLE ,RANDOMIZE_ENABLE ,RANDOMIZE_DISABLE, DISPENSE_ENABLE, DISPENSE_DISABLE, COMPLETE_STUDY_ENABLE, COMPLETE_STUDY_DISABLE.Example:
SCREEN_ENABLE -
visitStartDate: string
(date-time)
Visit start date timestampExample:
2025-10-16T14:30:31.892Z -
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
Nested Schema : targets
Type:
arrayList of rule targets affected by this operation
Show Source
-
Array of:
string
List of rule targets affected by this operationExample:
["DDEEFF00112233445566778899AABBCC.1DEEFF00112233445566778899AABBCC"]
Example:
[
"DDEEFF00112233445566778899AABBCC.1DEEFF00112233445566778899AABBCC"
]400 Response
Bad request.
Nested Schema : result
Type:
objectNested Schema : details
Type:
object