SendCGetResponse method (ILEADDicomNet)
short SendCGetResponse ( long hNet, short nPresentationID, short nMessageID, BSTR pszClass, short nStatus, short nRemaining, short nCompleted, short nFailed, short nWarning, long hDS); | |
Overview |
Refer to Working with DICOM Network Connections. |
Remarks
(Medical Imaging Suite only) Sends a C-GET-RSP message to a peer member of a connection.
The SendCGetResponse method is sent by the SCP in response to an SendCGetRequest method call placed by an SCU. This generates a NetReceiveCGetResponse event on the SCU.
As an example, suppose an SCU requests an SCP to search all CT class instances for specific data. If the SCP has three CT class instances present, it must search all three instances for the required data. During the search, the SendCGetResponse method may be called multiple times. The table below gives examples of possible parameter values for the calls made to the SendCGetResponse method during the search:
Point within search |
nStatus |
nRemaining |
nCompleted |
nFailed |
nWarning |
Finished 1st instance |
COMMAND_STATUS _PENDING |
2 |
1 |
0 |
0 |
Finished 2nd instance |
COMMAND_STATUS _PENDING |
1 |
2 |
1 |
1 |
Finished the search |
COMMAND_STATUS _SUCCESS |
0 |
3 |
1 |
1 |
After the first instance is searched, there are 2 remaining instances to search (nRemaining), there is 1 instance that has been completed (nCompleted), no instances have failed the search (nFailed), and there are no warnings(nWarning).
After the second instance is searched, there is 1 remaining instance to search (nRemaining), there are 2 instances that have been completed (nCompleted), 1 instance has failed the search (nFailed), and there is one warning (nWarning).
After the last instance has been searched, there are 0 remaining instances to search (nRemaining), there are 3 instances that have been completed (nCompleted), 1 instance has failed the search (nFailed), and there is one warning (nWarning).
The instance that failed may have failed because one data element you were searching for was not in the instance. For example, you may have included "Patient Birth Date" in the elements to search for and one instance did not include "Patient Birth Date".
Information about the warning may be found in the data set that is returned.
See Also
Elements: |
SendCGetRequest method, NetReceiveCGetResponse event, NetReceiveCGetRequest event |
Topics: |