/// <summary> /// /// </summary> /// <param name="patientAllergy"></param> /// <returns></returns> public static void CreateUpdatePatientAllergy(PatientAllergyBE patientAllergy) { CreateUpdatePatientAllergyReq req = new CreateUpdatePatientAllergyReq(); req.BusinessData = patientAllergy; req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); CreateUpdatePatientAllergyRes res = req.ExecuteService <CreateUpdatePatientAllergyReq, CreateUpdatePatientAllergyRes>(req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } }
/// <summary> /// /// </summary> /// <param name="patientAllergy"></param> /// <returns></returns> public static void CreateUpdatePatientAllergy(PatientAllergyBE patientAllergy) { CreateUpdatePatientAllergyReq req = new CreateUpdatePatientAllergyReq(); req.BusinessData = patientAllergy; req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); req.ContextInformation.AppId = Controller.CurrentHealthInstitution.HealthInstitutionId.ToString(); CreateUpdatePatientAllergyRes res = req.ExecuteService<CreateUpdatePatientAllergyReq, CreateUpdatePatientAllergyRes>(req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); }