示例#1
0
 /// <summary>
 /// fetch all the patient data from local db
 /// </summary>
 public DataTable FetchtAllFromServer()
 {
     try
     {
         this.FHIRServerService = new FHIRServerAccessService(new Uri(ServerURI.Text.ToString()));
         return(this.FHIRServerService.FetchAll());
     }
     catch (Exception)
     {
         return(null);
     }
 }
示例#2
0
 /// <summary>
 /// search the local db with given string
 /// </summary>
 public DataTable SearchFromServer(String query)
 {
     try
     {
         this.FHIRServerService = new FHIRServerAccessService(new Uri(ServerURI.Text.ToString()));
     }
     catch (Exception ex)
     {
         this.ShowErrorMessage(ex);
     }
     return(this.FHIRServerService.SearchPatientByName(query));
 }
示例#3
0
        public void Init()
        {
            if (this.testPatientService == null)
            {
                this.testPatientService = new FHIRPatientService();
            }

            if (this.testServerService == null)
            {
                this.testServerService = new FHIRServerAccessService(new Uri(TestServer));
            }
        }