Ejemplo n.º 1
0
        public GridIndex()
        {
            AllPatients ap = Global.buildAllData();

            ps = ap.getIndexFile();
            InitializeComponent();
            fillCells("", "");
        }
Ejemplo n.º 2
0
        public static AllPatients buildAllData()
        {
            //read al the folders in ROOT (each folder is a patient)
            FoldersHandler fh  = new FoldersHandler("ROOT");
            List <String>  lsf = fh.getSubFolders();

            //get all the patient in their objects
            AllPatients    ap = new AllPatients("ROOT");
            List <Patient> lp = ap.getPatients();

            //for each patient show all the visits
            for (int i = 0; i < lp.Count; i++)
            {
                Patient      p  = lp[i];
                List <Visit> lv = p.getVisits();
            }

            //create in Global a structure with all the initial info about
            //patient and visitis
            ap.fillIndexFile();
            return(ap);
        }