Exemple #1
0
        /// <summary>
        /// 事前オーダー登録(オーダーID返却)
        /// </summary>
        /// <param name="order"></param>
        /// <param name="orderid"></param>
        /// <returns>処理結果クラス</returns>
        public ResultData SetOrder_Serv(Order order, out int orderid)
        {
            var ret = new ResultData();

            orderid = 0;
            try
            {
                if (order.Key == 0)
                {
                    Search search = new Search();

                    search.PatID = order.PatID;

                    Patient[] tmpList = Pat.GetPatientList(search);

                    if (tmpList == null || tmpList.Length == 0)
                    {
                        order.Key = Pat.SetPatient(order);
                    }
                }
                else
                {
                    Pat.SetPatient(order);
                }

                orderid = Orders.SetOrder_RetId(order);

                // 事前オーダー登録メソッド呼び出し(内部関数)
                if (orderid == 0)
                {
                    ret.Message = "オーダー登録失敗:" + order.PatID + ":" + order.Modality + ":" + order.Date;
                }
                else
                {
                    ret.Result = true;
                }
            }
            catch (Exception e)
            {
                LogControl.WriteLog(LogType.ERR, "SetOrder_Serv", e.Message);
                ret.Message = e.Message;
            }

            return(ret);
        }
Exemple #2
0
        /// <summary>
        /// 患者一覧取得
        /// </summary>
        /// <param name="search">検索項目クラス</param>
        /// <param name="patientList">o:患者情報一覧</param>
        /// <returns>処理結果クラス</returns>
        public ResultData GetPatient_Serv(Search search, out Patient[] patientList)
        {
            var ret = new ResultData();

            patientList = null;

            try
            {
                // 事前登録オーダーリスト取得メソッド呼び出し(内部関数)
                patientList = Pat.GetPatientList(search);

                ret.Result = true;
            }
            catch (Exception e)
            {
                LogControl.WriteLog(LogType.ERR, "GetPatient_Serv", e.Message);
                ret.Message = e.Message;
            }

            return(ret);
        }