Tabnine Logo
BoundCodeDt.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
ca.uhn.fhir.model.primitive.BoundCodeDt

Best Java code snippets using ca.uhn.fhir.model.primitive.BoundCodeDt.isEmpty (Showing top 5 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
public void addRootPropertiesToBundle(String theId, String theServerBase, String theLinkSelf, String theLinkPrev, String theLinkNext, Integer theTotalResults, BundleTypeEnum theBundleType,
                         IPrimitiveType<Date> theLastUpdated) {
  myBase = theServerBase;
  if (myBundle.getIdElement().isEmpty()) {
    myBundle.setId(theId);
  }
  if (myBundle.getId().isEmpty()) {
    myBundle.setId(UUID.randomUUID().toString());
  }
  if (ResourceMetadataKeyEnum.UPDATED.get(myBundle) == null) {
    ResourceMetadataKeyEnum.UPDATED.put(myBundle, (InstantDt) theLastUpdated);
  }
  if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theLinkSelf)) {
    myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theLinkSelf);
  }
  if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theLinkNext)) {
    myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theLinkNext);
  }
  if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theLinkPrev)) {
    myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theLinkPrev);
  }
  if (myBundle.getTypeElement().isEmpty() && theBundleType != null) {
    myBundle.getTypeElement().setValueAsString(theBundleType.getCode());
  }
  if (myBundle.getTotalElement().isEmpty() && theTotalResults != null) {
    myBundle.getTotalElement().setValue(theTotalResults);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

BundleEntry entry = myBundle.addResource(next, myContext, theServerBase);
if (myContext.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1)) {
  if (entry.getSearchMode().isEmpty()) {
    entry.getSearchMode().setValueAsEnum(BundleEntrySearchModeEnum.INCLUDE);
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

BundleEntry entry = myBundle.addResource((IResource) next, myContext, theServerBase);
if (myContext.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1)) {
  if (entry.getSearchMode().isEmpty()) {
    entry.getSearchMode().setValueAsEnum(BundleEntrySearchModeEnum.INCLUDE);
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

@Override
public void addRootPropertiesToBundle(String theId, String theServerBase, String theLinkSelf, String theLinkPrev, String theLinkNext, Integer theTotalResults, BundleTypeEnum theBundleType,
                         IPrimitiveType<Date> theLastUpdated) {
  ensureBundle();
  myBase = theServerBase;
  if (myBundle.getIdElement().isEmpty()) {
    myBundle.setId(theId);
  }
  if (myBundle.getId().isEmpty()) {
    myBundle.setId(UUID.randomUUID().toString());
  }
  if (ResourceMetadataKeyEnum.UPDATED.get(myBundle) == null) {
    ResourceMetadataKeyEnum.UPDATED.put(myBundle, (InstantDt) theLastUpdated);
  }
  if (!hasLink(Constants.LINK_SELF, myBundle) && isNotBlank(theLinkSelf)) {
    myBundle.addLink().setRelation(Constants.LINK_SELF).setUrl(theLinkSelf);
  }
  if (!hasLink(Constants.LINK_NEXT, myBundle) && isNotBlank(theLinkNext)) {
    myBundle.addLink().setRelation(Constants.LINK_NEXT).setUrl(theLinkNext);
  }
  if (!hasLink(Constants.LINK_PREVIOUS, myBundle) && isNotBlank(theLinkPrev)) {
    myBundle.addLink().setRelation(Constants.LINK_PREVIOUS).setUrl(theLinkPrev);
  }
  if (myBundle.getTypeElement().isEmpty() && theBundleType != null) {
    myBundle.getTypeElement().setValueAsString(theBundleType.getCode());
  }
  if (myBundle.getTotalElement().isEmpty() && theTotalResults != null) {
    myBundle.getTotalElement().setValue(theTotalResults);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

@Override
public void addRootPropertiesToBundle(String theAuthor, String theServerBase, String theCompleteUrl, Integer theTotalResults, BundleTypeEnum theBundleType, IPrimitiveType<Date> theLastUpdated) {
  if (myBundle.getAuthorName().isEmpty()) {
    myBundle.getAuthorName().setValue(theAuthor);
  }
  if (theLastUpdated != null && myBundle.getUpdated().isEmpty() && isNotBlank(theLastUpdated.getValueAsString())) {
    myBundle.getUpdated().setValueAsString(theLastUpdated.getValueAsString());
  }
  if (myBundle.getBundleId().isEmpty()) {
    myBundle.getBundleId().setValue(UUID.randomUUID().toString());
  }
  if (myBundle.getLinkBase().isEmpty()) {
    myBundle.getLinkBase().setValue(theServerBase);
  }
  if (myBundle.getLinkSelf().isEmpty()) {
    myBundle.getLinkSelf().setValue(theCompleteUrl);
  }
  if (theBundleType != null && myBundle.getType().isEmpty()) {
    myBundle.getType().setValueAsString(theBundleType.getCode());
  }
  if (myBundle.getTotalResults().isEmpty() && theTotalResults != null) {
    myBundle.getTotalResults().setValue(theTotalResults);
  }
}
ca.uhn.fhir.model.primitiveBoundCodeDtisEmpty

Popular methods of BoundCodeDt

  • getValueAsEnum
  • getValue
  • setValue
  • getValueAsString
  • setValueAsEnum
  • setValueAsString
  • <init>
  • getBinder

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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