[Deprecated]: V4.0
/ec-datahub-svc/rest/v4.0/tenant/{tenantId}/studies/{studyId}/{mode}/queries
Deprecated: Use latest version instead.
Retrieves the study-permissioned Queries dataset for a single study and mode.
The dataset exposes query lifecycle history raised against clinical data, including query state and comments, rule context, study, site, subject, visit, form, and item context, together with audit columns.
Supports select, filter, sort, limit, and offset query patterns.
The dataset returns query-history rows for the selected study and mode, not only currently open queries.
This version additionally includes the following data points: IS_AUTO_QUERY and QUERY_TYPE.
Required permission: StudyQueryDatasetPost.
Recommended order columns: The backend query always orders results by DH_TIMESTAMP and VERSION_START in ascending order first. If orderColumns is empty, only these two columns are used. If orderColumns is provided, the specified columns are appended after DH_TIMESTAMP and VERSION_START. For stable, deterministic pagination, use STUDY_ID and QUERY_ID in the orderColumns field of the request payload.
Request
-
mode(required): string
Execution
modefor the study.Allowed values:
test,active,training.Example:
test. -
studyId(required): string(uuid)
Unique study identifier supplied in the
studyIdpath parameter.Use the uppercase hexadecimal UUID value for the study.
Example:
0C7CBA3F70034C47947E2FAB086BFBF5. -
tenantId(required): string(uuid)
Unique tenant identifier supplied in the
tenantIdpath parameter.Use the uppercase hexadecimal UUID value for the tenant.
Example:
EC942244BB30163BE053BEC44C64CF34.
-
limit: integer(int32)
Minimum Value:
0Page size for the result set.
0disables pagination and returns the maximum result set allowed by the dataset endpoint.- Positive values enable pagination.
- Negative values return HTTP 400.
-
offset: integer(int32)
Minimum Value:
0Zero-based row offset.
- Counts rows, not pages.
- To fetch the next page, repeat the same request body and set
offset = previous offset + previous count. - When
limit = 0, this value is ignored and the response echoesoffset = 0. - When
limit > 0, an offset beyond the available rows returns HTTP 200 with an empty page. - Negative values return HTTP 400.
- application/json
objectSubmit a structured query for a Data Hub dataset.
selectColumnsis required and must contain one or more valid column names exposed by the target dataset version.whereColumnsis optional and provides structured filter predicates. Supported operators are=,!=,<>,>,>=,<,<=,LIKE,NOT LIKE,IN,NOT IN,BETWEEN,NOT BETWEEN,IS, andIS NOT.Default behavior: Data is filtered based on the
STUDY_WIDcolumn.orderColumnsis optional and controls sort order. For stable multi-page retrieval, keep the sameorderColumnsacross page requests.
-
orderColumns: array
orderColumns
Optional sort instructions to apply to the result set.
Duplicate order-by columns are rejected.
-
selectColumns: array
selectColumns
Required non-empty list of dataset column names to return.
Column validation is case-insensitive, and the response echoes canonical uppercase dataset column names in the same order.
-
whereColumns: array
whereColumns
Optional structured filter predicates.
This is the request-body equivalent of a
WHEREclause.All predicate values are supplied as strings and are parsed according to the underlying dataset column type.
arrayOptional sort instructions to apply to the result set.
Duplicate order-by columns are rejected.
-
Array of:
object QueryOrder
Sort instruction specifying a dataset column and optional order direction.
[
{
"columnName":"VERSION_START",
"sortOrder":"ASC"
}
]arrayRequired non-empty list of dataset column names to return.
Column validation is case-insensitive, and the response echoes canonical uppercase dataset column names in the same order.
-
Array of:
string
Required non-empty list of dataset column names to return.
Column validation is case-insensitive, and the response echoes canonical uppercase dataset column names in the same order.
Example:["STUDY_VERSION","STUDY_ID"]
[
"STUDY_VERSION",
"STUDY_ID"
]arrayOptional structured filter predicates.
This is the request-body equivalent of a WHERE clause.
All predicate values are supplied as strings and are parsed according to the underlying dataset column type.
-
Array of:
object QueryPredicate
Structured filter predicate used to constrain dataset results by column, operator, and value
[
{
"columnName":"STUDY_ID",
"operator":"=",
"value":[
"A86F2D0BB610404DB62D37AFA9C20B50"
]
}
]objectSort instruction specifying a dataset column and optional order direction.
-
columnName: string
Required dataset column name to sort by.
Column-name validation is case-insensitive.
Example:VERSION_START -
sortOrder: string
Allowed Values:
[ "ASC", "DESC" ]Optional sort direction.
If omitted, SQL default ascending order is used for that column. Allowed values are ASC and DESC.
Example:ASC
[
{
"columnName":"VERSION_START",
"sortOrder":"ASC"
}
]object-
columnName: string
Required dataset column name to filter on. Column-name validation is case-insensitive.Example:
STUDY_ID -
operator: string
Allowed Values:
[ ">", "<", "=", ">=", "<=", "<>", "!=", "IN", "NOT IN", "BETWEEN", "NOT BETWEEN", "LIKE", "NOT LIKE", "IS", "IS NOT" ]Required comparison operator. Use one value for =, !=, <>, >, >=, <, <="," like, and not like; one or more values for in in; exactly two between between; value equal to null is not.< div>Example:,>= -
value: array
value
Filter values as strings. Value cardinality depends on the operator: one for most operators, one or more for IN/NOT IN, exactly two for BETWEEN/NOT BETWEEN, and exactly one value equal to NULL for IS/IS NOT.
[
{
"columnName":"STUDY_ID",
"operator":"=",
"value":[
"A86F2D0BB610404DB62D37AFA9C20B50"
]
}
]array-
Array of:
string
Filter values as strings. Value cardinality depends on the operator: one for most operators, one or more for IN/NOT IN, exactly two for BETWEEN/NOT BETWEEN, and exactly one value equal to NULL for IS/IS NOT.Example:
["A86F2D0BB610404DB62D37AFA9C20B50"]
[
"A86F2D0BB610404DB62D37AFA9C20B50"
]Response
- application/json
- text/plain
200 Response
Response behavior
- The response is tabular.
columnsdefines the selected output order, and each row indatafollows that same order. - Every value in
datais returned as a JSON string ornull, including logical numbers and date/time values. hasMore = "true"means more matching rows exist after the current page.- If filters match no rows, or
offsetis beyond the last row, the API returns HTTP 200 withdata = [],count = 0, andhasMore = "false".
Section index
Study context | Site context | Subject context | Event context | Form context | Item context | Query context | Audit context | Reference and system identifiers
Study context
Study-level identifiers, version metadata, and protocol attributes associated with the dataset row.
| Column Name | Data Type | Description |
|---|---|---|
STUDY_TITLE | VARCHAR2(4000 CHAR) | The When you include multiple study versions in your dataset, and each has a different title, the
|
STUDY_ID_NAME | VARCHAR2(64 CHAR) | A study ID as specified by the study manager when they created the study, such as a protocol acronym and protocol number. |
STUDY_REFNAME | VARCHAR2(64 CHAR) | Indicates the study's reference name used by the system. This value is composed by the STUDY_ID_NAME converted to uppercase with blank spaces removed. Once created, this value never changes, even if STUDY_ID_NAME is changed. |
STUDY_PHASE | VARCHAR2(64 CHAR) | A study's phase as indicated by the study manager when they created the study. Possible values include I, I/II, II, II/III, III, IV, or Other. |
BLINDING_TYPE | VARCHAR2(64 CHAR) | Indicates whether the study is an open-label type of study or a blinded study, as specified by the study manager when they created the study. Possible values include OpenLabel, Blinded, OpenLabelBlinded, or Observational. |
THERAPEUTIC_AREA | VARCHAR2(64 CHAR) | Indicates the therapeutic area as specified by the study manager when they created the study. Possible values include CardiologyVascularDiseases, DentalOralHealth, Dermatology, Endocrinology, FamilyMedicine, Gastroenterology, GeneticDisease, HealthyVolunteers, Hematology, Hepatology, Immunology, InfectionsInfectiousDisease, Musculoskeletal, Nephrology, Neurology, NutritionWeightLoss, ObstetricsGynecology, Oncology, Ophthalmology, Otolaryngology, PediatricsNeonatology, PlasticSurgery, PharmacologyToxicology, Podiatry, PsychiatryPsychology, PulmonaryRespiratoryDiseases, Rheumatology, Sleep, Trauma, Urology, or Vaccines. |
Parent topic: Section index
Site context
Site profile, operational settings, and site-maintained contact details associated with the dataset row.
| Column Name | Data Type | Description |
|---|---|---|
SITE_NAME | VARCHAR2(500 CHAR) | Indicates the site's name as entered by a site manager when they created or last modified a site. |
SITE_ID_NAME | VARCHAR2(50 CHAR) | Indicates the site ID as entered by a site manager when they created or last modified a site. |
SITE_STATUS | VARCHAR2(50 CHAR) | Indicates the status of a site whether it is New, Active, or Retired. |
SITE_STUDY_VERSION | VARCHAR2(2048 CHAR) | The study version assigned to the site, as configured by a site manager. Possible values include 1.3.0.8 or 5.3.0.16. |
INVESTIGATOR | VARCHAR2(2048 CHAR) | A Principal Investigator's Full Name as listed when the site manager created the site. |
PI_PREFIX | VARCHAR2(2048 CHAR) | The principal investigator's prefix at the site. |
DEA_NUMBER | VARCHAR2(2048 CHAR) | The DEA registration number. |
EXPIRATION | VARCHAR2(2048 CHAR) | Indicates the expiration date of the DEA Registration Number as defined by a site manager. |
ADD_SUBJECTS | VARCHAR2(2048 CHAR) | Flag that enables or prevents site users from adding subjects at one or multiple sites. Possible values include true or false. |
SCREEN_SUBJECTS | VARCHAR2(2048 CHAR) | Flag that enables or prevents site users from screening subjects at one or multiple sites. Possible values include true or false. |
RANDOMIZE_SUBJECTS | VARCHAR2(2048 CHAR) | Flag that enables or prevents site users from randomizing subjects at one or multiple sites. Possible values include true or false. |
DISPENSE_TO_SUBJECTS | VARCHAR2(2048 CHAR) | Flag that enables or prevents site users from dispensing kits, devices or performing dose changes for subjects at one or multiple sites. Possible values include true or false. |
DRUG_DESTRUCTION_CAPABLE | VARCHAR2(2048 CHAR) | Flag that defines if the kit type is destructible at the site. Possible values include true or false. |
SDV_GROUP_NAME | VARCHAR2(255) | Name of the SDV Strategy, as entered by the study manager. |
INITIAL_SUBJECTS_COUNT | VARCHAR2(2048) | Number of initial subjects included in the SDV strategy. |
INITIAL_SUBJECTS_SDV_TYPE | VARCHAR2(2048) | Type of Source Data Verification: All Questions or Critical Questions. Possible values include All Questions or Critical Questions Only. |
REMAINING_SUBJECTS_PERCENTAGE | VARCHAR2(2048) | Number of remaining subjects included in the SDV strategy. |
REMAINING_SUBJECTS_SDV_TYPE | VARCHAR2(2048) | Type of Source Data Verification: All Questions or Critical Questions. Possible values include All Questions or Critical Questions Only. |
ADDRESS_STREET_1 | VARCHAR2(150 CHAR) | A site's first address as entered by the site manager when they created or last modified the site. |
ADDRESS_STREET_2 | VARCHAR2(150 CHAR) | A site's second address as entered by the site manager when they created or last modified the site. |
ADDRESS_CITY | VARCHAR2(100 CHAR) | A site's city as entered by the site manager when they created or last modified the site. |
ADDRESS_STATE_OR_PROV_OR_CNTY | VARCHAR2(100 CHAR) | A site's state, province, or county as entered by the site manager when they created or last modified the site. |
ADDRESS_POSTALCODE | VARCHAR2(20 CHAR) | The Zip Postal Code associated with a site's address. |
ADDRESS_COUNTRY | VARCHAR2(4000 CHAR) | A site's country as entered by the site manager when they created or last modified the site. The field display the country ISO code. |
PHONE | VARCHAR2(500 CHAR) | The contact phone number as entered by the site manager when they created or last modified the site. |
FAX | VARCHAR2(500 CHAR) | The contact fax number as entered by the site administrator when they created or last modified the site. |
EMAIL | VARCHAR2(500 CHAR) | Email address of the site as entered by the site administrator when they created or last modified the site. |
TIMEZONE | VARCHAR2(2048 CHAR) | Indicates the time zone the site is currently placed on as specified by a site manager. Possible values include America/New_York or Asia/Kolkata. |
SHIPPING_ATTENTION | VARCHAR2(2048 CHAR) | Indicates the name of the person who will receive shipments at the site, as specified by a site manager. |
SHIPPING_ADDRESS_1 | VARCHAR2(150 CHAR) | The first line of a site's shipping address as entered by the site manager when they created or last modified the site. |
SHIPPING_ADDRESS_2 | VARCHAR2(150 CHAR) | The second line of a site's second shipping address as entered by the site manager when they created or last modified the site. |
SHIPPING_CITY | VARCHAR2(100 CHAR) | City associated with the shipping address, as entered by the site manager when they created or last modified the site. |
SHIPPING_STATE_OR_PROV_OR_CNTY | VARCHAR2(100 CHAR) | State, province, or county associated with the shipping address, as entered by the site manager when they created or last modified the site. |
SHIPPING_ZIP | VARCHAR2(20 CHAR) | Zip Postal Code associated with the shipping address. |
SHIPPING_COUNTRY | VARCHAR2(4000 CHAR) | Country associated with the shipping address, as entered by the site manager when they created or last modified the site. |
SHIPPING_PHONE | VARCHAR2(500 CHAR) | Phone number associated with the shipping address. |
SHIPPING_FAX | VARCHAR2(500 CHAR) | Fax number associated with the shipping address. |
SHIPPING_EMAIL | VARCHAR2(500 CHAR) | Email address associated with the shipping address. |
Parent topic: Section index
Subject context
Subject identity, status, enrollment, and transfer attributes associated with the record.
| Column Name | Data Type | Description |
|---|---|---|
SUBJECT_NUMBER | VARCHAR2(500 CHAR) | The number currently assigned to the subject in the system as identifier. Note: |
PREVIOUS_SUBJECT_NUMBER | VARCHAR2(500 CHAR) | When a subject number change is applied, this field holds the number that was assigned to the subject before the change. |
SUBJECT_STATE | VARCHAR2(100 CHAR) | A subject's state in Clinical One Cloud Service. Note: When a subject is |
Parent topic: Section index
Event context
Visit scheduling, status, and execution attributes associated with the queried record.
| Column Name | Data Type | Description |
|---|---|---|
EVENT_TITLE | VARCHAR2(64 CHAR) | The event's title, defined by the user when an event is created. |
EVENT_ID_NAME | VARCHAR2(16 CHAR) | The event's id as in Clinical One Cloud Service. |
EVENT_REFNAME | VARCHAR2(64 CHAR) | The event's reference name. Displays a capitalized version of the (user entered) Note: This value does not change if the associated |
EVENT_TYPE | VARCHAR2(100) | Displays the type of event that impacts a visit's status. Upon selecting this data element, only events that occurred in your study are displayed. For example, you may see some of the following events:
|
VISIT_TYPE | VARCHAR2(100 CHAR) | Indicates the event type as specified by the study designer when they created the event. Possible values include ScreeningVisit, ScheduleAbleVisit, SubjectWithdrawalVisit, SubjectCompletionVisit, UnScheduleAbleVisit, Event, AdverseEvent, ScreenFailureVisit, or ReScreeningEvent. |
VISIT_STATUS | VARCHAR2(32 CHAR) | Indicates a visit's status in the system. Can have one of the following values:
|
VISIT_ORDER | NUMBER | The order in which subject visits occur, as configured in the study design. |
VISIT_IS_REQUIRED | CHAR(1) | Indicates if a visit is required. Possible values include Y or N. |
IS_SCHEDULED_VISIT | CHAR(1) | Indicates if the visit is scheduled. Possible values include Y or N. |
SCHEDULED_FROM_EVENT_NAME | VARCHAR2(64 CHAR) | Displays the Note: If a visit is not scheduled or it is the first visit in the schedule, then this element is populated with the visit's own title. For example, Screening Visit is displayed for the Screening Visit, if it is the first visit in the schedule. |
VISIT_START_DATE | DATE | Date stamp of a visit's start date. |
PROJECTED_VISIT_START_DATE | TIMESTAMP(6) | Date when the next scheduled visit should start in the study, based on the configured visit schedule. |
PROJECTED_VISIT_END_DATE | TIMESTAMP(6) | Date when the next scheduled visit should end in the study, based on the configured visit schedule. |
PROJECTED_VISIT_DATE | TIMESTAMP(6) | Date when the next scheduled visit should take place in the study, based on the configured visit schedule. |
DELAY_DAYS | NUMBER | The number of days between the prior scheduled visit. |
DELAY_HOURS | NUMBER | The number of hours between the prior scheduled visit (in addition to the DELAY_DAYS field). |
VISIT_WINDOW_BEFORE_DAYS | NUMBER | Indicates how many days before the scheduled date and time the visit can occur, as entered by a study designer. |
VISIT_WINDOW_BEFORE_HOURS | NUMBER | Indicates how many hours before the scheduled date and time the visit can occur, as entered by a study designer. |
VISIT_WINDOW_AFTER_DAYS | NUMBER | Indicates how many days after the scheduled date and time the visit can occur. Possible values include 0, 1, or 7. |
VISIT_WINDOW_AFTER_HOURS | NUMBER | Indicates how many hours after the scheduled date and time the visit can occur. |
Parent topic: Section index
Form context
Form-level design, repeat, and status attributes associated with the queried data element.
| Column Name | Data Type | Description |
|---|---|---|
FORM_NAME | VARCHAR2(64 CHAR) | The name of the form, as specified by the study designer. |
FORM_REFNAME | VARCHAR2(64 CHAR) | A form's reference name. |
FORM_STATUS | VARCHAR2(100) | The status of the given form. Can have one of the following values:
|
REPEAT_FORM_NUMBER | NUMBER | Refers to the form instance number of all applicable form types with repeating data:
|
IS_REPEATING | CHAR(1) | Indicates if it is a repeating form. |
IS_ROLLOVER | CHAR(1) | Indicates whether the form contains a rollover type of question. Possible values include Y or N. |
Parent topic: Section index
Item context
Item-level values, validation output, derived representations, and item metadata associated with the query.
| Column Name | Data Type | Description |
|---|---|---|
ITEM_NAME | VARCHAR2(4000 CHAR) | Indicates the title of the question, as entered by a study designer. |
ITEM_TYPE | VARCHAR2(255 CHAR) | The form item's question type. Possible values include TEXT, DATETIME, NUMERIC, CHOICE, LABEL, or FILE_UPLOAD. |
QUESTION_TYPE | VARCHAR2(32 CHAR) | Indicates the type of question as defined by a study designer. For example:
Text, DateTime, Number, Measurement, Calculation, Choice, label, or FileUpload. |
QUESTION_HINT | VARCHAR2(4000 CHAR) | Indicates information that a study designer provided as a hint to help answer a question. |
MEASURE_UNIT | VARCHAR2(64 CHAR) | Indicates the measure of unit specified by a study designer for a Number type of question. |
SAS_VARIABLE | VARCHAR2(32 CHAR) | Indicates the SAS Variable of a form defined by a study designer. |
SAS_LABEL | VARCHAR2(4000 CHAR) | Indicates the SAS Label of a form defined by a study designer. |
REFERENCE_CODE | VARCHAR2(64 CHAR) | Indicates a question's reference code. |
VENDOR_CODE | VARCHAR2(100 CHAR) | Populated and used by Oracle Clinical One Platform integrations. |
FORMITEM_IS_REQUIRED | NUMBER | Indicates if the question is required. Required questions must be answered in order to save the form that contains it. Possible values include 0 or 1. |
READONLY | NUMBER(1) | Indicates that the question is marked as read-only by a study designer. Possible values include 0 or 1. |
HIDDEN | NUMBER(1) | Indicates if a question is hidden, as marked by a study designer. Possible values include 0 or 1. |
VALIDATION_STATUS | VARCHAR2(25 CHAR) | Indicates if a form item passed validation. For example, if the question was entered correctly and a rule was not broken. |
VALIDATION_FAILURE | VARCHAR2(4000 CHAR) | Reason for failure if validation status is failed or the rule validation failed. |
DATA_FLAG | RAW(16 BYTE) | Data-entry flag that supplements the raw item value (for example NA, ND, or UNK). |
VALUE | VARCHAR2(4000 CHAR) | The raw value of the form question value (can be an array in questions with decodes). For more details see Form item output mapping in data extracts. |
NORMALIZED_VALUE | VARCHAR2(100 CHAR) | Currently not populated. |
NUM_VALUE | NUMBER | If the question type is a calculation, measurement, or number, this field is populated with that number. |
FLOAT_VALUE | NUMBER | Item value without decimal places, if precision is provided in the study design. |
UTC_DATETIME_VALUE | TIMESTAMP(6) | Indicates the date and time in UTC for a Date/Time type of question. |
ITEM_D | VARCHAR2(4000 CHAR) | Decoded raw value, with additional considerations according to data type. If the question has a code value, it is populated in this field. For more details see Form item output mapping in data extracts. |
ITEM_R | VARCHAR2(4000 CHAR) | The raw value: alphanumeric value as entered in Clinical One Cloud Service with no conversions. This includes data entry flags. For more details see Form item output mapping in data extracts. |
ITEM_F | VARCHAR2(4000 CHAR) | The formatted value: value as entered in Clinical One Cloud Service converted to the question data type as per form design. Values from text questions are formatted to remove all non-printable characters (such as tabs, carriage returns, newline characters, and leading or trailing white spaces). For more details see Form item output mapping in data extracts. |
YEAR_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the year value (i.e. 2021). |
MONTH_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the numeric month value (1-12). |
DAY_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the day value (1-31). |
HOUR_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the hour value (0-23). |
MINUTE_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the minute value (0-59). |
SECOND_VALUE | NUMBER(10) | If the question type is Date/Time, this field is populated with the second value (0-59). |
FREEZE | VARCHAR2(16 CHAR) | Indicates if a question is frozen by a data manager or CRA. Possible values include FROZEN or UNFROZEN. |
VERIFIED | VARCHAR2(16 CHAR) | Indicates the question's verification status. Data element can be populated with the following values:
|
SIGNED | VARCHAR2(16 CHAR) | Indicates if a valid casebook signature is applied to the item. |
Parent topic: Section index
Query context
Query lifecycle fields that describe the discrepancy, its state, ownership, and query-specific classification.
| Column Name | Data Type | Description |
|---|---|---|
QUERY_TYPE | VARCHAR2(16 CHAR) | Indicates the query type. |
STATE | VARCHAR2(255 CHAR) | Indicates a query's status:
|
QUERYAGE | NUMBER | Indicates the number of days passed since a query was first opened.
|
QUERY_COMMENT | VARCHAR2(2048 CHAR) | Indicates a comment associated with a query, as entered by the user who last modified the query. |
ASSIGNED_ROLES | VARCHAR2(32767 CHAR) | Indicates the roles that are assigned to receive a query. |
IS_AUTO_QUERY | VARCHAR2(1 CHAR) | Indicates whether this is an automated query. |
HAS_QUERY | CHAR(1) | Indicates if there is a query raised against a question, irrespective of the status. Possible values include Y or N. |
Parent topic: Section index
Audit context
Audit trail metadata that explains when the row version became effective, who changed it, and whether it is current.
| Column Name | Data Type | Description |
|---|---|---|
VERSION_START | TIMESTAMP(6) | Audit trail timestamp when this version of the dataset row became effective. Together with VERSION_END, it defines the validity window for the row version. |
VERSION_END | TIMESTAMP(6) | Indicates the date and time of when data was changed, if the data is not current. |
OPERATION_TYPE | VARCHAR2(16 CHAR) | Audit trail field that indicates how the dataset row version was produced.
|
USER_NAME | VARCHAR2(255 CHAR) | Audit trail field that represents the user who performed the action. The value for this column may represent a user's actual username or a user's email address, depending on how the user login was defined in Oracle Life Sciences IAMS. |
OBJECT_VERSION_NUMBER | NUMBER | Audit trail field that represents the version number of the data. |
REASON | VARCHAR2(255 CHAR) | Audit trail reason recorded for the dataset row change. Populated when a reason for change is provided for the row update. |
COMMENT | VARCHAR2(20 CHAR) | Comment for record change. |
IS_CURRENT | CHAR(1) | Audit trail flag that indicates whether the dataset row version is the current version (Y) or a historical version (N). |
Parent topic: Section index
Reference and system identifiers
System identifiers, numeric reference keys, and technical linkage fields carried with the dataset row.
| Column Name | Data Type | Description |
|---|---|---|
STUDY_ID | RAW(16 BYTE) | GUID of the study. |
STUDY_WID | NUMBER(10) | A number that represents the unique identifier of the study. |
SITE_ID | RAW(32 BYTE) | GUID of the site. |
SITE_WID | NUMBER(10) | A number that represents the unique identifier of a site. |
SUBJECT_ID | RAW(32 BYTE) | GUID of the subject. |
SUBJECT_WID | NUMBER(10) | A number that represents the unique identifier of the subject. |
EVENT_ID | RAW(32 BYTE) | GUID of the event. |
EVENT_WID | NUMBER(10) | A number that represents the unique identifier of the event. |
FORM_ID | RAW(32 BYTE) | GUID of the form. |
FORM_WID | NUMBER(10) | A number that represents the unique identifier of the form. |
ITEM_ID | RAW(32 BYTE) | GUID of the item. |
ITEM_WID | NUMBER(10) | A number that represents the unique identifier of the item. |
QUERY_ID | RAW(32 BYTE) | GUID of the query. |
QUERY_WID | NUMBER(10) | A number that represents the unique identifier of the query. |
USER_ID | RAW(32 BYTE) | GUID of the user. |
USER_WID | NUMBER(10) | Indicates a user's numeric identifier. |
PARENT_ID | RAW(16 BYTE) | GUID of the parent record. |
PARENT_WID | NUMBER(10) | Indicates the numeric identifier of the parent record. A sentinel value of -1 can appear when no parent record applies. |
ROOT_ID | RAW(16 BYTE) | GUID of the root record. |
ROOT_WID | NUMBER(10) | Indicates the numeric identifier of the root record. A sentinel value of -1 can appear when no root record applies. |
SCHEDULED_FROM_EVENT_ID | RAW(16 BYTE) | GUID of the event from which the visit was scheduled. |
SCHEDULED_FROM_EVENT_WID | NUMBER(10) | A number that represents the unique identifier of the parent visit from which the associated visit was scheduled. |
REPEAT_SEQUENCE_NUMBER | NUMBER | Indicates the number of times the form has been repeated. |
EVENT_INSTANCE_NUM | NUMBER | Indicates the number of times the event has been repeated for the subject. |
TRANSACTION_START | DATE | Indicates the transaction start date associated with the queried subject form item record. |
TRANSACTION_END | DATE | Indicates the transaction end date associated with the queried subject form item record. |
STATE_ID | NUMBER | A number that represents the unique identifier of the query state. |
RULE_ID | RAW(32 BYTE) | GUID of the rule. |
DISCREPANCY_ID | NUMBER(38) | Indicates the discrepancy identifier associated with the query. |
DH_SUBJECT_FORMITEMS_ID | RAW(16 BYTE) | GUID of the subject form item record associated with the queried data element. |
VARIABLE_ID | RAW(16 BYTE) | GUID of the variable. |
ORIGINATOR_ID | RAW(16 BYTE) | GUID of the originator. |
PROPERTY_ID | RAW(16 BYTE) | GUID of the property. |
PROPERTY_VERSION_START | TIMESTAMP(6) | Indicates the date and time when the referenced property version became effective. |
SUBJECT_EVENTINST_FORMITEM_WID | NUMBER(10) | A number that represents the unique identifier of the subject form item record. |
SUBJECT_EVENT_INST_WID | NUMBER(10) | A number that represents the unique identifier of the subject event instance. |
PARENT_NAME | VARCHAR2(4000 CHAR) | Reserved for future use. |
ROOT_NAME | VARCHAR2(4000 CHAR) | Reserved for future use. |
NORMALIZED_UNIT_ID | RAW(16 BYTE) | GUID of the normalized unit. |
FORM_SECTION_ID | RAW(16 BYTE) | GUID of the form section. |
DH_TIMESTAMP | TIMESTAMP(6) | A timestamp that indicates when the data became available in the dataset. |
SOFTWARE_VERSION_NUMBER | NUMBER | A number that increases incrementally as the underlying query dataset row is versioned. |
Parent topic: Section index
objectTabular dataset response for a dynamic Data Hub query.
columns defines the selected output order, and each row in data aligns positionally to that list.
-
columns: array
columns
Ordered dataset column names selected by the client.
Each row in
datauses this exact order. -
count: integer
(int32)
Number of rows returned in the current page.
Example:2 -
data: array
data
Row data aligned positionally with
columns.Each cell is serialized as a JSON string or
null, even for logical numbers and timestamps. -
hasMore: string
String pagination flag (
"true"or"false") indicating whether more matching rows exist after the current page.Returned as a string for backward compatibility.
Example:false -
limit: integer
(int32)
Requested page size.
Dataset endpoints commonly use
0to mean unpaginated or all rows.Example:100 -
offset: integer
(int32)
Zero-based row offset applied to the result set.
Dataset endpoints that disable pagination with
limit = 0typically echooffset = 0in the response.Example:0 -
totalResults: integer
(int32)
Total number of matching rows across all pages after filters are applied.
This can be non-zero even when the current page is empty because the requested offset is beyond the last row.
Example:2
arrayOrdered dataset column names selected by the client.
Each row in data uses this exact order.
-
Array of:
string
Ordered dataset column names selected by the client.
Each row in
datauses this exact order.Example:["STUDY_ID","RECORD_ID","STATUS"]
[
"STUDY_ID",
"RECORD_ID",
"STATUS"
]arrayRow data aligned positionally with columns.
Each cell is serialized as a JSON string or null, even for logical numbers and timestamps.
-
Array of:
array items
Row data aligned positionally with
columns.Each cell is serialized as a JSON string or
null, even for logical numbers and timestamps.
[
[
"A86F2D0BB610404DB62D37AFA9C20B50",
"REC001",
"Active"
],
[
"A86F2D0BB610404DB62D37AFA9C20B50",
"REC002",
"Inactive"
]
]arrayRow data aligned positionally with columns.
Each cell is serialized as a JSON string or null, even for logical numbers and timestamps.
-
Array of:
string
Row data aligned positionally with
columns.Each cell is serialized as a JSON string or
null, even for logical numbers and timestamps.Example:[["A86F2D0BB610404DB62D37AFA9C20B50","REC001","Active"],["A86F2D0BB610404DB62D37AFA9C20B50","REC002","Inactive"]]
[
[
"A86F2D0BB610404DB62D37AFA9C20B50",
"REC001",
"Active"
],
[
"A86F2D0BB610404DB62D37AFA9C20B50",
"REC002",
"Inactive"
]
]400 Response
Returned when the request is invalid.
- Causes include invalid
tenantIdorstudyId, negativelimitoroffset, emptyselectColumns, invalid dataset columns, invalidwhereColumnsoperator/value combinations, duplicateorderColumns, invalidsortOrder, and malformed typed filter values. - Error payload format:
{"status":"failed","result":null,"errorData":{"errorCode":"...","errorMessage":"...","details":{...}},"version":1}.
objectStandard Data Hub response envelope.
Successful responses return status as "success" and populate result. Failed responses return status as "failed" and populate errorData.
-
errorData: object
errorData
Machine-readable error payload when
statusis "failed".This field is null when
statusis "success". -
result: object
result
Payload returned by the API when
statusis "success".This field is null when
statusis "failed". -
status: string
Overall request processing status.
Allowed values are "success" and "failed".
Example:success -
version: integer
(int32)
Envelope version number.Example:
1
objectMachine-readable error payload when status is "failed".
This field is null when status is "success".
{
"errorCode":"VALIDATION_ERROR",
"errorMessage":"Invalid column name specified in the select columns: SITE_ID1",
"details":{
"field":"selectColumns"
}
}objectPayload returned by the API when status is "success".
This field is null when status is "failed".
{
"message":"Operation succeeded"
}401 Response
Returned when the request cannot be authenticated.
The response body is empty.
403 Response
Returned when the request is authenticated but the caller is not authorized to access the requested resource.
The response body contains a plain-text authorization message.
Possible response bodies:
Either the resource does not exist, or the user cannot access the resource.The entity is in maintenance mode, or the user cannot access the resource.
string500 Response
Returned when an unexpected server-side error occurs while processing the request.
The response body contains the platform error payload with the error code and description.