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
Query Parameters
  • Form item type to exclude from the question list. Optional. Allowed value: `instructionalText`.
    Allowed Values: [ "instructionalText" ]
    Example:
    instructionalText
  • 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 Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : VisitsFormsQuestionsDto
Type: object
Show Source
  • forms
    Forms returned for the study. The endpoint returns form identifiers, titles, reference names, study versions, and version status.
  • questions
    Questions from the returned forms. Each item includes its form reference, question metadata, and study version details.
  • visits
    Visits returned for the study. Each visit includes its study version and status when available.
Nested Schema : forms
Type: array
Forms 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: array
Questions 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: array
Visits 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: object
Show Source
Nested Schema : items
Type: array
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "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: object
Title: FormItemDto v5.0
Discriminator: questionType

Discriminator Values

Form Item Information
Show Source
Match One Schema
Show Source
Nested Schema : FormNumberItemDto v5.0
Type: object
Title: FormNumberItemDto v5.0
Form Number Item Details Information
Match All
Form Number Item Details Information
Form Number Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "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
  • FormNumberItemDto v5.0-allOf[1]
Nested Schema : FormChoiceItemDto v5.0
Type: object
Title: FormChoiceItemDto v5.0
Form Choice Item Details Information
Match All
Form Choice Item Details Information
Form Choice Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "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
  • FormChoiceItemDto v5.0-allOf[1]
Nested Schema : FormTextItemDto v5.0
Type: object
Title: FormTextItemDto v5.0
Form text Item Details Information
Match All
Form text Item Details Information
Form text Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "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
  • FormTextItemDto v5.0-allOf[1]
Nested Schema : FormDatetimeItemDto v5.0
Type: object
Title: FormDatetimeItemDto v5.0
Form DateTime Item Details Information
Match All
Form DateTime Item Details Information
Form DateTime Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "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
  • FormDatetimeItemDto v5.0-allOf[1]
Nested Schema : FormNumberItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormChoiceItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : options
Type: array
Show Source
Nested Schema : FormOptionDto v5.0
Type: object
Title: FormOptionDto v5.0
Form choice item option details
Show Source
  • Minimum Length: 1
    Maximum Length: 4000
    Form choice selectbox label for a one specific choice.
    Example: Female
  • Minimum Length: 1
    Maximum Length: 4000
    Pattern: [a-zA-Z0-9]+
    Form choice selectbox value for a one specific choice.
    Example: 1
Nested Schema : FormTextItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormDatetimeItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormItemBasicDto
Type: object
Show Source
Nested Schema : VisitDto
Type: object
Show Source
Examples

500 Response

Returned when the request cannot be completed due to validation failure, authorization failure, or an unexpected server-side condition.
Body ()
Root Schema : ErrorResponseData
Type: object
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : Object
Type: object
Title: Object
Object with error details information.
Example:
{
    "field":"studyId",
    "reason":"Invalid value"
}
Back to Top