public void UpdateImagingServiceRequest(
string accessionNumber,
string patientID,
string issuerOfPatientID,
ImagingServiceRequest request
)
accessionNumber
The accession number.
patientID
The patient ID.
issuerOfPatientID
The name of the issuer of the Patient ID.
request
The request.
using Leadtools;
using Leadtools.Medical.Worklist.Wcf.Service;
using Leadtools.Medical.Worklist.DataAccessLayer.MatchingParameters;
using Leadtools.Dicom;
using Leadtools.Medical.Worklist.Wcf.Entities;
public void ImagingServiceRequestTest()
{
try
{
ImagingServiceRequest request;
request = _BrokerService.FindImagingServiceRequest("1200", "000000", "246");
if (request != null)
_BrokerService.DeleteImagingServiceRequest("1200", "000000", "246");
request = new ImagingServiceRequest();
request.AccessionNumber = "1200";
request.ImagingServiceRequestComments = "My Comments";
_BrokerService.AddImagingServiceRequest("000000", "246", request);
request = _BrokerService.FindImagingServiceRequest("1200", "000000", "246");
if (request != null)
{
request.RequestingService = "My Department";
_BrokerService.UpdateImagingServiceRequest("1200", "000000", "246", request);
}
string[] accNumbers = _BrokerService.GetAccessionNumbers("000000", "246");
foreach (string accNumber in accNumbers)
{
Console.WriteLine(accNumber);
}
}
catch (Exception e)
{
Debug.WriteLine(e.Message);
}
}