/// <summary>
        /// 获取住院明细
        /// </summary>
        /// <param name="user"></param>
        /// <param name="businessId"></param>
        /// <returns></returns>
        public List <InpatientInfoDetailDto> GetInpatientInfoDetail(UserInfoDto user, string businessId)
        {
            var resultData = new List <InpatientInfoDetailDto>();

            var queryParam = new DatabaseParam()
            {
                Field     = "BusinessId",
                Value     = businessId,
                TableName = "Inpatient"
            };
            var inpatientData = _hisSqlRepository.QueryDatabase(new InpatientEntity(), queryParam);

            if (inpatientData == null)
            {
                throw new Exception("该病人未在中心库中,请检查是否办理医保入院!!!");
            }
            //获取当前病人
            var inpatient     = inpatientData.FirstOrDefault();
            var transactionId = Guid.NewGuid().ToString("N");
            var xmlData       = new MedicalInsuranceXmlDto();

            xmlData.BusinessId        = businessId;
            xmlData.HealthInsuranceNo = "31";
            xmlData.TransactionId     = transactionId;
            xmlData.AuthCode          = user.AuthCode;
            xmlData.UserId            = user.UserId;
            xmlData.OrganizationCode  = user.OrganizationCode;
            var data = _webServiceBasic.HIS_Interface("39", JsonConvert.SerializeObject(xmlData));
            InpatientDetailListJsonDto dataValue = JsonConvert.DeserializeObject <InpatientDetailListJsonDto>(data.Msg);

            if (dataValue != null)
            {
                resultData = AutoMapper.Mapper.Map <List <InpatientInfoDetailDto> >(dataValue.DetailList);
                var saveParam = new SaveInpatientInfoDetailParam()
                {
                    DataList          = resultData,
                    HospitalizationId = inpatient.HospitalizationId,
                    User = user
                };
                _hisSqlRepository.SaveInpatientInfoDetail(saveParam);
                //    //  var msg = "获取住院号【" + resultFirst.住院号 + "】,业务ID【" + param.业务ID + "】的时间段内的住院费用成功,共" + result.Count +
                //    //          "条记录";
                //}
            }

            return(resultData);
        }