Get code list matching the given parameters
get
/ec-codelist-svc/rest/v3.0/codelist/values/{fieldName}
Retrieves the list of all code lists values matching the given fieldName, type, studyId, groupId, data type, isHierarchial and language passed.
Request
Path Parameters
-
fieldName(required): string
Name of the fields. It can be code name, tag name or code id.
Query Parameters
-
allFields: boolean
Indicates whether hidden fields need to be retrieved. Allowed values are true or false.
-
dataType: string
Data Type. Allowed values are current, history. Default is current.Allowed Values:
[ "current", "history" ]
-
groupId: string(uuid)
ID of the group
-
includeHidden: boolean
Indicates whether hidden code values should be returned. Allowed values are true or false. Default is falseDefault Value:
true
-
isHierarchial: boolean
Indicates whether hierarchial code values need to be retrieved. Allowed values are true or false.
-
language: string
Language for expected response codelist. This overrides user preference for language. This field is case sensitive and accepts values like en, ja etc. By default it's english (en)
-
mode: string
Mode of the study. Allowed values are active, test and training
-
studyId: string(uuid)
ID of the study
-
type: string
Field Type. Allowed values are code, tag and id. Default is code.Allowed Values:
[ "code", "tag", "id" ]
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Success
Nested Schema : code
Type:
object
Nested Schema : items
Type:
object
400 Response
Missing required field (codeName).
Root Schema : CodeListResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData
Title:
ErrorResponseData
Error Response Details Information -
result: object
result
-
status: string
Nested Schema : ErrorResponseData
Type:
object
Title:
ErrorResponseData
Error Response Details Information
Show Source
-
details: object
Object
Title:
Object
Object 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 : result
Type:
object
Nested Schema : Object
Type:
object
Title:
Object
Object with error details information.
500 Response
Internal server error
Root Schema : CodeListResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData
Title:
ErrorResponseData
Error Response Details Information -
result: object
result
-
status: string
Nested Schema : ErrorResponseData
Type:
object
Title:
ErrorResponseData
Error Response Details Information
Show Source
-
details: object
Object
Title:
Object
Object 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 : result
Type:
object
Nested Schema : Object
Type:
object
Title:
Object
Object with error details information.