Exemplo n.º 1
0
        /// <summary>
        /// 根据当前环境创建CiMrDO对象
        /// ent4BannerDTO 通过传参方式,如果使用本地onSelected方法中获取Ent4BannerDTO,可能出现在本地onSelected方法执行前,已经执行到该方法
        /// </summary>
        /// <returns></returns>
        private CiMrDO CreateCiMrDO(Ent4BannerDTO ent4BannerDTO)
        {
            CiMrDO ciMrDO = new CiMrDO();

            // 当前已选患者,但未保存过病历时,通过当前环境参数构造病历对象
            if (ent4BannerDTO != null)
            {
                // 获取当前登录用户所在院区及科室,这个两个参数确定调用哪个模板
                UserDO user  = this.Context.User;
                string idOrg = this.Context.Org.Id_org;
                string idDep = this.Context.Dept.Id_dep;

                ciMrDO.Createdby   = user.Id_user;
                ciMrDO.Createdtime = DateTime.Now;
                ciMrDO.Id_emp      = user.Id_user;

                // 患者当前科室
                ciMrDO.Id_dep_pat = ent4BannerDTO.Id_dep_phy;
                // 就诊号
                ciMrDO.Id_ent = ent4BannerDTO.Id_ent;
                // 就诊类型
                ciMrDO.Code_entp = ent4BannerDTO.Code_entp;
                // 患者号
                ciMrDO.Id_pat = ent4BannerDTO.Id_pat;
                // 经治医师	取当前登录人
                ciMrDO.Id_treat_doctor = user.Id_user;

                // 医疗记录科室 (当前登录人科室)
                ciMrDO.Id_dep = ent4BannerDTO.Id_dep_phy;
            }

            return(ciMrDO);
        }
Exemplo n.º 2
0
        public CiMrDO GetCiMrDo(string id_mr)
        {
            ciemrCrudService = XapServiceMgr.find <ICiemrCrudService>();
            CiMrDO mrDo = ciemrCrudService.findById(id_mr);

            return(mrDo);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  强制更新CiMrDO的提交状态
        /// </summary>
        /// <param name="CiMrDO"></param>
        /// <returns></returns>
        public void UpdateMrForce(CiMrDO ciMrDo)
        {
            List <object> param = new List <object>();

            si.url = url;
            param.Add(ciMrDo);
            si.invoke <object>("UpdateMrForce", param.ToArray());
        }
Exemplo n.º 4
0
        public CiMrDO StartProcess(string id_user, WfFormInfoCtx formInfo)
        {
            List <object> ps = new List <object>();

            ps.Add(id_user);
            ps.Add(formInfo);
            CiMrDO cimrdo = si.invoke <CiMrDO>("startProcess", ps.ToArray());

            return(cimrdo);
        }
Exemplo n.º 5
0
        public CiMrDO BackTask(string id_user, WfFormInfoCtx formInfo, string taskId)
        {
            List <object> ps = new List <object>();

            ps.Add(id_user);
            ps.Add(formInfo);
            ps.Add(taskId);
            CiMrDO cimrdo = si.invoke <CiMrDO>("backTask", ps.ToArray());

            return(cimrdo);
        }
Exemplo n.º 6
0
 /// <summary>
 /// 根据id值查找临床医疗记录AggDO数据
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CiMrDO findById(String id)
 {
     #region "缓存处理"
     if (ch.IsCached("findById"))
     {
         return(ch.findById(id));
     }
     #endregion
     List <object> param = new List <object>();
     param.Add(id);
     si.url = url_r;
     CiMrDO rtn = si.invoke <CiMrDO>("findById", param.ToArray());
     return(rtn);
 }
Exemplo n.º 7
0
 public VitalSignSave(CiMrDO cimrDO, CimrvtAggDO aggDO)
 {
     CimrDO = cimrDO;
     AggDO  = aggDO;
 }