Tabnine Logo
IHistory.onServer
Code IndexAdd Tabnine to your IDE (free)

How to use
onServer
method
in
ca.uhn.fhir.rest.gclient.IHistory

Best Java code snippets using ca.uhn.fhir.rest.gclient.IHistory.onServer (Showing top 2 results out of 315)

origin: jamesagnew/hapi-fhir

@SuppressWarnings("unused")
public static void history() {
 IGenericClient client = FhirContext.forDstu2().newRestfulGenericClient("");
 {
   ca.uhn.fhir.model.dstu2.resource.Bundle response;
   // START SNIPPET: historyDstu2
   response = client
    .history()
    .onServer()
    .andReturnBundle(ca.uhn.fhir.model.dstu2.resource.Bundle.class)
    .execute();
   // END SNIPPET: historyDstu2
 }
 {
   ca.uhn.fhir.model.dstu2.resource.Bundle response;
   // START SNIPPET: historyFeatures
   response = client
    .history()
    .onServer()
    .andReturnBundle(ca.uhn.fhir.model.dstu2.resource.Bundle.class)
    .since(new InstantDt("2012-01-01T12:22:32.038Z"))
    .count(100)
    .execute();
   // END SNIPPET: historyFeatures
 }
}
origin: org.apache.camel/camel-fhir-api

/**
 * Perform the operation across all versions of all resources of all types on the server
 *
 * @param returnType Request that the method return a Bundle resource (such as <code>ca.uhn.fhir.model.dstu2.resource.Bundle</code>).
 *                Use this method if you are accessing a DSTU2+ server.
 * @param count Request that the server return only up to <code>theCount</code> number of resources, may be NULL
 * @param cutoff Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULL
 * @param iCutoff Request that the server return only resource versions that were created at or after the given time (inclusive), may be NULL
 * @param <T> extends {@link IBaseBundle}
 * @param extraParameters see {@link ExtraParameters} for a full list of parameters that can be passed, may be NULL
 * @return the {@link IBaseBundle}
 */
public <T extends IBaseBundle> T onServer(Class<T> returnType, Integer count, Date cutoff, IPrimitiveType<Date> iCutoff, Map<ExtraParameters, Object> extraParameters) {
  IHistoryTyped<T> tiHistoryTyped = client.history().onServer().andReturnBundle(returnType);
  processOptionalParams(count, cutoff, iCutoff, tiHistoryTyped);
  ExtraParameters.process(extraParameters, tiHistoryTyped);
  return tiHistoryTyped.execute();
}
ca.uhn.fhir.rest.gclientIHistoryonServer

Popular methods of IHistory

  • onInstance
  • onType

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now