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

AddRequestedProcedure Method (IBrokerService)

Example 





A departmental IS-generated number that identifies the order for the Imaging Service Request.
The requested procedure to add.
Adds the requested procedure to the worklist database.
Syntax
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddRequestedProcedure( 
   string accessionNumber,
   WCFRequestedProcedure procedure
)
'Declaration
 
<OperationContractAttribute()>
<FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Sub AddRequestedProcedure( _
   ByVal accessionNumber As String, _
   ByVal procedure As WCFRequestedProcedure _
) 
'Usage
 
Dim instance As IBrokerService
Dim accessionNumber As String
Dim procedure As WCFRequestedProcedure
 
instance.AddRequestedProcedure(accessionNumber, procedure)
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddRequestedProcedure( 
   string accessionNumber,
   WCFRequestedProcedure procedure
)
OperationContractAttribute()
FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=)
function Leadtools.Medical.Worklist.Wcf.Service.IBrokerService.AddRequestedProcedure( 
   accessionNumber ,
   procedure 
)
[OperationContractAttribute()]
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
void AddRequestedProcedure( 
   String^ accessionNumber,
   WCFRequestedProcedure^ procedure
) 

Parameters

accessionNumber
A departmental IS-generated number that identifies the order for the Imaging Service Request.
procedure
The requested procedure to add.
Example
 
Public Sub WCFRequestedProcedureTest()
    Try
        Dim procedure As WCFRequestedProcedure = Nothing

        procedure = _BrokerService.FindRequestedProcedure("1200", "1300")
        If Not procedure Is Nothing Then
            _BrokerService.DeleteRequestedProcedure("1200", "1300")
        End If

        procedure = New WCFRequestedProcedure()
        procedure.RequestedProcedureID = "1300"
        procedure.StudyInstanceUID = "1.2.345.6.789"
        procedure.RequestedProcedureDescription = "My Description"
        _BrokerService.AddRequestedProcedure("1200", procedure)

        procedure = _BrokerService.FindRequestedProcedure("1200", "1300")
        If Not procedure Is Nothing Then
            procedure.PatientTransportArrangements = "Bus"
            _BrokerService.UpdateRequestedProcedure("1200", "1300", procedure)
        End If

        Dim ids As String() = _BrokerService.GetRequestedProcedureIDs("1200")

        For Each id As String In ids
            Console.WriteLine(id)
        Next id
    Catch e As Exception
        Debug.WriteLine(e.Message)
    End Try
End Sub
public void RequestedProcedureTest()
{
    try
    {
        WCFRequestedProcedure procedure = null;

        procedure = _BrokerService.FindRequestedProcedure("1200", "1300");
        if (procedure != null)
            _BrokerService.DeleteRequestedProcedure("1200", "1300");

        procedure = new WCFRequestedProcedure();
        procedure.RequestedProcedureID = "1300";
        procedure.StudyInstanceUID = "1.2.345.6.789";
        procedure.RequestedProcedureDescription = "My Description";
        _BrokerService.AddRequestedProcedure("1200", procedure);

        procedure = _BrokerService.FindRequestedProcedure("1200", "1300");
        if (procedure != null)
        {
            procedure.PatientTransportArrangements = "Bus";
            _BrokerService.UpdateRequestedProcedure("1200", "1300", procedure);
        }

        string[] ids = _BrokerService.GetRequestedProcedureIDs("1200");

        foreach (string id in ids)
        {
            Console.WriteLine(id);
        }
    }
    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.