GetQuestionId
Returns the DCM question_id for the DCM question. As an alternative, you can query the stable views for this information. See the Oracle Clinical Stable Interface Technical Reference Manual for the documented data model.
Syntax
short int GetQuestionId(QuestionId*question_identifier,
double*question_id);
Parameters
question_identifier (in) contains the unique identifier for the question in a data structure of type QuestionId.
question_id (out) The internal dcm_question_id for the DCM question identified by the question_identifier.
Return Value
SUCCESS or FAILURE.
Comments
The question_identifier uniquely identifies the group that is being processed by the external system. Upon calling this function Oracle Clinical locates the question in its internal structure and gets the question_id. Oracle Clinical functions based on the current state of its internal buffers, that is, the current DCM and the subset_number.
Error Messages
Table 7-18 Error Messages for GetQuestionId
| Number | Severity | Message |
|---|---|---|
|
284900 |
ERR |
User does not have the privilege to call function in the current mode. |
|
285000 |
ERR |
Function called out of sequence. |
|
285900 |
ERR |
No current OCL database connection open. Use ConnectOCL to connect to OCL database. |
|
286600 |
ERR |
Audit reason required and not provided. |
|
286700 |
ERR |
Cannot locate the corresponding DCM question in the internal OCL buffers for the DCM question ID passed. |
|
304600 |
ERR |
Function does not exist. |
|
304700 |
ERR |
Privilege does not exist. |
Related Functions
Parent topic: Data Capture API Functions