/// <summary>
        /// 超过提交时限,获取应该提交的时间
        /// </summary>
        /// <param name="p_strRegisterID">入院登记号</param>
        /// <param name="p_strSetID">SetID</param>
        /// <param name="p_dtmMofifyDate">修改时间</param>
        /// <returns></returns>
        public long m_lngGetAboveTimeModifyDate(string p_strRegisterID, string p_strSetID, out DateTime p_dtmMofifyDate)
        {
            p_dtmMofifyDate = DateTime.MinValue;
            if (p_strRegisterID == null || p_strRegisterID == string.Empty ||
                p_strSetID == null || p_strSetID == string.Empty)
            {
                return(-1);
            }
            long lngRes = 0;

            try
            {
                clsPublicMiddleTier objMid =
                    (clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPublicMiddleTier));

                string strReturn = "";
                lngRes = objMid.m_lngGetConfigBySettingID(p_strSetID, out strReturn);

                clsPatientManagerService objServ =
                    (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

                DateTime dtOut = new DateTime(1900, 1, 1);
                lngRes = objServ.m_lngGetOutHospitalDate(p_strRegisterID, out dtOut);

                if (strReturn != "" && dtOut != new DateTime(1900, 1, 1))
                {
                    p_dtmMofifyDate = dtOut.AddHours(double.Parse(strReturn));
                }
            }
            catch
            {
                return(-1);
            }
            return(lngRes);
        }
Beispiel #2
0
        /// <summary>
        /// 获取病人入院登记号
        /// </summary>
        /// <param name="p_strPatientID">病人ID</param>
        /// <param name="p_strInDate">HIS入院日期</param>
        /// <param name="p_strRegisterID">入院登记号</param>
        /// <returns></returns>
        public long m_lngGetRegisterIDByPatient(string p_strPatientID, string p_strInDate, out string p_strRegisterID)
        {
            string strRegisterID = "";
            long   lngRes        = 0;

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            lngRes = objServ.m_lngGetRegisterIDByPatient(p_strPatientID, p_strInDate, out p_strRegisterID);
            return(lngRes);
        }
Beispiel #3
0
        /// <summary>
        /// 病案首页查询
        /// </summary>
        /// <param name="p_strDeptId">部门ID</param>
        /// <param name="p_strPatantId">病人ID</param>
        /// <param name="p_dtbResult">返回查询结果</param>
        /// <returns></returns>
        public long m_lngHospitalQuery(string p_strDeptId, string p_strPatantId, out DataTable p_dtbResult)
        {
            p_dtbResult = null;

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            long lngRes = objServ.m_lngHospitalQuery(p_strDeptId, p_strPatantId, out p_dtbResult);

            return(lngRes);
        }
Beispiel #4
0
        /// <summary>
        /// 获取转科情况
        /// </summary>
        /// <param name="p_strPatientID">病人ID</param>
        /// <param name="p_strInPatientDate">住院登记表中的住院日期</param>
        /// <param name="p_strRegisterID">住院登记号</param>
        /// <param name="p_objDeptInstance">转科情况</param>
        /// <returns></returns>
        public long m_lngGetInHospitalMainTransDeptInstance(string p_strPatientID, string p_strInPatientDate, out string p_strRegisterID, out clsInHospitalMainTransDeptInstance p_objDeptInstance)
        {
            p_strRegisterID = "";
            long lngRes = 0;

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            lngRes = objServ.m_lngGetRegisterIDByPatient(p_strPatientID, p_strInPatientDate, out p_strRegisterID);

            lngRes = m_lngGetInHospitalMainTransDeptInstance(p_strRegisterID, out p_objDeptInstance);
            //objServ.Dispose();
            return(lngRes);
        }
        public long m_lngGetEMRInPatientInfo(string p_strRegisterID,
                                             out string p_strEMRInPatientID,
                                             out DateTime p_dtmEMRInDate)
        {
            p_strEMRInPatientID = string.Empty;
            p_dtmEMRInDate      = new DateTime(1900, 1, 1);

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            long lngRes = objServ.m_lngGetEMRInPatientInfo(p_strRegisterID, out p_strEMRInPatientID, out p_dtmEMRInDate);

            objServ = null;
            return(lngRes);
        }
        /// <summary>
        /// 获取病人出院时间,暂时先在各个窗体查询
        /// </summary>
        /// <returns></returns>
        private long m_mthGetSetlectedOutDate(out DateTime m_dtmOutHospitalDate)
        {
            m_dtmOutHospitalDate = new DateTime(1900, 1, 1);
            string strRegisterID             = "";
            long   lngRes                    = 0;
            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));


            lngRes = objServ.m_lngGetRegisterIDByPatient(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmHISInDate.ToString("yyyy-MM-dd HH:mm:ss"), out strRegisterID);

            lngRes  = objServ.m_lngGetOutHospitalDate(strRegisterID, out m_dtmOutHospitalDate);
            objServ = null;
            return(lngRes);
        }
Beispiel #7
0
        //protected override string m_StrRecorder_ID
        //{
        //    get
        //    {
        //        if (m_txtDoctorSign.Tag != null)
        //            return ((clsEmrEmployeeBase_VO)m_txtDoctorSign.Tag).m_strEMPNO_CHR.Trim();
        //        return "";
        //    }
        //}
        #endregion 属性

        /// <summary>
        /// 获取病人出院时间,暂时先在各个窗体查询
        /// </summary>
        /// <returns></returns>
        private long m_mthGetSetlectedOutDate()
        {
            m_dtmOutHospitalDate = new DateTime(1900, 1, 1);
            string strRegisterID             = "";
            long   lngRes                    = 0;
            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));


            //lngRes = objServ.m_lngGetRegisterIDByPatient(m_objCurrentPatient.m_StrPatientID, m_objCurrentPatient.m_DtmSelectedHISInDate.ToString("yyyy-MM-dd HH:mm:ss"), out strRegisterID);

            lngRes = objServ.m_lngGetOutHospitalDate(MDIParent.m_objCurrentPatient.m_strREGISTERID_CHR, out m_dtmOutHospitalDate);

            if (m_dtmOutHospitalDate == DateTime.MinValue || m_dtmOutHospitalDate == new DateTime(1900, 1, 1))
            {
                lngRes = objServ.m_lngGetPrepOutHospitalDate(strRegisterID, out m_dtmOutHospitalDate);
            }
            objServ = null;
            return(lngRes);
        }
Beispiel #8
0
        /// <summary>
        /// 获取查询出的病人信息
        /// </summary>
        /// <param name="p_strPatientID"></param>
        /// <param name="p_objPatient"></param>
        public void m_mthInitPatientInfo(string p_strPatientID, string p_strPatientName, out clsPatient p_objPatient)
        {
            p_objPatient = null;
            if (p_strPatientID == null)
            {
                return;
            }

            clsPatientManagerService objServ =
                (clsPatientManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPatientManagerService));

            string strEMRID = null;
            long   m_lngRes = objServ.m_lngGetEMRIDByHISID(p_strPatientID, out strEMRID);

            if (strEMRID != null)
            {
                clsPeopleInfo objPeo = new clsPeopleInfo();
                objPeo.m_StrLastName = p_strPatientName;
                p_objPatient         = new clsPatient(strEMRID, p_strPatientID.Trim(), objPeo);
            }
        }