Tabnine Logo
At
Code IndexAdd Tabnine to your IDE (free)

How to use
At
in
ca.uhn.fhir.rest.annotation

Best Java code snippets using ca.uhn.fhir.rest.annotation.At (Showing top 7 results out of 315)

origin: jamesagnew/hapi-fhir

@History()
public List<Patient> getPatientHistory(
   @IdParam IdType theId,
   @Since InstantType theSince,
   @At DateRangeParam theAt
   ) {
  List<Patient> retVal = new ArrayList<Patient>();
    Patient patient = new Patient();
  patient.addName().setFamily("Smith");
    // Set the ID and version
  patient.setId(theId.withVersion("1"));
    // ...populate the rest...
  return retVal;
}
//END SNIPPET: history
origin: jamesagnew/hapi-fhir

@History
public IBundleProvider historyServer(HttpServletRequest theRequest, @Since Date theDate, @At DateRangeParam theAt, RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam range = super.processSinceOrAt(theDate, theAt);
    return myDao.history(range.getLowerBoundAsInstant(), range.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
origin: jamesagnew/hapi-fhir

@History
public IBundleProvider getHistoryForResourceType(
  HttpServletRequest theRequest,
  @Since Date theSince,
  @At DateRangeParam theAt,
  RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam sinceOrAt = processSinceOrAt(theSince, theAt);
    return myDao.history(sinceOrAt.getLowerBoundAsInstant(), sinceOrAt.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
origin: jamesagnew/hapi-fhir

@History
public IBundleProvider getHistoryForResourceInstance(
  HttpServletRequest theRequest,
  @IdParam IIdType theId,
  @Since Date theSince,
  @At DateRangeParam theAt,
  RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam sinceOrAt = processSinceOrAt(theSince, theAt);
    return myDao.history(theId, sinceOrAt.getLowerBoundAsInstant(), sinceOrAt.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@History
public IBundleProvider historyServer(HttpServletRequest theRequest, @Since Date theDate, @At DateRangeParam theAt, RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam range = super.processSinceOrAt(theDate, theAt);
    return myDao.history(range.getLowerBoundAsInstant(), range.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@History
public IBundleProvider getHistoryForResourceType(
  HttpServletRequest theRequest,
  @Since Date theSince,
  @At DateRangeParam theAt,
  RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam sinceOrAt = processSinceOrAt(theSince, theAt);
    return myDao.history(sinceOrAt.getLowerBoundAsInstant(), sinceOrAt.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@History
public IBundleProvider getHistoryForResourceInstance(
  HttpServletRequest theRequest,
  @IdParam IIdType theId,
  @Since Date theSince,
  @At DateRangeParam theAt,
  RequestDetails theRequestDetails) {
  startRequest(theRequest);
  try {
    DateRangeParam sinceOrAt = processSinceOrAt(theSince, theAt);
    return myDao.history(theId, sinceOrAt.getLowerBoundAsInstant(), sinceOrAt.getUpperBoundAsInstant(), theRequestDetails);
  } finally {
    endRequest(theRequest);
  }
}
ca.uhn.fhir.rest.annotationAt

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CodeWhisperer alternatives
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