Inserts a patient's record into the broker database.
public void AddPatient(Leadtools.Medical.Worklist.Wcf.Entities.WCFPatient patient)
Public Sub AddPatient( _ByVal patient As Leadtools.Medical.Worklist.Wcf.Entities.WCFPatient _)
public:void AddPatient(Leadtools.Medical.Worklist.Wcf.Entities.WCFPatient^ patient)
patient
The patient record to add.
Shows how to use the patient-specific methods of the broker service.
Imports LeadtoolsImports Leadtools.Medical.Worklist.Wcf.ServiceImports Leadtools.Medical.Worklist.DataAccessLayer.MatchingParametersImports Leadtools.DicomImports Leadtools.Medical.Worklist.Wcf.Entities<TestMethod()> _Public Sub PatientTest()TryDim patient As WCFPatient = Nothing'' Find and delete the patient'patient = _BrokerService.FindPatient("000000", "246")If Not patient Is Nothing Then_BrokerService.DeletePatient("000000", "246")End Ifpatient = 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 Not patient Is Nothing Thenpatient.AdditionalPatientHistory = "Additional History"_BrokerService.UpdatePatient("000000", "246", patient)End If'' List all patient ids'Dim ids As String() = _BrokerService.GetPatientIDs()For Each id As String In idsConsole.WriteLine(id)Next idCatch e As ExceptionDebug.WriteLine(e.Message)End TryEnd Sub
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);}}
|
Products |
Support |
Feedback: AddPatient Method (BrokerService) - Leadtools.Medical.Worklist.Wcf |
Introduction |
Help Version 19.0.2017.3.21
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.