public ServiceResult GetChildSideAffects(string doseUUID, string parentUUID = "", string filter = "")
        {
            if (CurrentUser == null)
            {
                return(ServiceResponse.Error("You must be logged in to access this function."));
            }


            if (string.IsNullOrWhiteSpace(doseUUID))
            {
                return(ServiceResponse.Error("You must send a dose uuid."));
            }


            SideAffectManager SideAffectManager = new SideAffectManager(Globals.DBConnectionKey, Request.Headers?.Authorization?.Parameter);

            List <dynamic> SymptomsLog = SideAffectManager.GetSideAffectsByDose(doseUUID, parentUUID, CurrentUser.AccountUUID).Cast <dynamic>().ToList();
            int            count;


            DataFilter tmpFilter = this.GetFilter(filter);

            SymptomsLog = FilterEx.FilterInput(SymptomsLog, tmpFilter, out count);

            return(ServiceResponse.OK("", SymptomsLog, count));
        }
        public ServiceResult GetChildSideAffects(string doseUUID, string parentUUID = "")
        {
            if (CurrentUser == null)
            {
                return(ServiceResponse.Error("You must be logged in to access this function."));
            }

            if (string.IsNullOrWhiteSpace(doseUUID))
            {
                return(ServiceResponse.Error("You must send a dose uuid."));
            }

            SideAffectManager SideAffectManager = new SideAffectManager(Globals.DBConnectionKey, this.GetAuthToken(Request));

            List <dynamic> SymptomsLog = SideAffectManager.GetSideAffectsByDose(doseUUID, parentUUID, CurrentUser.AccountUUID).Cast <dynamic>().ToList();

            DataFilter filter = this.GetFilter(Request);

            SymptomsLog = SymptomsLog.Filter(ref filter);

            return(ServiceResponse.OK("", SymptomsLog, filter.TotalRecordCount));
        }