public bool analyzePath(String path) { if (informationCSVMerger == null) { informationCSVMerger = new InformationCSVMerger <CSVRecord>(CSVSaver.CsvPath); } CSVRecord = null; CSVRecord = InformationCSVMerger <CSVRecord> .getRecord(path, informationCSVMerger.getRecords()); if (CSVRecord == null) { return(false); } else { return(true); } }
private void loadPatientInfo() { PatientCountValue.Text = "" + pathStorer.currentPath; PatientRecord rec = InformationCSVMerger <PatientRecord> .getRecord(pathStorer.paths[pathStorer.currentPath], cSVMerger.getRecords()); if (rec == null) { SexValue.Text = ""; AgeValue.Text = ""; ICDValue.Text = ""; DescriptionBox.Text = ""; } else { SexValue.Text = rec.sex; AgeValue.Text = rec.age; ICDValue.Text = rec.correct_icd_code; DescriptionBox.Text = rec.description1; } CSVStructure = CSVStructure.getStructure(pathStorer.getCurrentRecord()); loadImageInfo(); }