コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
ファイル: Controller.cs プロジェクト: spzenk/sfdocsamples
        /// <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);

        }