Ejemplo n.º 1
0
        static public MedCard CreateMedCard(Patient patient,
                                            string shelf)
        {
            MedCard medCard = new MedCard();

            medCard.Illness = new List <Illness>();
            medCard.Patient = patient;
            medCard.Record  = new List <Record>();
            medCard.Shelf   = shelf;
            return(medCard);
        }
Ejemplo n.º 2
0
        static public Record CreateRecord(DateTime date,
                                          Doctor doctor,
                                          string info,
                                          MedCard medCard)
        {
            Record record = new Record();

            record.Date    = date;
            record.Doctor  = doctor;
            record.Info    = info;
            record.MedCard = medCard;
            return(record);
        }