示例#1
0
 //constructor to fill all fields of the visit
 public Entry(int medical_Card_ID, DateTime date, Family_Doctor doctor, string diagnosis)
 {
     this.medical_Card_ID = medical_Card_ID;
     this.date            = date;
     this.doctor          = doctor;
     this.diagnosis       = diagnosis;
 }
示例#2
0
 /*calling the base constructor, assignment of the  patient_ID, Doctor, adding a patient
  * to the doctor's list of patients, starting a medical card*/
 public Patient(string name, DateTime date_of_birth, string gender, string phone_number, string email, Family_Doctor Doctor)
     : base(name, date_of_birth, gender, phone_number, email)
 {
     this._patient_ID = counter++;
     this.Doctor      = Doctor;
     Doctor.Add_Patient(this);
     Doctor._patients_qantity++;
     Card = new Medical_Card(this);
 }
示例#3
0
 //function of adding doctor to this week
 public void Add_Doctor(Family_Doctor doctor, List <Records> free_rec)
 {
     week_doctors.Add(doctor);
     week.Add(free_rec);
     this._doctors_quatnity += 1;
     if (all_doctors.IndexOf(doctor) == -1)
     {
         all_doctors.Add(doctor);
     }
 }
示例#4
0
 //calling the base constructor  + assign thenurce to a doctor
 public Nurse(string name, DateTime date_of_birth, string gender, string phone_number, string email, Family_Doctor doctor)
     : base(name, date_of_birth, gender, phone_number, email)
 {
     this.doctor = doctor;
 }
示例#5
0
        //function of adding the information about visit to the medical card
        public void Add_Entry(DateTime date, Family_Doctor doctor, string diagnosis)
        {
            Entry new_entry = new Entry(_patient_ID, date, doctor, diagnosis);

            Card.Add(new_entry);
        }