Get rule by form ID
get
/ec-rule-designer-svc/rest/v1.0/rule/studies/{studyId}/{mode}/form/{formId}
Retrieves a list of rules and related actions that belong to a form.
Request
Path Parameters
-
formId(required): string(uuid)
Form ID.Example:
39903D6C042D4D9E89773160488E6D3D -
mode(required): string
Study Mode. (Test, Training or Active)Example:
est -
studyId(required): string(uuid)
Study ID.Example:
36753A48BBA048CB98A5F3278146118D
Query Parameters
-
ruleEnabled: number
Rule Enabled (1/0) - Optional Filter.Example:
0 -
ruleValidationStatus: string
Rule Validation Status (true/false) - Optional Filter.Example:
true
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Success.
Nested Schema : RuleActionsDetailDTO
Type:
Show Source
object-
actions: array
actions
-
eventId: string
(uuid)
Unique ID of eventId
-
eventInstanceNumber: number
Event Instance Number (Null for non cyclic visits)Example:
1 -
formId: string
(uuid)
Unique ID of formId
-
itemId: string
(uuid)
Unique ID of itemId
-
propertyName: string
Visit Property for rule (used for Visit Start Date and Visit Information)Example:
visitStartDate -
propertyType: string
Visit Property for rule (used for Visit Start Date and Visit Information)Example:
visit -
ruleDescription: string
Rule Name descriptionExample:
This rule retrieves ORS Dispensation information to create a query. -
ruleEnabled: number
Is the rule enabled or not?
-
ruleExpr: string
Rule Expression for the rule logicExample:
Rule logic code here -
ruleId: string
(uuid)
Unique ID of rule
-
ruleJSExpr: string
Rule Javascript Expression for the rule logicExample:
Rule logic code here -
ruleName: string
Rule Name definedExample:
Rule_GetDispensationinfo -
ruleOrder: number
Order for the rule logic
-
ruleOriginType: string
Rule Name origin type (Custom Rules/ UI)Example:
UI -
rulePayload: string
Rule payload
-
ruleRefName: string
Unique rule ref nameExample:
RULE_B1B8327AFAA6412287106192AB5984EF -
ruleState: string
State of rule (Draft, UAT, Approved, Published)Example:
UAT -
ruleValidationStatus: string
Validation status of rule on saveExample:
success -
ruleVersionNumber: number
Rule Version Number for a given rule
Nested Schema : RuleActionDetailDTO
Type:
Show Source
object-
ruleActionDescription: string
Description of Rule Target actionExample:
Calculated values for target item. -
ruleActionId: string
(uuid)
Unique ID of rule action
-
ruleActionOrder: number
Rule target order
-
ruleActionParams: string
Parameters for rule actionExample:
RULE_6B1321B7038349038B81F2AB3F3DFED1 auto query -
ruleActionTarget: string
Rule target itemExample:
null.79215164E0DC487A97E1B9FF2C03B14E.4DDA38E077C0461D94CD34E61B3A7B56 -
ruleActionTypeName: string
Rule target type name (Type of rule target)Example:
Calculated values.
Examples
400 Response
Bad request.
Root Schema : RDSRestErrorDataDTO
Type:
objectError details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message -
result: string
Read Only:
trueResult -
status: string
Read Only:
trueStatus
Example:
{
"errorCode":"RULE_ERROR",
"errorMessage":"Rule execution failed"
}Nested Schema : details
Type:
objectRead Only:
trueError Details
500 Response
No data found for supplied parameters.
Root Schema : RDSRestErrorDataDTO
Type:
objectError details from Rule Designer APIs
Show Source
-
details: object
details
Read Only:
trueError Details -
errorCode: string
Read Only:
trueError Code -
errorMessage: string
Read Only:
trueError Message -
result: string
Read Only:
trueResult -
status: string
Read Only:
trueStatus
Example:
{
"errorCode":"RULE_ERROR",
"errorMessage":"Rule execution failed"
}Nested Schema : details
Type:
objectRead Only:
trueError Details