public Entities.PatientDetails GetPatientDetails(string unitnum, int apptid) { Entities.PatientDetails objPatient = new Entities.PatientDetails(); string assignedBy = ""; string Base64 = string.Empty; if (SessionManager.Instance.ActiveUser != null) { if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false) { assignedBy = SessionManager.Instance.ActiveUser.ToString(); } } string _userlogin = SessionManager.Instance.ActiveUser.userLogin; SessionManager.Instance.SetActivePatient(unitnum, apptid); //SessionManager.Instance.GetActivePatient().LoadFullObject(); SessionManager.Instance.GetActivePatient().BackgroundLoadWork(); RiskApps3.Model.PatientRecord.Patient proband = SessionManager.Instance.GetActivePatient(); Base64 = Helpers.ShowPedigreeImage(proband); objPatient.name = proband.name; objPatient.age = proband.age; objPatient.unitnum = proband.unitnum; objPatient.dob = proband.dob; objPatient.homephone = proband.homephone; objPatient.cellphone = proband.cellphone; objPatient.workphone = proband.workphone; objPatient.PedigreeImage = Base64; /* * var obj = new { * PatientName=proband.name, * age = proband.age, * MRN = proband.unitnum, * DOB = proband.dob, * HomePhone = proband.homephone, * CellPhone = proband.cellphone, * WorkPhone = proband.workphone, * PedigreeImage = Base64 * };*/ return(objPatient); }
public Entities.PatientDetails GetPatientDetails(string unitnum , int apptid ) { Entities.PatientDetails objPatient = new Entities.PatientDetails(); string assignedBy = ""; string Base64 = string.Empty; if (SessionManager.Instance.ActiveUser != null) { if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false) { assignedBy = SessionManager.Instance.ActiveUser.ToString(); } } string _userlogin = SessionManager.Instance.ActiveUser.userLogin; SessionManager.Instance.SetActivePatient(unitnum, apptid); //SessionManager.Instance.GetActivePatient().LoadFullObject(); SessionManager.Instance.GetActivePatient().BackgroundLoadWork(); RiskApps3.Model.PatientRecord.Patient proband = SessionManager.Instance.GetActivePatient(); Base64=Helpers.ShowPedigreeImage(proband); objPatient.name = proband.name; objPatient.age = proband.age; objPatient.unitnum = proband.unitnum; objPatient.dob = proband.dob; objPatient.homephone = proband.homephone; objPatient.cellphone = proband.cellphone; objPatient.workphone = proband.workphone; objPatient.PedigreeImage = Base64; /* var obj = new { PatientName=proband.name, age = proband.age, MRN = proband.unitnum, DOB = proband.dob, HomePhone = proband.homephone, CellPhone = proband.cellphone, WorkPhone = proband.workphone, PedigreeImage = Base64 };*/ return objPatient; }