FindVisit Method

Summary
Finds the visit having the specified Admission ID.
Syntax
C#
C++/CLI
[OperationContractAttribute()] 
[FaultContractAttribute(System.Type)] 
public WCFVisit FindVisit( 
   string admissionID 
) 
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault,  
   Action="",  
   Name="",  
   Namespace="",  
   ProtectionLevel=ProtectionLevel.None,  
   HasProtectionLevel=false)] 
[OperationContractAttribute()] 
WCFVisit^ FindVisit(  
   String^ admissionID 
)  

Parameters

admissionID
Identification number of the visit as assigned by the healthcare provider.

Return Value

The visit if found; null otherwise.

Example
C#
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 VistTest() 
{ 
   try 
   { 
      WCFVisit visit = _BrokerService.FindVisit("VS123"); 
 
      if (visit != null) 
         _BrokerService.DeleteVisit("VS123"); 
 
      visit = new WCFVisit(); 
      visit.AdmissionID = "VS123"; 
      visit.ReferencedPatientSequence = null; 
      _BrokerService.AddVisit(visit); 
 
      visit = _BrokerService.FindVisit("VS123"); 
      if (visit != null) 
      { 
         visit.CurrentPatientLocation = "EXAM 1"; 
         _BrokerService.UpdateVisit("VS123", visit); 
      } 
 
      string[] ids = _BrokerService.GetAdmissionIDs(); 
 
      foreach (string id in ids) 
      { 
         Console.WriteLine(id); 
      } 
   } 
   catch (Exception e) 
   { 
      Console.WriteLine(e.Message); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.23
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Worklist.Wcf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.