public PatientService(CurrentSession session, int patientId, int moduleId) { int locationId, userId; locationId = session.Facility.Id; patientId = Convert.ToInt32(HttpContext.Current.Session["patientId"]); userId = session.User.Id; IPatientHome pHome = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical"); CurrentPatient = pHome.GetPatientById(patientId); CurrentServiceArea = session.Facility.Modules.Where(m => m.Id == moduleId).FirstOrDefault(); if (CurrentServiceArea != null && CurrentServiceArea.Clinical) { Formset = this.GetFormsForPatientAndModule(locationId, moduleId, userId, this.CurrentPatient); FormUrl = StaticFormMap.FormUrl; this.formLoaded = true; } else { this.formLoaded = false; Formset = null; FormUrl = null; } }
public PatientService(int patientId) { //patientId = Convert.ToInt32(HttpContext.Current.Session["patientId"]); IPatientHome pHome = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome, BusinessProcess.Clinical"); CurrentPatient = pHome.GetPatientById(patientId); }