V2.0
post
/ec-dataaction-svc/rest/v2.0/studies/{studyId}/{mode}/cleardatacheck/{scope}
Checks if the scope type (ITEM/VSD) item is eligible for clearing its data or not, if eligible returns the item data element object data. V2 adds more context (`value` and `scope`) than the V1 request which only includes basic structure.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
test -
scope(required): string
scope type can be ITEM/VSDExample:
ITEM -
studyId(required): string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
3F2504E04F8911D39A0C0305E82C3301
Supported Media Types
- application/json
Root Schema : schema
Type:
objectDTO for checking eligibility to clear data for a set of data elements.
Show Source
-
eventId(required): string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
ABCDEF12ABCDEF12ABCDEF12ABCDEF12 -
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:
3 -
formId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
F1C29B36F5D64B1B95F4BDBBCEA41234 -
formSectionId: string
(UUID)
ID (UUID, 32-character uppercase hexadecimal string) of the form section.Example:
A1C29B36F5D64B1B95F4BDBBCEA4FF11 -
itemId: string
(UUID)
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:
C1C29B36F5D64B1B95F4BDBBCEA48EEE -
repeatSectionFormNumber: integer
(int64)
Repeat section form number, if applicable.Example:
1 -
repeatSequenceNumber: integer
(int64)
Indicates the order of occurrence for a repeating form instance, used to distinguish between multiple repetitions of the same form.Example:
3 -
scope: string
scope type can ITEM/VSDExample:
ITEM -
studyVersion(required): string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
2.0.0.38 -
subjectId(required): string
(UUID)
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
value: array
value
Minimum Number of Items:
0Maximum Number of Items:4000A list of values to check for eligibility to clear.
Example:
{
"studyVersion": "2.0.0.38",
"subjectId": "1BC29B36F5D64B1B95F4BDBBCEA481BE",
"eventId": "ABCDEF12ABCDEF12ABCDEF12ABCDEF12",
"eventInstanceNum": 2,
"formId": "F1C29B36F5D64B1B95F4BDBBCEA41234",
"formSectionId": "A1C29B36F5D64B1B95F4BDBBCEA4FF11",
"repeatSectionFormNumber": 1,
"repeatSequenceNumber": 3,
"itemId": "C1C29B36F5D64B1B95F4BDBBCEA48EEE",
"value": "[ "PASS", "MISSING" ]",
"scope": "ITEM"
}Nested Schema : value
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
4000A list of values to check for eligibility to clear.
Show Source
-
Array of:
string
A list of values to check for eligibility to clear.Example:
["PASS","MISSING"]
Example:
[
"PASS",
"MISSING"
]Response
Supported Media Types
- application/json
200 Response
Eligibility determination response.Update when ClearDataCheckResponse is available to include all fields.
Root Schema : ClearDataCheckResponse
Type:
objectResponse to clear data eligibility check request, containing eligibility status and detailed item/child/descendant info.
Show Source
-
childForms: array
childForms
List of info for each child form object.
-
childFrozen: boolean
Indicates if any child item is frozen.Example:
false -
childHidden: boolean
Indicates if any child item is hidden.Example:
false -
childInFutureForm: boolean
Whether any child is part of a form not yet active.Example:
false -
childInFutureVisit: boolean
Whether any child is part of a visit not yet occurred.Example:
false -
childLocked: boolean
Indicates if any child item is locked.Example:
false -
childQuestions: array
childQuestions
List of info for any child question items.
-
childReadOnly: boolean
Indicates if any child item is read-only.Example:
false -
childSections: array
childSections
List of info for child sections (if any).
-
childUnFrozen: boolean
Indicates if a child was unfrozen.Example:
true -
childVisits: array
childVisits
List of info for each child visit object.
-
formAssociated: boolean
Whether the item is associated to a form.Example:
true -
grandParent: boolean
Whether this parent item is a grandparent in the hierarchy.Example:
false -
itemEligible: boolean
Whether the item is eligible for data clearance.Example:
true -
itemEmpty: boolean
Whether item is currently empty.Example:
false -
itemFrozen: boolean
Whether the item is frozen (cannot be changed).Example:
false -
itemHidden: boolean
Whether the item is hidden in the UI.Example:
false -
itemInfo: object
ItemInfo
List of info for any child question items.
-
itemLocked: boolean
Whether the item is currently locked.Example:
false -
itemReadOnly: boolean
Is the item currently read-only?Example:
false -
itemUnFrozen: boolean
Whether the item was unfrozen since initial freeze.Example:
true -
validationAt: string
Validation context or hierarchy where checked, for example ITEM, SUBJECT, VISIT.Example:
SUBJECT
Nested Schema : childForms
Type:
arrayList of info for each child form object.
Show Source
-
Array of:
object ItemInfo
List of info for any child question items.
Nested Schema : childQuestions
Type:
arrayList of info for any child question items.
Show Source
-
Array of:
object ItemInfo
List of info for any child question items.
Nested Schema : childSections
Type:
arrayList of info for child sections (if any).
Show Source
-
Array of:
object ItemInfo
List of info for any child question items.
Nested Schema : childVisits
Type:
arrayList of info for each child visit object.
Show Source
-
Array of:
object ItemInfo
List of info for any child question items.
Nested Schema : ItemInfo
Type:
objectList of info for any child question items.
Show Source
-
eventId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
33CAF3CB1DF64DF5A353A337CBE6B50A -
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 -
formId: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
33CAF3CB1DF64DF5A353A337CBE6B50A -
formName: string
Name of the form.Example:
Physical Exam -
itemId: string
Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:
33CAF3CB1DF64DF5A353A337CBE6B50A -
itemName: string
Name of the child item or question.Example:
Is patient fasting? -
type: string
Type of the child object: VISIT, FORM, SECTION, or QUESTION.Example:
VISIT
Examples
400 Response
Bad_Request
Root Schema : RestResponse
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