Esempio n. 1
0
 public Doctor(string jmbg, string name, string surname)
 {
     Jmbg    = new Jmbg(jmbg);
     Name    = name;
     Surname = surname;
     Validate();
 }
Esempio n. 2
0
 public Patient(PatientMemento memento)
 {
     Name            = memento.Name;
     Surname         = memento.Surname;
     Jmbg            = new Jmbg(memento.Jmbg);
     BloodType       = memento.BloodType;
     RhFactor        = memento.RhFactor;
     Allergies       = memento.Allergies;
     MedicalHistory  = memento.MedicalHistory;
     InsuranceNumber = new InsuranceNumber(memento.InsuranceNumber);
     Examinations    = memento.Examinations.Select(e => new Examination(e));
     Therapies       = memento.Therapies.Select(t => new Therapy(t));
     Validate();
 }