Esempio n. 1
0
        /// <summary>
        /// 根据读卡信息查询His接口信息
        /// 2017-12-05 cc
        /// </summary>
        /// <param name="PAT_INDEX_NO">病人ID</param>
        /// <param name="CARD_NO">就诊卡号</param>
        /// <param name="isNowDay">是否查询当天</param>
        /// <returns></returns>
        public static IList <HisPatientInfo> GetListHisPatientInfo(string PAT_INDEX_NO, string CARD_NO, bool isNowDay)
        {
            YHRequest YHReq = new YHRequest(YHRequest.fid_get_hisregist);

            if (isNowDay)
            {
                YHReq.addQuery(YHRequest.item_date, YHRequest.compy_gt, "to_date('" + DateTime.Now.Date.ToString("yyyy-MM-dd") + "','yyyy-MM-dd')", YHRequest.splice_and);
            }
            if (!string.IsNullOrEmpty(PAT_INDEX_NO))
            {
                YHReq.addQuery(YHRequest.item_patient, YHRequest.compy_equals, "'" + PAT_INDEX_NO + "'", YHRequest.splice_and);
            }
            if (!string.IsNullOrEmpty(CARD_NO))
            {
                YHReq.addQuery(YHRequest.item_visit_no, YHRequest.compy_equals, "'" + CARD_NO + "'", YHRequest.splice_and);
            }

            var result = YHMQUtil <HisPatientInfo> .get(YHReq);

            if (result.success)
            {
                return(result.dataList);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 获取读芯片号对象
        /// 2017-11-29 cc
        /// </summary>
        /// <returns></returns>
        public static HisChipInfo GetChipObj()
        {
            if (IsSuccess())
            {
                string    chipnum = GetChipNum();
                YHRequest YHReq   = new YHRequest(YHRequest.fid_get_hischip);
                YHReq.addQuery(YHRequest.item_chip, YHRequest.compy_equals, "'" + chipnum + "'", YHRequest.splice_and);
                var result = YHMQUtil <HisChipInfo> .get(YHReq);

                HisChipInfo hisobj = result.data;

                return(hisobj);
            }
            else
            {
                return(null);
            }
        }