/// <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); } }
/// <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)); }
public void Init() { if (this.testPatientService == null) { this.testPatientService = new FHIRPatientService(); } if (this.testServerService == null) { this.testServerService = new FHIRServerAccessService(new Uri(TestServer)); } }