Better example variable name
This commit is contained in:
parent
72a62817aa
commit
391999062e
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue