SetMiscDiscrepancy
Sets the resolution text for an existing discrepancy with a current status. This function can only be called in UPDATE mode.
Syntax
short int SetMiscDiscrepancy(long disc_id, char
*disc_subtype
, DiscInfo
*discrepancy_info
);
Parameters
disc_id
(in) The discrepancy ID for the discrepancy being updated.
disc_subtype
(in) Type of discrepancy. Valid types are UNIVARIATE, MANUAL, INDICATOR, MULTIVARIATE or MANUAL HEADER.
discrepancy_info
(in) The DiscInfo definition containing the discrepancy information. Only the resolution field in the structure DiscInfo is used.
Return Value
SUCCESS
or FAILURE
.
Comments
The disc_id and subtype parameters uniquely identify the discrepancy that is being processed by the external system. Upon calling SetMiscDiscrepancy, Oracle Clinical locates the discrepancy in its internal structure and updates the resolution comment or text for this discrepancy from the input variables provided for holding this information. These input variables should be allocated and initialized before calling the routine. The remaining fields should be initialized, otherwise a warning is raised.
If any of the remaining fields contain a non-null value, then a warning is raised.
Only discrepancies in status 'CURRENT' can be updated using this routine.
Error Messages
Table 7-32 Error Messages for SetMiscDiscrepancy
Number | Severity | Message |
---|---|---|
992200 |
WRN |
All other parameters except the resolution text in the discrepancy structure will be ignored. |
992300 |
ERR |
Unable to get existing discrepancy information from the database. |
Related Functions
Parent topic: Data Capture API Functions