public EncounterDiagnosis UpdatePatient(EncounterDiagnosis Encdiag)
        {
            var session = HttpContext.Current.Session;

            if (session["UserId"] != null)
            {
                userId = session["UserId"].ToString();
            }
            EncounterDiagnosis encd = _EncDiagnosis.UpdatePatient(Encdiag);
            EncounterReport    erp  = new EncounterReport();

            erp.RefId     = encd._id;
            erp.PatientId = encd.UserId;
            erp.UpdateBy  = userId;
            erp.Action    = "update EncounterDiagnosis";
            var encreports = encrepo.AddEncReport(erp);

            return(encd);
        }
 public EncounterDiagnosisDataAccess()
 {
     encounterDiagnosis = new EncounterDiagnosis();
 }