XdsObjects Help file
XdsObjects Namespace / PixQuery Class / GetID Method / GetID(XdsDomain,String,String) Method
The XdsDomain object holding configuration information
The Root ID being requested
The patient's current ID in full form



In This Topic
    GetID(XdsDomain,String,String) Method
    In This Topic
    Get the ID for a patient in a different domain by doing a PIX query if necessary
    Syntax
    Public Overloads Shared Function GetID( _
       ByVal Domain As XdsDomain, _
       ByVal WantedRoot As String, _
       ByVal CurrentID As String _
    ) As String
    Dim Domain As XdsDomain
    Dim WantedRoot As String
    Dim CurrentID As String
    Dim value As String
     
    value = PixQuery.GetID(Domain, WantedRoot, CurrentID)

    Parameters

    Domain
    The XdsDomain object holding configuration information
    WantedRoot
    The Root ID being requested
    CurrentID
    The patient's current ID in full form

    Return Value

    The new ID (in full form)
    Remarks

    If the current root is the same as the Wanted root, the method returns immediately returning the current ID, withoug doing an external PIX query

    If the current and wanted roots are not the same, then the cache is checked to see if the required data is already available, and if so, then the result is returned immediately from the cache

    If neither of the above applies, then a PIX query is performed, the result of which is cached and returned

    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