예제 #1
0
        public OrderItemViewModel(Ent4BannerDTO ent4BannerDto, BaseContext context, bool isOutPress = false)
        {
            this.id_en     = ent4BannerDto.Id_ent;
            this.code_entp = ent4BannerDto.Code_entp;
            this.context   = context;

            if (isOutPress)
            {//出院带药
                emsAppModeEnum = EmsAppModeEnum.OUTHEMSAPPMODE;
            }
            else if (EnDictCodeConst.SD_ENTP_INPATIENT == this.code_entp)//住院
            {
                emsAppModeEnum = EmsAppModeEnum.IVEMSAPPMODE;
            }
            else
            {//门诊或其他
                emsAppModeEnum = EmsAppModeEnum.SVEMSAPPMODE;
            }

            this.udidocService                = XapServiceMgr.find <IUdidocCrudService>();
            this.orderItemMService            = XapServiceMgr.find <ICiorderMDOCrudService>();
            this.maintainService              = XapServiceMgr.find <ICiOrdMaintainService>();
            this.entdiCrudService             = XapServiceMgr.find <IEntdiCrudService>();
            this.diagservice                  = XapServiceMgr.find <ICidiagCrudService>();
            this.qryService                   = XapServiceMgr.find <ICiorderCrudService>();
            this.bsservice                    = XapServiceMgr.find <IBsQueryService>();
            this.ciOrderQryService            = XapServiceMgr.find <ICiOrdQryService>();
            this.bdHpUnlimitDrugDoCrudService = XapServiceMgr.find <IBdHpUnlimitDrugDOCrudService>();

            OrderSequenceModel = this.ciOrderQryService.getOrderSequenceMode();
        }
예제 #2
0
        /// <summary>
        /// 构造临床就诊上下文信息
        /// </summary>
        /// <param name="ent4BannerDTO">当前患者的banner对象</param>
        /// <param name="emsAppModeEnum">医疗单类型:简洁版、智慧版</param>
        /// <param name="eu_orsrcmdtp">医嘱数据来源</param>
        /// <param name="context">当前上下文环境</param>
        /// <returns>CiEnContextDTO 包含医疗单类型属性</returns>
        public static CiEnContextDTO GetCiEnContext(Ent4BannerDTO ent4BannerDTO, EmsAppModeEnum emsAppModeEnum, string eu_orsrcmdtp, BaseContext context = null)
        {
            // TODO 需要增加校验枚举类型是否在枚举对象属性中 OrSourceFromEnum

            CiEnContextDTO conetxtDTO = GetCiEnContext(ent4BannerDTO, emsAppModeEnum, context);

            conetxtDTO.Eu_orsrcmdtp = eu_orsrcmdtp; // 医疗单应用场景
            return(conetxtDTO);
        }
예제 #3
0
        /// <summary>
        /// 构造临床就诊上下文信息,包含保外诊断信息
        /// </summary>
        /// <param name="ent4BannerDTO">当前患者的banner对象</param>
        /// <param name="emsAppModeEnum">医疗单类型:简洁版、智慧版</param>
        /// <param name="context">当前上下文环境</param>
        /// <returns>CiEnContextDTO 不包含医嘱数据来源(Eu_orsrcmdtp)属性,需要单独设置</returns>
        public static CiEnContextDTO GetCiEnContext(Ent4BannerDTO ent4BannerDTO, EmsAppModeEnum emsAppModeEnum, BaseContext context = null)
        {
            CiEnContextDTO contextDTO = GetCiEnContext(ent4BannerDTO, context);

            contextDTO.Emsappmode = (int)emsAppModeEnum; // 医疗单应用场景
            if (contextDTO.Fg_hpfundpay == FBoolean.True)
            {
                ICidiagQryService cidiagQryService = XapServiceMgr.find <ICidiagQryService>();
                // 判断是否存在保外诊断
                CiDiagItemDO[] cidiagItems = cidiagQryService.getHpjudgetpCiDiagItems(ent4BannerDTO.Id_ent);
                CiEnContextUtil.SetHpCiDiagItem(contextDTO, cidiagItems);
            }
            return(contextDTO);
        }
예제 #4
0
        public static SrvMatchEmsParamDTO GetSrvMatchEmsParamDTO(String id_org, String id_grp, String id_dept, String id_emp, String code_entp, String sd_srvtp, String id_srv, EmsAppModeEnum emsAppMode)
        {
            SrvMatchEmsParamDTO dto = new SrvMatchEmsParamDTO();

            dto.Id_org     = id_org;
            dto.Id_grp     = id_grp;
            dto.Id_dept    = id_dept;
            dto.Id_emp     = id_emp;
            dto.Code_entp  = code_entp;
            dto.Sd_srvtp   = sd_srvtp;
            dto.Id_srv     = id_srv;
            dto.Dt_or      = logic.GetServerDataTime();
            dto.Emsappmode = (int)emsAppMode;

            return(dto);
        }