V2.0
get
/ec-designer-svc/rest/v2.0/studies/{studyId}/visitsforms
Retrieves visits, forms, and questions for a study. When versions are supplied, the response is limited to those study versions. The optional excludeItemType query parameter can remove matching form item types from the questions list.
Request
Path Parameters
-
studyId(required): string
Study ID (UUID, 32-character uppercase hexadecimal string).Example:
F054C951EB74443C93716CA714AB686E
Query Parameters
-
excludeItemType: string
Form item type to exclude from the question list. Optional. Allowed value: `instructionalText`.Allowed Values:
[ "instructionalText" ]Example:instructionalText -
versions: string
Comma-separated study version numbers used to filter visits, forms, and questions. Optional; when omitted, all study data returned by this endpoint is included.Example:
1.0.0.1,1.0.0.2
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : VisitsFormsQuestionsDto
Type:
Show Source
object-
forms: array
forms
Forms returned for the study. The endpoint returns form identifiers, titles, reference names, study versions, and version status.
-
questions: array
questions
Questions from the returned forms. Each item includes its form reference, question metadata, and study version details.
-
visits: array
visits
Visits returned for the study. Each visit includes its study version and status when available.
Nested Schema : forms
Type:
arrayForms returned for the study. The endpoint returns form identifiers, titles, reference names, study versions, and version status.
Show Source
Example:
[
{
"id":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11",
"title":"Demographics",
"refname":"DM",
"studyVersion":"1.0.0.1",
"studyVersionStatus":"TESTING"
}
]Nested Schema : questions
Type:
arrayQuestions from the returned forms. Each item includes its form reference, question metadata, and study version details.
Show Source
Example:
[
{
"id":"6D3A9B2E5C1F4A77B22D5E9F1A8C3344",
"formId":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11",
"formTitle":"Demographics",
"questionType":"TEXT",
"questionLabel":"Subject initials",
"refname":"INITIALS",
"required":true,
"sdvRequired":false,
"sequence":1,
"studyVersion":"1.0.0.1",
"studyVersionStatus":"TESTING"
}
]Nested Schema : visits
Type:
arrayVisits returned for the study. Each visit includes its study version and status when available.
Show Source
Example:
[
{
"id":"9F4A6C7E1B8F4D56A23C9F3A0C7D4E77",
"title":"Screening",
"repeatVisit":false,
"repeatNumber":0,
"requiredVisit":true,
"eventType":"ScreeningVisit",
"shortName":"SCR",
"studyVersion":"1.0.0.1",
"studyVersionStatus":"TESTING"
}
]Nested Schema : FormDto
Type:
Show Source
object-
id: string
(uuid)
Form ID (UUID, 32-character uppercase hexadecimal string).
-
items: array
items
-
refname(required): string
Minimum Length:
1Maximum Length:64Form refnameExample:FORM_01 -
studyVersion: string
Study versionExample:
1.0.0.1 -
studyVersionStatus: string
Study version statusExample:
TESTING -
title(required): string
Minimum Length:
1Maximum Length:64Form titleExample:Demography
Nested Schema : items
Type:
Show Source
array-
Array of:
object FormItemDto v5.0
Title:
FormItemDto v5.0Discriminator:{ "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }Form Item Information
Nested Schema : FormItemDto v5.0
Type:
objectTitle:
FormItemDto v5.0Discriminator: questionType
Discriminator Values
Form Item Information
Show Source
-
formId: string
(uuid)
Form Unique GUID
-
formTitle: string
Form titleExample:
Demography -
formula: string
Smart item formula.Example:
[{'ruleName':'AGE','ruleExpression':'AgeInYears(AGE_DOB_01, visitDate)'}] -
id: string
(uuid)
Form Item Unique GUID
-
isCohortFactor: boolean
Flag that indicates whether this form item is used as a factor for randomization cohort or not.Example:
false -
isStrataFactor: boolean
Flag that indicates whether this form item is used as a factor for randomization stratum or not.Example:
false -
questionHint: string
Minimum Length:
0Maximum Length:4000Form question hintExample:What is your age? -
questionLabel(required): string
Minimum Length:
1Maximum Length:4000Form question labelExample:Age -
questionType(required): string
-
randomizationTag: boolean
Flag that indicates whether this form item should be used for randomization stratification or not.Example:
true -
refname(required): string
Minimum Length:
1Maximum Length:64Form item reference name.Example:NUMBER_01 -
required(required): boolean
Whether this form item is requiered or not.Example:
true -
ruleSet: string
A JSON-formatted set of rules to do validation of the answers.Example:
{'logicalOperator':'NONE','rules':[],'numberIndex':1} -
sdvRequired(required): boolean
Source-Documented Verification: Whether proof of the answer required?Example:
false -
sequence: integer
(int32)
Item position in the form.Example:
1 -
smartItemId: string
(uuid)
Smart item Unique GUID
-
smartObject: string
Smart object.Example:
AGE
Match One Schema
Show Source
-
object
FormNumberItemDto v5.0
Title:
FormNumberItemDto v5.0Form Number Item Details Information -
object
FormChoiceItemDto v5.0
Title:
FormChoiceItemDto v5.0Form Choice Item Details Information -
object
FormTextItemDto v5.0
Title:
FormTextItemDto v5.0Form text Item Details Information -
object
FormDatetimeItemDto v5.0
Title:
FormDatetimeItemDto v5.0Form DateTime Item Details Information
Nested Schema : FormNumberItemDto v5.0
Type:
objectTitle:
FormNumberItemDto v5.0Form Number Item Details Information
Match All
Form Number Item Details Information
Form Number Item Details Information
Show Source
-
object
FormItemDto v5.0
Title:
FormItemDto v5.0Discriminator:{ "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }Form Item Information -
object
FormNumberItemDto v5.0-allOf[1]
Nested Schema : FormChoiceItemDto v5.0
Type:
objectTitle:
FormChoiceItemDto v5.0Form Choice Item Details Information
Match All
Form Choice Item Details Information
Form Choice Item Details Information
Show Source
-
object
FormItemDto v5.0
Title:
FormItemDto v5.0Discriminator:{ "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }Form Item Information -
object
FormChoiceItemDto v5.0-allOf[1]
Nested Schema : FormTextItemDto v5.0
Type:
objectTitle:
FormTextItemDto v5.0Form text Item Details Information
Match All
Form text Item Details Information
Form text Item Details Information
Show Source
-
object
FormItemDto v5.0
Title:
FormItemDto v5.0Discriminator:{ "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }Form Item Information -
object
FormTextItemDto v5.0-allOf[1]
Nested Schema : FormDatetimeItemDto v5.0
Type:
objectTitle:
FormDatetimeItemDto v5.0Form DateTime Item Details Information
Match All
Form DateTime Item Details Information
Form DateTime Item Details Information
Show Source
-
object
FormItemDto v5.0
Title:
FormItemDto v5.0Discriminator:{ "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }Form Item Information -
object
FormDatetimeItemDto v5.0-allOf[1]
Nested Schema : FormNumberItemDto v5.0-allOf[1]
Type:
Show Source
object-
precision: integer
(int32)
Minimum Value:
0Number value precisionExample:1 -
units: string
Units of measureExample:
kg
Nested Schema : FormChoiceItemDto v5.0-allOf[1]
Type:
Show Source
object-
display: string
Pattern:
selectboxForm choice item display in UI - Selectbox.Example:selectbox -
options: array
options
Nested Schema : options
Type:
Show Source
array-
Array of:
object FormOptionDto v5.0
Title:
FormOptionDto v5.0Form choice item option details
Nested Schema : FormOptionDto v5.0
Type:
objectTitle:
FormOptionDto v5.0Form choice item option details
Show Source
-
label: string
Minimum Length:
1Maximum Length:4000Form choice selectbox label for a one specific choice.Example:Female -
value: string
Minimum Length:
1Maximum Length:4000Pattern:[a-zA-Z0-9]+Form choice selectbox value for a one specific choice.Example:1
Nested Schema : FormTextItemDto v5.0-allOf[1]
Type:
Show Source
object-
maxlength: integer
(int32)
Minimum Value:
0Maximum Value:4000Form text item max lengthExample:4000 -
multiline: boolean
Is form text item multilineExample:
false
Nested Schema : FormDatetimeItemDto v5.0-allOf[1]
Type:
Show Source
object-
allowPartialDate: integer
(int32)
Minimum Value:
0Maximum Value:1Allow partial dateExample:1 -
format: string
Pattern:
yyyy|MMM-yyyy|dd-MMM-yyyy|dd-MMM-yyyy HH:mmDate time formatExample:DD-MON-YYYY -
partialDate: string
Pattern:
yyyy|MMM-yyyyPartial date formatExample:Jan-1993
Nested Schema : FormItemBasicDto
Type:
Show Source
object-
formId: string
(uuid)
Form ID (UUID, 32-character uppercase hexadecimal string).
-
formTitle: string
Form titleExample:
Demography -
formula: string
Smart item formula.Example:
[{"ruleName":"AGE","ruleExpression":"AgeInYears(AGE_DOB_01, visitDate)"}] -
id: string
(uuid)
Form item ID (UUID, 32-character uppercase hexadecimal string).
-
isCohortFactor: boolean
Flag that indicates whether this form item is used as a factor for randomization cohort or not.Example:
false -
isStrataFactor: boolean
Flag that indicates whether this form item is used as a factor for randomization stratum or not.Example:
false -
questionHint: string
Minimum Length:
0Maximum Length:4000Form question hintExample:What is your age? -
questionLabel(required): string
Minimum Length:
1Maximum Length:4000Form question labelExample:Age -
questionType: string
Allowed Values:
[ "TEXT", "INSTRUCTIONAL_TEXT", "NUMERIC", "DATETIME", "CHOICE", "QUESTION_GROUP", "TABLE", "LABEL", "SECTION", "EXISTING_DATA", "FILE_UPLOAD" ]Form question type.Example:TEXT -
randomizationTag: boolean
Flag that indicates whether this form item should be used for randomization stratification or not.Example:
true -
refname(required): string
Minimum Length:
1Maximum Length:64Form item reference name.Example:NUMBER_01 -
required(required): boolean
Whether this form item is required.Example:
true -
ruleSet: string
A JSON-formatted rule set used to validate answers.Example:
{"logicalOperator":"NONE","rules":[],"numberIndex":1} -
sdvRequired(required): boolean
Whether source data verification is required for this question.Example:
false -
sequence: integer
(int32)
Item position in the form.Example:
1 -
smartItemId: string
(uuid)
Smart item ID (UUID, 32-character uppercase hexadecimal string).
-
smartObject: string
Smart object.Example:
AGE -
studyVersion: string
Study versionExample:
1.0.0.1 -
studyVersionStatus: string
Study version statusExample:
TESTING
Nested Schema : VisitDto
Type:
Show Source
object-
endVisitId: string
(uuid)
End visit ID (UUID, 32-character uppercase hexadecimal string).
-
eventType: string
Visit event typeExample:
ScreeningVisit -
id: string
(uuid)
Visit ID (UUID, 32-character uppercase hexadecimal string).
-
lastRequired: boolean
Yes - if Visit is last required.Example:
false -
randomization: string
(uuid)
Randomization ID (UUID, 32-character uppercase hexadecimal string).
-
repeatNumber(required): integer
(int32)
Times to repeat Visit Design.Example:
5 -
repeatVisit(required): boolean
Yes - if Visit Design is repeating.Example:
false -
requiredVisit(required): boolean
Yes - if Visit Design is required.Example:
false -
shortName(required): string
Minimum Length:
1Maximum Length:16Pattern:[a-zA-Z0-9]+Visit short nameExample:Week1 -
startVisitId: string
(uuid)
Start visit ID (UUID, 32-character uppercase hexadecimal string).
-
studyVersion: string
Study versionExample:
1.0.0.1 -
studyVersionStatus: string
Study version statusExample:
TESTING -
title(required): string
Minimum Length:
1Maximum Length:64Visit titleExample:Week 2 -
visitDescription: string
Visit descriptionExample:
Regular 2 week visit -
visitStartDate: string
(date-time)
Visit start date timeExample:
2019-01-25T07:42:00.204Z
Examples
500 Response
Returned when the request cannot be completed due to validation failure, authorization failure, or an unexpected server-side condition.
Root Schema : ErrorResponseData
Type:
objectTitle:
ErrorResponseDataError Response Details Information
Show Source
-
details: object
Object
Title:
ObjectObject with error details information. -
errorCode: string
Error code which is stored in ErrorCode enum. Example : C1-003Example:
C1-003 -
errorMessage: string
Error message which is stored in service property file. Example : Cannot modify object after a study version has been approvedExample:
Cannot modify object after a study version has been approved
Nested Schema : Object
Type:
objectTitle:
ObjectObject with error details information.
Example:
{
"field":"studyId",
"reason":"Invalid value"
}