示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="patientId">patient id</param>
        /// <returns></returns>
        public static PatientAllergyBE GetPatientAllergy(int patientId)
        {
            GetPatientAllergyReq req = new GetPatientAllergyReq();

            req.BusinessData.PatientId = patientId;

            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId  = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();
            GetPatientAllergyRes res = req.ExecuteService <GetPatientAllergyReq, GetPatientAllergyRes>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
            res.BusinessData.PatientId = patientId;
            return(res.BusinessData);
        }
示例#2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="patientId">patient id</param>
        /// <returns></returns>
        public static PatientAllergyBE GetPatientAllergy(int patientId)
        {
            GetPatientAllergyReq req = new GetPatientAllergyReq();
            req.BusinessData.PatientId = patientId;

            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString();
            GetPatientAllergyRes res = req.ExecuteService<GetPatientAllergyReq, GetPatientAllergyRes>(req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            res.BusinessData.PatientId = patientId;
            return res.BusinessData;
        }