Exemplo n.º 1
0
        /// <summary>
        /// 手术
        /// </summary>
        /// <param name="SSYZBQ2SQD01">手术申请单</param>
        /// <param name="pageSource"></param>
        /// <returns></returns>
        public string YZSScs(WK_Operation.Models.BQ2SQD01 SSYZBQ2SQD01, int pageSource = 5)
        {
            HM_Pulic_parameter hmggcs = GetHMJstr(pageSource);

            hmggcs.medicalOrders = new List <HM_YZLB>();
            HM_YZLB drug = null;

            //手术
            if (SSYZBQ2SQD01 != null)
            {
                drug                = new HM_YZLB();
                drug.orderId        = SSYZBQ2SQD01.PDAID;           //医嘱编号
                drug.doctorGuid     = SSYZBQ2SQD01.BQ2YZF03.ZDYSMC; //医生编号
                drug.timelinessFlag = 2;                            //长1期临时2
                drug.orderClass     = 1;                            //医嘱分类1:住院医嘱3:急诊医嘱4:出院医嘱(出院带药 - 质控依赖)
                drug.orderType      = 6;                            //手术
                drug.orderCode      = SSYZBQ2SQD01.BQ2YZF03.SSDBH;  //医嘱代码
                drug.orderContent   = SSYZBQ2SQD01.;                //医嘱内容
                drug.createTime     = SSYZBQ2SQD01.BQ2YZF03.KDRQ;   //医嘱日期
                drug.executeTime    = SSYZBQ2SQD01.BQ2YZF03.SSSJ;   //手术时间
                // drug.stopTime = "";//医嘱停止时间
                drug.orderFlag = 1;                                 //医嘱操作标识 新增1
                hmggcs.medicalOrders.Add(drug);
            }
            string YPJsonStr = JsonConvert.SerializeObject(hmggcs);

            return(YPJsonStr);
        }
Exemplo n.º 2
0
        public string YZJYcs(List <BQ2YZD01> JY_BQ2YZD01, List <BQ2YZD01> JC_BQ2YZD01, BQ2YZD01 HL_BQ2YZD01, WK_Operation.Models.BQ2SQD01 SSYZBQ2SQD01, int pageSource = 3)
        {
            HM_Pulic_parameter hmggcs = GetHMJstr(pageSource);

            hmggcs.medicalOrders = new List <HM_YZLB>();
            HM_YZLB drug = null;

            //检验
            if (JY_BQ2YZD01 != null && JY_BQ2YZD01.Count > 0)
            {
                foreach (var item in JY_BQ2YZD01)
                {
                    drug                = new HM_YZLB();
                    drug.orderId        = item.NewItemID;             //医嘱编号
                    drug.doctorGuid     = item.KDYS.ToString();       //医生编号
                    drug.timelinessFlag = Convert.ToInt32(item.YZLX); //长1期临时2
                    drug.orderClass     = 1;                          //医嘱分类1:住院医嘱3:急诊医嘱4:出院医嘱(出院带药 - 质控依赖)
                    drug.orderType      = 1;                          //检验
                    drug.orderCode      = item.YZID.ToString();       //医嘱代码
                    drug.orderContent   = item.Content;               //医嘱内容
                    drug.createTime     = item.YZRQ;                  //医嘱日期
                    drug.executeTime    = item.YZZXRQ;                //医嘱执行时间
                    // drug.stopTime = "";//医嘱停止时间
                    drug.orderFlag = 1;                               //医嘱操作标识 新增1
                    hmggcs.medicalOrders.Add(drug);
                }
            }

            string YPJsonStr = JsonConvert.SerializeObject(hmggcs);

            return(YPJsonStr);
        }