Exemple #1
0
        public ProcedureDetail UpdatePatient(ProcedureDetail procdetail)
        {
            var session = HttpContext.Current.Session;

            if (session["UserId"] != null)
            {
                userId = session["UserId"].ToString();
            }
            ProcedureDetail procdet = repository.UpdatePatient(procdetail);
            EncounterReport erp     = new EncounterReport();

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

            return(procdet);
        }