Beispiel #1
0
        public ApiResult GetMyMemberDDL([FromUri] DoctorMemberCondition condition)
        {
            doctorMemberService = new DoctorMemberService(CurrentOperatorUserID);
            condition.DoctorID  = CurrentOperatorDoctorID;
            var result = doctorMemberService.GetMyMemberDDL(condition);

            return(result.ToApiResultForList());
        }
Beispiel #2
0
        public ApiResult GetDoctorMemberEMRs([FromUri] UserMemeberQueryDTO dto)
        {
            doctorMemberService = new DoctorMemberService(CurrentOperatorUserID);
            var data = doctorMemberService.GetDoctorMemberEMRs(CurrentOperatorDoctorID, dto.MemberId, dto.DoctorMemberID, dto.CurrentPage, dto.PageSize, dto.Keyword);
            var ret  = data.Data.ToApiResultForObject();

            ret.Total = data.Total;
            return(ret);
        }
Beispiel #3
0
        public ApiResult GetMyMemberInfo(string doctorMemberID)
        {
            doctorMemberService = new DoctorMemberService(CurrentOperatorUserID);
            var model = doctorMemberService.GetMyMemberInfo(doctorMemberID);

            if (model != null)
            {
                return(model.ToApiResultForObject());
            }
            else
            {
                return(EnumApiStatus.BizError.ToApiResultForApiStatus());
            }
        }
Beispiel #4
0
        public ApiResult GetMyMemberVisitList([FromUri] DoctorMemberCondition condition)
        {
            doctorMemberService = new DoctorMemberService(CurrentOperatorUserID);
            condition.UserID    = CurrentOperatorUserID;
            var model = doctorMemberService.GetMyMemberVisitList(condition);

            if (model != null)
            {
                return(model.ToApiResultForList());
            }
            else
            {
                return new ApiResult()
                       {
                           Data = null
                       }
            };
        }
Beispiel #5
0
 public ApiResult GetMemberInfo([FromUri] string MemberID, string UserID)
 {
     BLL.DoctorMemberService doctorPatientService = new DoctorMemberService(CurrentOperatorUserID);
     return(doctorPatientService.GetMemberInfo(CurrentOperatorDoctorID, UserID, MemberID).ToApiResultForObject());
 }
Beispiel #6
0
 public DoctorMemberController()
 {
     doctorMemberService = new DoctorMemberService(CurrentOperatorUserID);
 }