public void addEvaluation(string clientId, string episode_number) { EvaluationDataAccess eda = new EvaluationDataAccess(clientId, episode_number); Patient patient = new Patient(); subsetOfEvaluation = new List<Evaluation>(); patient.PATID = clientId; patient.activeOutPatientEpisodeCount = eda.getClientOpenOutPatientEpisodes(); patient.activeInPatientEpisodeCount = eda.getClientOpenInPatientEpisodes(); SetOnlyOneEpisode(patient); PopulateList(eda, patient); evaluationList = eda.EvaluationList; }
private void SetOnlyOneEpisode(Patient patient) { if (patient.activeInPatientEpisodeCount + patient.activeOutPatientEpisodeCount < 2) OnlyOneEpisode = true; else OnlyOneEpisode = false; }
private void PopulateList(EvaluationDataAccess eda, Patient patient) { if(OnlyOneEpisode) PopulateForSingleEpisode(eda, patient); else PopulateForMultipleEpisodes(eda, patient); }
private void PopulateForSingleEpisode(EvaluationDataAccess eda, Patient patient) { PopulateForMultipleEpisodes(eda, patient); eda.getCfarEvaluation(); eda.getFarsEvaluation(); eda.getMHOutcomesEvaluation(); eda.getASAMEvaluation(); eda.getLastCfarEvaluation(); eda.getLastFarsEvaluation(); eda.getLastMHOutcomesEvaluation(); eda.getLastASAMEvaluation(); }
private void PopulateForMultipleEpisodes(EvaluationDataAccess eda, Patient patient) { eda.getAdultCaseManagmentEvaluation(); eda.getPsychosocialHistoryAssessmentEvaluation(); eda.getPsychiatricEvaluation(); eda.getSCSAssesmentEvaluation(); eda.getSubstanceAbuseAssessmentEvaluation(); eda.getCrisisAssessmentEvaluation(); eda.getMentalStatusAssessmentEvaluation(); eda.getDiagnosticAssessmentEvaluation(); eda.getNCFASFamilyAssessmentEvaluation(); eda.getStrengthNeedsCultureAssessmentEvaluation(); eda.getFamilyIntegratedServicesEvaluation(); eda.getChildIntegratedServicesEvaluation(); eda.getAdultCrisisServicesEvaluation(); eda.getIntegratedClinicalUpdateEvaluation(); eda.getAdultCertificationEvaluation(); eda.getMedicalProgressNote(); eda.getCSUPsychiatricProgressNote(); eda.getAmbulatoryProgressNote(); }