LEADTOOLS Medical (Leadtools.Medical.Worklist.Wcf assembly)
LEAD Technologies, Inc

AddImagingServiceRequest Method (IBrokerService)

Example 





Primary hospital identification number or code for the Patient.
Name of the healthcare provider that issued the Patient ID.
The imaging service request to add.
Adds the imaging service request to the worklist database.
Syntax
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddImagingServiceRequest( 
   string patientID,
   string issuerOfPatientID,
   ImagingServiceRequest request
)
'Declaration
 
<OperationContractAttribute()>
<FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Sub AddImagingServiceRequest( _
   ByVal patientID As String, _
   ByVal issuerOfPatientID As String, _
   ByVal request As ImagingServiceRequest _
) 
'Usage
 
Dim instance As IBrokerService
Dim patientID As String
Dim issuerOfPatientID As String
Dim request As ImagingServiceRequest
 
instance.AddImagingServiceRequest(patientID, issuerOfPatientID, request)
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddImagingServiceRequest( 
   string patientID,
   string issuerOfPatientID,
   ImagingServiceRequest request
)
OperationContractAttribute()
FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=)
function Leadtools.Medical.Worklist.Wcf.Service.IBrokerService.AddImagingServiceRequest( 
   patientID ,
   issuerOfPatientID ,
   request 
)
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddImagingServiceRequest( 
   String^ patientID,
   String^ issuerOfPatientID,
   ImagingServiceRequest^ request
) 

Parameters

patientID
Primary hospital identification number or code for the Patient.
issuerOfPatientID
Name of the healthcare provider that issued the Patient ID.
request
The imaging service request to add.
Example
 
Public Sub ImagingServiceRequestTest()
    Try
        Dim request As ImagingServiceRequest

        request = _BrokerService.FindImagingServiceRequest("1200", "000000", "246")
        If Not request Is Nothing Then
            _BrokerService.DeleteImagingServiceRequest("1200", "000000", "246")
        End If

        request = New ImagingServiceRequest()
        request.AccessionNumber = "1200"
        request.ImagingServiceRequestComments = "My Comments"
        _BrokerService.AddImagingServiceRequest("000000", "246", request)

        request = _BrokerService.FindImagingServiceRequest("1200", "000000", "246")
        If Not request Is Nothing Then
            request.RequestingService = "My Department"
            _BrokerService.UpdateImagingServiceRequest("1200", "000000", "246", request)
        End If

        Dim accNumbers As String() = _BrokerService.GetAccessionNumbers("000000", "246")

        For Each accNumber As String In accNumbers
            Console.WriteLine(accNumber)
        Next accNumber
    Catch e As Exception
        Debug.WriteLine(e.Message)
    End Try
End Sub
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);
    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IBrokerService Interface
IBrokerService Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.