UpdatePatient Method

Summary
Updates the patient record having the specified Patient ID and the name of the issuer of the Patient ID.
Syntax
C#
C++/CLI
[FaultContractAttribute(System.Type)] 
[OperationContractAttribute()] 
public void UpdatePatient( 
   string origPatientId, 
   string origIssuerOfPatientId, 
   WCFPatient patient 
) 
[OperationContractAttribute()] 
[FaultContractAttribute(DetailType=Leadtools.Medical.Worklist.Wcf.Utils.ApplicationFault,  
   Action="",  
   Name="",  
   Namespace="",  
   ProtectionLevel=ProtectionLevel.None,  
   HasProtectionLevel=false)] 
void UpdatePatient(  
   String^ origPatientId, 
   String^ origIssuerOfPatientId, 
   WCFPatient^ patient 
)  

Parameters

origPatientId
The original primary hospital identification number or code for the Patient.

origIssuerOfPatientId
The original name of the healthcare provider that issued the Patient ID.

patient
The patient record to update.

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 PatientTest() 
{ 
   try 
   { 
      WCFPatient patient = null; 
      // 
      // Find and delete the patient 
      // 
 
      patient = _BrokerService.FindPatient("000000", "246"); 
      if (patient != null) 
         _BrokerService.DeletePatient("000000", "246"); 
 
      patient = new WCFPatient(); 
      patient.IssuerOfPatientID = "246"; 
      patient.PatientID = "000000"; 
      patient.PatientNameFamilyName = "Family"; 
      patient.PatientNameGivenName = "Given"; 
      patient.PatientSex = "M"; 
 
      // 
      // Add the patient 
      // 
 
      _BrokerService.AddPatient(patient); 
 
      // 
      // Search for the patient 
      // 
 
      patient = _BrokerService.FindPatient("000000", "246"); 
      if (patient != null) 
      { 
         patient.AdditionalPatientHistory = "Additional History"; 
         _BrokerService.UpdatePatient("000000", "246", patient); 
      } 
 
      // 
      // List all patient ids 
      // 
 
      string[] ids = _BrokerService.GetPatientIDs(); 
 
      foreach (string id in ids) 
      { 
         Console.WriteLine(id); 
      } 
   } 
   catch (Exception e) 
   { 
      Debug.WriteLine(e.Message); 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.