コード例 #1
0
        public static MedicalEventDetail_ViewList RetriveMedicalEventDetails(int patientID, int?medicalEventId)
        {
            RetriveMedicalEventDetailsReq req = new RetriveMedicalEventDetailsReq();

            req.BusinessData.PatientId      = patientID;
            req.BusinessData.MedicalEventId = medicalEventId;


            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            RetriveMedicalEventDetailsRes res = req.ExecuteService <RetriveMedicalEventDetailsReq, RetriveMedicalEventDetailsRes>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData);
        }
コード例 #2
0
ファイル: Controller.cs プロジェクト: spzenk/sfdocsamples
        public static MedicalEventDetail_ViewList RetriveMedicalEventDetails(int patientID, int? medicalEventId)
        {

            RetriveMedicalEventDetailsReq req = new RetriveMedicalEventDetailsReq();
            req.BusinessData.PatientId = patientID;
            req.BusinessData.MedicalEventId = medicalEventId;
            

            req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            RetriveMedicalEventDetailsRes res = req.ExecuteService<RetriveMedicalEventDetailsReq, RetriveMedicalEventDetailsRes>(req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

            return res.BusinessData;
        }