Esempio n. 1
0
 public void AddChild(ICodelist child)
 {
     if (Examinations == null)
     {
         Examinations = new List <Examination>();
     }
     Examinations.Add((Examination)child);
 }
Esempio n. 2
0
        private void SetExaminations()
        {
            var ex = new Examination
            {
                Id = 1,
                ExaminationDate = DateTime.Parse("12.04.2014"),
                DiagnosisId     = 2,
                HealthGroupId   = 1,
                PatientId       = 2,
                DoctorId        = 2
            };

            Examinations.Add(ex);

            ex = new Examination
            {
                Id = 2,
                ExaminationDate = DateTime.Parse("02.02.2016"),
                DiagnosisId     = 1,
                HealthGroupId   = 2,
                PatientId       = 3,
                DoctorId        = 1
            };
            Examinations.Add(ex);

            ex = new Examination
            {
                Id = 3,
                ExaminationDate = DateTime.Parse("11.10.2017"),
                DiagnosisId     = 3,
                HealthGroupId   = 3,
                PatientId       = 1,
                DoctorId        = 3
            };
            Examinations.Add(ex);

            ex = new Examination
            {
                Id = 4,
                ExaminationDate = DateTime.Parse("01.01.2018"),
                DiagnosisId     = 1,
                HealthGroupId   = 3,
                PatientId       = 1,
                DoctorId        = 2
            };
            Examinations.Add(ex);

            ex = new Examination
            {
                Id = 5,
                ExaminationDate = DateTime.Parse("14.11.2019"),
                DiagnosisId     = 3,
                HealthGroupId   = 3,
                PatientId       = 1,
                DoctorId        = 1
            };
            Examinations.Add(ex);
        }
Esempio n. 3
0
 public Patient(string name, string surName, string lastName, Sex sex, DateTime birthDate, IEnumerable <Examination> examinations)
     : this(name, surName, lastName, sex, birthDate)
 {
     if (examinations != null)
     {
         foreach (Examination item in examinations)
         {
             Examinations.Add(item);
         }
     }
 }
Esempio n. 4
0
 public CardViewModel(DataSet data, uint id)
 {
     Id        = id;
     PacientId = (uint)data.Tables[0].Rows[0]["id"];
     Name1     = (string)data.Tables[0].Rows[0]["name1"];
     Name2     = (string)data.Tables[0].Rows[0]["name2"];
     Name3     = (string)data.Tables[0].Rows[0]["name3"];
     for (int i = 0; i < data.Tables[1].Rows.Count; i++)
     {
         Allergies.Add(new Allergy(data.Tables[1].Rows[i]));
     }
     for (int i = 0; i < data.Tables[2].Rows.Count; i++)
     {
         Vaccinations.Add(new Vaccination(data.Tables[2].Rows[i]));
     }
     for (int i = 0; i < data.Tables[3].Rows.Count; i++)
     {
         Examinations.Add(new Examination(data.Tables[3].Rows[i]));
     }
     for (int i = 0; i < data.Tables[4].Rows.Count; i++)
     {
         Diagnoses.Add(new Diagnose(data.Tables[4].Rows[i]));
     }
 }