/// <summary>
 /// Finds the patient by ambulant.
 /// </summary>
 /// <param name="ambulant">The ambulant.</param>
 /// <returns></returns>
 public IList<PatientData> FindPatientByAmbulant(Ambulant ambulant)
 {
     using (ChannelFactory<ISPDBL> cf = new ChannelFactory<ISPDBL>(binding, endpointAddress)) {
         ISPDBL spdBL = cf.CreateChannel();
         return spdBL.FindPatientByAmbulant(ambulant);
     }
 }
 /// <summary>
 /// Finds the patient by ambulant.
 /// </summary>
 /// <param name="ambulant">The ambulant.</param>
 /// <returns></returns>
 public override IList<PatientData> FindPatientByAmbulant(Ambulant ambulant)
 {
     IList<PatientData> patients = new List<PatientData>();
     foreach (PatientData patient in this.GetAllPatients()) {
         if (patient.Ambulant == ambulant) {
             patients.Add(patient);
         }
     }
     return patients;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PatientData"/> class.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="firstname">The firstname.</param>
 /// <param name="surname">The surname.</param>
 /// <param name="dateOfBirth">The date of birth.</param>
 /// <param name="sex">The sex.</param>
 /// <param name="phone">The phone.</param>
 /// <param name="weight">The weight.</param>
 /// <param name="address">The address.</param>
 /// <param name="residentOfAsmara">The resident of asmara.</param>
 /// <param name="ambulant">The ambulant.</param>
 /// <param name="finished">The finished.</param>
 /// <param name="linz">The linz.</param>
 /// <param name="waitListStartDate">The wait List Start Date.</param>
 public PatientData(long id, string firstname, string surname, DateTime dateOfBirth,
     Sex sex, /*string city, string street,*/ string phone, int weight, string address,
     ResidentOfAsmara residentOfAsmara, Ambulant ambulant, Finished finished, Linz linz, DateTime? waitListStartDate)
 {
     this.id = id;
     this.firstName = firstname;
     this.surName = surname;
     this.dateOfBirth = dateOfBirth;
     this.sex = sex;
     this.phone = phone;
     this.weight = weight;
     this.address = address;
     this.residentOfAsmara = residentOfAsmara;
     this.ambulant = ambulant;
     this.finished = finished;
     this.Linz = linz;
     this.waitListStartDate = waitListStartDate;
 }
 /// <summary>
 /// Finds the patient by ambulant.
 /// </summary>
 /// <param name="ambulant">The ambulant.</param>
 /// <returns></returns>
 public virtual IList<PatientData> FindPatientByAmbulant(Ambulant ambulant)
 {
     throw new NotImplementedException();
 }