Better example variable name

This commit is contained in:
James Agnew 2016-11-17 09:10:41 +01:00
parent 72a62817aa
commit 391999062e
1 changed files with 3 additions and 3 deletions

View File

@ -464,16 +464,16 @@ public class GenericClientExample {
IGenericClient client = ctx.newRestfulGenericClient("http://fhirtest.uhn.ca/baseDstu2"); IGenericClient client = ctx.newRestfulGenericClient("http://fhirtest.uhn.ca/baseDstu2");
// Perform a search // Perform a search
Bundle results = client.search() Bundle resultBundle = client.search()
.forResource(Patient.class) .forResource(Patient.class)
.where(Patient.NAME.matches().value("Smith")) .where(Patient.NAME.matches().value("Smith"))
.returnBundle(Bundle.class) .returnBundle(Bundle.class)
.execute(); .execute();
if (results.getLink(Bundle.LINK_NEXT) != null) { if (resultBundle.getLink(Bundle.LINK_NEXT) != null) {
// load next page // load next page
Bundle nextPage = client.loadPage().next(results).execute(); Bundle nextPage = client.loadPage().next(resultBundle).execute();
} }
// END SNIPPET: searchPaging // END SNIPPET: searchPaging
} }