ClearCanvas.Dicom.Network.NetworkBase.SendNEventReportResponse C# (CSharp) Method

SendNEventReportResponse() public method

Sends an N-Event-Report Response.
public SendNEventReportResponse ( byte presentationID, DicomMessage requestMessage, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID
requestMessage DicomMessage The message being responsed to.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to send.
return void
		public void SendNEventReportResponse(byte presentationID, DicomMessage requestMessage, DicomMessage message, DicomStatus status)
		{
			message.CommandSet[DicomTags.CommandField].SetUInt16(0, (ushort)DicomCommandField.NEventReportResponse);
			message.CommandSet[DicomTags.MessageIdBeingRespondedTo].SetUInt16(0, requestMessage.MessageId);
			message.CommandSet[DicomTags.EventTypeId].SetUInt16(0, requestMessage.EventTypeId);
			message.CommandSet[DicomTags.AffectedSopClassUid].SetStringValue(requestMessage.AffectedSopClassUid);
			message.CommandSet[DicomTags.AffectedSopInstanceUid].SetStringValue(requestMessage.AffectedSopInstanceUid);
			message.CommandSet[DicomTags.Status].SetUInt16(0, status.Code);
			message.CommandSet[DicomTags.DataSetType].SetUInt16(0, 0x0101);

			SendDimse(presentationID, message.CommandSet, message.DataSet);
		}