/// <summary>
        /// 患者-体重曲线
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <IActionResult> GetWeightCharts(BaseInput input)
        {
            var list = _patVisitApp.GetList()
                       .Where(t => t.F_Pid == input.KeyValue && t.F_DialysisEndTime != null && t.F_WeightTQ != null && t.F_WeightTH != null)
                       //.Where(t => t.F_Pid.Equals(input.keyValue))
                       .OrderByDescending(t => t.F_VisitDate)
                       .Take(15)
                       .Select(t => new
            {
                t.F_VisitDate,
                t.F_WeightTQ,
                t.F_WeightTH
            })
                       .ToList();
            var ideaWeight = await _patientApp.GetIdeaWeight(input.KeyValue);

            var data = new
            {
                ideaWeight,
                count = list.Count,
                rows  = list.Select(t => new
                {
                    visitDate = t.F_VisitDate.ToDate(),
                    weightTQ  = t.F_WeightTQ.ToFloat(2),
                    weightTH  = t.F_WeightTH.ToFloat(2),
                })
            };

            return(Ok(data));
        }
        /// <summary>
        /// 查询干体重
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <IActionResult> GetIdeaWeight(BaseInput input)
        {
            var data = new
            {
                ideaWeight = await _patientApp.GetIdeaWeight(input.KeyValue)
            };

            return(Ok(data));
        }
        public async Task <IActionResult> GetIdeaWeightJsonById(string keyValue)
        {
            var data = await _patientApp.GetIdeaWeight(keyValue);

            return(Content(data.ToJson()));
        }