[Deprecated]: v1.0
post
/ec-codelist-svc/rest/v1.0/codelist
Deprecated: This method is no longer used to insert a new system-level code list based on the given payload. The API used to insert code lists at a user-level will be provided in the future.
Right: CodeListPost.
Right: CodeListPost.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : Code
Type:
Show Source
object-
canAddValues: boolean
Whether values can be added.Example:
true -
canHideValues: boolean
Whether values can be hidden.Example:
true -
codeGroupId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the codelist group.Example:
B1B8327AFAA6412287106192AB5984EF -
codeLevel: string
Minimum Length:
1Maximum Length:32Codelist code level.Example:SYSTEM -
codeName: string
Minimum Length:
1Maximum Length:255Codelist code name.Example:AE_SEVERITY -
codeType: string
Minimum Length:
1Maximum Length:255Codelist code type.Example:SYSTEM -
comment: string
Comment.Example:
Updated description -
customizable: boolean
-
description: string
Minimum Length:
1Maximum Length:4000Codelist description.Example:Severity of adverse event. -
displayCodeName: string
Display name for the codelist.Example:
AE Severity -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string)Example:
B1B8327AFAA6412287106192AB5984EF -
objectVersionNumber: number
Object version number.Example:
1 -
operationType: string
Minimum Length:
1Maximum Length:16Operation type.Example:CREATED -
optlock: string
(date-time)
Optimistic lock timestamp.
-
parCodeName: string
Minimum Length:
1Maximum Length:255Parent codelist code name.Example:AE -
reason: string
Reason for change.Example:
Updating codelist -
softwareVersionNumber: number
Software version number.Example:
1 -
tag: string
Minimum Length:
1Maximum Length:32767Tag for the codelist.Example:safety -
tenantLevelOnly: boolean
-
userId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the user.Example:
B1B8327AFAA6412287106192AB5984EF -
versionEnd: string
(date-time)
Version end timestamp.
-
versionStart: string
(date-time)
Version start timestamp.
Nested Schema : CodeValue
Type:
Show Source
object-
code: string
Minimum Length:
1Maximum Length:255Codelist value code (legacy).Example:MILD -
codeGroupId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the codelist group.Example:
B1B8327AFAA6412287106192AB5984EF -
codeId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the parent codelist code.Example:
B1B8327AFAA6412287106192AB5984EF -
codeLabel: string
Minimum Length:
1Maximum Length:32767Codelist value label.Example:Mild -
codeValue: string
Minimum Length:
1Maximum Length:32767Codelist value.Example:MILD -
comment: string
Comment.Example:
Updated label -
customizationType: string
Customization type.Example:
CUSTOM - hidden: boolean
-
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string)Example:
B1B8327AFAA6412287106192AB5984EF -
language: string
Minimum Length:
1Maximum Length:10Language code.Example:en -
locale: string
Minimum Length:
1Maximum Length:255Locale code.Example:en -
loinc: string
LOINC code.Example:
1234-5 -
objectVersionNumber: number
Object version number.Example:
1 -
operationType: string
Minimum Length:
1Maximum Length:16Operation type.Example:CREATED -
optlock: string
(date-time)
Optimistic lock timestamp.
-
reason: string
Reason for change.Example:
Updating codelist values -
sequence: number
Display sequence.Example:
1 -
softwareVersionNumber: number
Software version number.Example:
1 -
userId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the user.Example:
B1B8327AFAA6412287106192AB5984EF -
versionEnd: string
(date-time)
Version end timestamp.
-
versionStart: string
(date-time)
Version start timestamp.
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Nested Schema : CodeValueDto
Type:
Show Source
object-
codeId: string
(uuid)
-
codeLabel: string
-
codeValue: string
-
comment: string
-
id: string
(uuid)
-
locale: string
-
objectVersionNumber: number
-
operationType: string
-
optLock: string
(date-time)
-
reason: string
-
softwareVersionNumber: number
-
userId: string
(uuid)
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
Examples
400 Response
'Missing required code definition', 'Missing required values definition','Missing required field (codeName)','Missing required field (codeType)','Duplicate code name'
Nested Schema : result
Type:
objectNested Schema : details
Type:
object500 Response
Internal server error
Nested Schema : result
Type:
objectNested Schema : details
Type:
object