V1.0
put
/ec-dc-svc/rest/v1.0/studies/{studyId}/{mode}/labnormals
Updates lab normals for a subject for a particular visit and particular form.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training.Example:
active -
studyId(required): string(uuid)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the study.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
comment: string
CommentExample:
Updated based on lab report 2023-02-10 -
eventId(required): string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
799EF3745FC545589F186D2198F3C65E -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
1 -
formId(required): string
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
899EF3745FC545589F186D2198F3C65E -
labId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the lab normals record. Include for update requests; omit for new create.Example:
999EF3745FC545589F186D2198F3C65E -
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1 -
reason(required): string
ReasonExample:
Correction due to re-measurement -
siteId(required): string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.Example:
699EF3745FC545589F186D2198F3C65E -
studyVersion(required): string
String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:
1.0.0.3 -
subjectId(required): string
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
A1B2C3D4E5F6471890ABCDEF12345678
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Success
Root Schema : LabResponseDTO
Type:
objectService-level response containing lab normals processing status and data elements with targets and lab properties.
Show Source
-
items: array
items
List of data elements along with targets and associated cleared lab properties
-
labnormalsStatus: array
labnormalsStatus
List of lab normals processing status codes resulting from validation and mapping.The value of status can be -DOB_MISSING, GENDER_MISSING, RACE_MISSING, DOB_NO_VALUE_CAPTURED, GENDER_NO_VALUE_CAPTURED, RACE_NO_VALUE_CAPTURED,DOB_INVALID_VALUE, MISSING_CODE_LABEL_FOR_UNIT, MISSING_CODE_LABEL_FOR_NORMAL_TEXT
Nested Schema : items
Type:
arrayList of data elements along with targets and associated cleared lab properties
Show Source
-
Array of:
object DataElementWithTargets
Wrapper combining a DataElement with its display targets and related lab properties.
Nested Schema : labnormalsStatus
Type:
arrayList of lab normals processing status codes resulting from validation and mapping.The value of status can be -DOB_MISSING, GENDER_MISSING, RACE_MISSING, DOB_NO_VALUE_CAPTURED, GENDER_NO_VALUE_CAPTURED, RACE_NO_VALUE_CAPTURED,DOB_INVALID_VALUE, MISSING_CODE_LABEL_FOR_UNIT, MISSING_CODE_LABEL_FOR_NORMAL_TEXT
Show Source
-
Array of:
string
List of lab normals processing status codes resulting from validation and mapping.The value of status can be -DOB_MISSING, GENDER_MISSING, RACE_MISSING, DOB_NO_VALUE_CAPTURED, GENDER_NO_VALUE_CAPTURED, RACE_NO_VALUE_CAPTURED,DOB_INVALID_VALUE, MISSING_CODE_LABEL_FOR_UNIT, MISSING_CODE_LABEL_FOR_NORMAL_TEXTExample:
["GENDER_MISSING"]
Example:
[
"GENDER_MISSING"
]Nested Schema : DataElementWithTargets
Type:
objectWrapper combining a DataElement with its display targets and related lab properties.
Show Source
-
dataElement: object
DataElement
Represents a data element as captured/stored for a subject during a study, including repeat and validation info.
-
labs: array
labs
List of cleared laboratory property details related to the data element
-
targets: array
targets
List of display or rule targets associated with this data element
Nested Schema : DataElement
Type:
objectRepresents a data element as captured/stored for a subject during a study, including repeat and validation info.
Show Source
-
comment: string
Minimum Length:
0Maximum Length:2048Comment regarding the last change made to the entity.Example:Imported via migration tool. -
dataEventType: string
Event occurs when a form is restored.Example:
FORM_RESTORED -
dataFlag: string
Unique Data flag identifier(UUID, 32-character uppercase hexadecimal string).Example:
C9E86AF896F04FBB82FB755666DA6B58 -
dataflagValue: string
data flag applied, values which are applicable Not Done, Not Applicable, UnknownExample:
Not Done -
documentId: string
Unique identifier of the associated source document (hex UUID, 32-character uppercase), enabling traceability between the data element and its original supporting document or file.Example:
26C7C2DF6B2546E6BBA8331738FACD1E -
eventId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical event like Screening, Visit 1 etc.Example:
BEEFAABBCCDDEEDDFF00112233445566 -
eventInstanceNum: integer
(int32)
Numeric value representing the instance number of the event. Used for repeated or unscheduled visits. It is null for scheduled events.Example:
3 -
formId: string
(UUID)
Unique identifier(UUID, 32-character uppercase hexadecimal string) representing the clinical form.Example:
360E6122F84A43CAAF70E3BECC471A7C -
formSectionId: string
(UUID)
ID (UUID, 32-character uppercase hexadecimal string) of the form section.Example:
4FB2D38F8F9644D2B3BE08B815A8FF1A -
freezedStatus: string
Frozen status of the record can have values NOT_APPLICABLE, FROZEN.Example:
FROZEN -
hdiId: string
Unique Identfier (UUID, 32-character uppercase hexadecimal string) HDI value for integrations.Example:
D3C9A4B5E6F78123456789ABCDEF1234 -
id: string
Unique identifier(UUID, 32-character uppercase hexadecimal string) for the data element.Example:
B58C5C21BFC94E1384D0F4C6BA7566F3 -
innerRepeat: integer
(int64)
Indicates the repeat sequence number of a nested or inner repeating form within an outer repeating structure. This value is used to distinguish multiple occurrences of the same inner form for a given outer repeat instance.Example:
1 -
isSafetyDefaultSelected: boolean
Indicates if this safety field is default-selected.Example:
true -
isSafetyTrigger: boolean
Indicates if this triggers a safety-related workflow.Example:
false -
itemF: string
Minimum Length:
0Maximum Length:4000The formatted value that matches the data type of the question, such as a date in a specific format or a number with correct decimal places. If the user didn't provide a valid response, ItemF will be null.Example:example free-field -
itemId: string
(UUID)
Minimum Length:
0Maximum Length:4000Unique Item identifier (UUID, 32-character uppercase hexadecimal string) from the study Designer, associated to a form.Example:7978B7DD0A0A4CA899C485990994300C -
itemR: string
Minimum Length:
0Maximum Length:4000The raw value entered by the user, which can be a text, number, or date, and is stored as alphanumeric data. It may also contain special flags such as NA (Not Applicable), ND (Not Done), UNK (Unknown), or Not Answered if the user didn't provide a response.Example:example result_R -
itemType: string
Minimum Length:
0Maximum Length:255Type/category of the item.Example:NUMERIC -
lockedDateTime: string
(date-time)
Date/time when lock was applied.Example:
2025-05-20T10:30:00Z -
lockedStatus: string
Indicates if the field is locked.values applicable LOCKED, NEVER_LOCKED, UNLOCKED, NOT_APPLICABLEExample:
LOCKED -
measureUnit: string
Minimum Length:
0Maximum Length:64Unit of measurement for value field (e.g. mg, cm).Example:mg -
operationType: string
Minimum Length:
1Maximum Length:16Operation type on the record, can have values CREATED, MODIFIED or REMOVEDExample:REMOVED -
originatorId: string
(UUID)
An identifier representing the system, or user that initiated the transaction (UUID, 32-character uppercase hexadecimal string).Example:
D340A21830F6465C8466A2B42EF370D5 -
outerRepeat: integer
(int64)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1 -
propertyId: string
Unique Identfier (UUID, 32-character uppercase hexadecimal string) of data capture propertiesExample:
FFBC9E118C4C48FDB77A50A1CDD28AA9 -
propertyVersionStart: string
(date-time)
Start time (timestamp) for the property version.Example:
2025-01-01T13:10:00Z -
reason: string
Minimum Length:
0Maximum Length:255Reason for the entity creation or latest modification.Example:Initial import. -
repeatFormNumber: integer
(int64)
Form repeat number if applicable.Example:
0 -
repeatSequenceNumber: integer
(int64)
Indicates the order of occurrence for a repeating form instance, used to distinguish between multiple repetitions of the same form.Example:
1 -
signedStatus: string
Signed status for workflow, the acceptable values are: NEVER_SIGNED, SIGNED, UNSIGNED, NEVER_SIGNED.Example:
SIGNED -
siteId: string
(UUID)
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the clinical site.Example:
BEEFAABBCCDDEEDDFF00112233445566 -
studyName: string
Minimum Length:
0Maximum Length:100Name of the study.Example:Study Alpha -
studyVersion(required): string
Minimum Length:
0Maximum Length:100String representing the version of the study configuration or protocol. Helps track changes in form or study design.Example:1.0.0.0 -
subjectId: string
(UUID)
Unique subject identifier (UUID, 32-character uppercase hexadecimal string) representing the patient/participant enrolled in the study.Example:
ABD123EFC6784123BBAA1122CCDDEE44 -
transactionEnd: string
Date when the transaction for this element ended.Example:
2023-01-21 -
transactionStart: string
Date when the transaction for this element started.Example:
2023-01-20 -
validationRules: array
validationRules
Validation rules applied to this data element.
-
value: string
Minimum Length:
0Maximum Length:4000Raw string value for the data element (as entered/captured).Example:102.1 -
variableId: string
(UUID)
Variable identifier (UUID, 32-character uppercase hexadecimal string) in uppercase hex format.Example:
E8EB947A8B684C8B8A30C6070A65BD76 -
vendorCode: string
Minimum Length:
0Maximum Length:100Third-party system or vendor code, if imported.Example:VENDOR1 -
verifiedStatus: string
Verified status for review workflow,the acceptable values are: NEVER_VEIFIED, VERIFIED, UNVERIFIED, NOT_APPLICABLE.Example:
VERIFIED -
visitStartDate: string
Date when the visit started.Example:
2025-05-19 -
visitStatus: string
Allowed Values:
[ "NEW", "COMPLETE", "COMPLETE_ERR", "INPROGRESS", "INCOMPLETE", "INCOMPLETE_ERR", "SKIPPED", "UNDO_SKIP", "NOT_STARTED" ]Visit status for this data element.Example:INPROGRESS
Nested Schema : labs
Type:
arrayList of cleared laboratory property details related to the data element
Show Source
-
Array of:
object DCPropertyDto
Laboratory property details associated with a data element.
Nested Schema : targets
Type:
arrayList of display or rule targets associated with this data element
Show Source
-
Array of:
string
List of display or rule targets associated with this data elementExample:
["93CC828113AC439181071CB44D2C6FE5.93CC828113AC439181071CB44D2C6FE5","93CC828113AC439181071CB44D2C6FE5.93CC828113AC439181071CB44D2C6FE7"]
Example:
[
"93CC828113AC439181071CB44D2C6FE5.93CC828113AC439181071CB44D2C6FE5",
"93CC828113AC439181071CB44D2C6FE5.93CC828113AC439181071CB44D2C6FE7"
]Nested Schema : validationRules
Type:
arrayValidation rules applied to this data element.
Show Source
-
Array of:
object ValidationRuleDto
Validation rule details associated with a specific data element.
Nested Schema : ValidationRuleDto
Type:
objectValidation rule details associated with a specific data element.
Show Source
-
queryId: string
Query identifier (UUID, 32-character uppercase hexadecimal string) generated by the validation rule.Example:
45B982CDC4604AF5A354AAAF7BEEB93B -
queryStatus: string
Status of the query associated with this rule and values can be Candidate, Answered, Closed, Opened, DeletedExample:
Opened -
ruleId: string
Unique Identifier (UUID, 32-character uppercase hexadecimal string) for the validation rule.Example:
45B982CDC4604AF5A354AAAF7BEEB93B
Nested Schema : DCPropertyDto
Type:
objectLaboratory property details associated with a data element.
Show Source
-
comment: string
CommentExample:
Cleared due to verified lab correction -
id: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) representing the recordExample:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
labId: string
Unique identifier (UUID, 32-character uppercase hexadecimal string) of the lab normals record. Include for update requests; omit for new create.Example:
40DB4EF4847849CCB24EFCCB71CDA436 -
outerRepeat: integer
(int32)
Indicates the repeat sequence number of the primary or outer repeating form. This value identifies each top-level occurrence of a repeating form and serves as the parent context for any nested inner repeats.Example:
1 -
reason: string
ReasonExample:
Data cleared by monitor
Examples
400 Response
Bad request.
Root Schema : DcsResponse
Type:
Show Source
object-
errorData: object
ErrorResponseData
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
-
result: object
result
-
status: string
-
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
objectStructure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
-
details: object
details
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
-
errorCode: string
Application or business-specific error code representing the error type.Example:
REPT_401 -
errorMessage: string
Human-readable error message describing the failure or issue.Example:
Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type:
objectNested Schema : details
Type:
objectDetailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
Example:
User role is missing required permission REPORTING_VIEW. Field: userId