Пример #1
0
        public MedicationAllergie UpdatePatient(MedicationAllergie medallerg)
        {
            var session = HttpContext.Current.Session;

            if (session["UserId"] != null)
            {
                userId = session["UserId"].ToString();
            }
            MedicationAllergie alg = _Allergies.UpdatePatient(medallerg);
            EncounterReport    erp = new EncounterReport();

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

            return(alg);
        }