/// <summary> /// use this method to create a new patient with a desired pathology /// </summary> /// <param name="pathology">pathology enumernation type</param> public void NewPatient(int pathology) { path = new Pathology(pathology); /* if (pathology == (int)Pathology_Cases.Unilateral_Otosclerosis) { patType = "Woman"; System.Diagnostics.Debug.WriteLine("Patient type in Patient class: " + patType); }*/ switch (pathology) { case ((int)Pathology_Cases.Bilateral_Otosclerosis): case ((int)Pathology_Cases.Unilateral_Otosclerosis): case ((int)Pathology_Cases.Presbyacusis): patType = "Woman"; break; case ((int)Pathology_Cases.Noise_Induced_Trauma): case ((int)Pathology_Cases.Acoustic_Tumor): case ((int)Pathology_Cases.Sudden_Onset): patType = "Man"; break; case ((int)Pathology_Cases.Unilateral_Otitis_Media): case ((int)Pathology_Cases.Microtia): case ((int)Pathology_Cases.Ossicular_Discontinuity): patType = "Boy"; break; case ((int)Pathology_Cases.Progressive_Loss): case ((int)Pathology_Cases.Bilateral_Otitis_Media): case ((int)Pathology_Cases.Menieres_Disease): patType = "Girl"; break; } //showCaseHistory(); validPatient = true; }
public EvalOutput(Pathology path) { pathology = path; StudentAudiogram = new int[6, 2, 2, 2]; StudentAudiometer = new EvalAudiometer[6, 2, 2, 2]; StudentMaskedMinimums = new int[6, 2, 2]; StudentMaskedMaximums = new int[6, 2, 2]; for (int i = 0; i < 6; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 2; k++) { StudentMaskedMinimums[i, j, k] = int.MaxValue; } } } }