using Nirvana.Common.ApiBase;
using System.Collections.Generic;
using System.Threading.Tasks;
using YBDevice.Entity;

namespace YBDevice.NApi.Application.Prescription
{
    /// <summary>
    /// 处方
    /// </summary>
    public interface IPrescriptionService
    {
        /// <summary>
        /// 获取儿童处方
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ChildPrescriptionS2CDto> Child(ChildPrescriptionS2SDto data);
        /// <summary>
        /// 获取安邦儿童处方
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ChildPrescriptionS2CDto> AB_Child(ChildPrescriptionS2SDto data);
        /// <summary>
        /// 获取儿童体质评测列表
        /// </summary>
        /// <param name="isrestart">是否重新测评,1-是,0-否</param>
        /// <param name="familyid">家庭成员ID</param>
        /// <returns></returns>
        Task<ResultInfo> GetChildPhysiqueAsync(int isrestart,int familyid);
        /// <summary>
        /// 计算儿童体质
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> ChildPhysiqueAsync(ChildPhysiqueCalcC2SDto data);
        /// <summary>
        /// 获取当前用户的儿童体质结果
        /// </summary>
        /// <param name="familyid">家庭成员ID</param>
        /// <returns></returns>
        Task<string> GetChildPhysiqueResultAsync(int familyid);
    }
}
