Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }
        /// <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);
        }