public static DBConnectionObject getInstance() { if (instance == null) { instance = new DBConnectionObject(); } return(instance); }
public string getNextSymptom() { // this will take the current visits symptoms, and decide what next symptom should be asked. DBConnectionObject conn = DBConnectionObject.getInstance(); string suggestedNextSymptom = conn.getDiagnosisWizardSymptomByPreviousResponses(CurrentResults.PreviousResponses); CurrentResults.CurrentBestSymptom = suggestedNextSymptom; return(suggestedNextSymptom); }