Tabnine Logo
Bundle.addEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
addEntry
method
in
org.hl7.fhir.dstu3.model.Bundle

Best Java code snippets using org.hl7.fhir.dstu3.model.Bundle.addEntry (Showing top 20 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
public void addEntry(Bundle theBundle, Bundle.BundleEntryComponent theEntry) {
  theBundle.addEntry(theEntry);
}
origin: jamesagnew/hapi-fhir

@Override
public Bundle.BundleEntryComponent addEntry(Bundle theBundle) {
  return theBundle.addEntry();
}
origin: jamesagnew/hapi-fhir

      BundleEntryComponent entry = bundle.addEntry();
      entry.getRequest().setMethod(HTTPVerb.POST);
      entry.setResource((Resource) nextResource);
  continue;
BundleEntryComponent entry = bundle.addEntry();
entry.getRequest().setMethod(HTTPVerb.POST);
entry.setResource((Resource) parsed);
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void addEntry(Bundle theBundle, Bundle.BundleEntryComponent theEntry) {
  theBundle.addEntry(theEntry);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public Bundle.BundleEntryComponent addEntry(Bundle theBundle) {
  return theBundle.addEntry();
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.dstu3.model.Bundle convertBundle(org.hl7.fhir.instance.model.Bundle src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
 copyResource(src, tgt);
 tgt.setType(convertBundleType(src.getType()));
 if (src.hasTotal())
  tgt.setTotal(src.getTotal());
 for (org.hl7.fhir.instance.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 for (org.hl7.fhir.instance.model.Bundle.BundleEntryComponent t : src.getEntry())
  tgt.addEntry(convertBundleEntryComponent(t));
 tgt.setSignature(convertSignature(src.getSignature()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu3.model.Bundle convertBundle(org.hl7.fhir.dstu2016may.model.Bundle src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
 copyResource(src, tgt);
 tgt.setType(convertBundleType(src.getType()));
 if (src.hasTotal())
  tgt.setTotal(src.getTotal());
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent t : src.getEntry())
  tgt.addEntry(convertBundleEntryComponent(t));
 tgt.setSignature(convertSignature(src.getSignature()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

/**
 * @return The first repetition of repeating field {@link #entry}, creating it if it does not already exist
 */
public BundleEntryComponent getEntryFirstRep() { 
 if (getEntry().isEmpty()) {
  addEntry();
 }
 return getEntry().get(0);
}
origin: jamesagnew/hapi-fhir

Bundle bundle = new Bundle().setType(Bundle.BundleType.DOCUMENT);
for (IBaseResource resource : resourceList) {
  bundle.addEntry(new Bundle.BundleEntryComponent().setResource((Resource) resource));
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base addChild(String name) throws FHIRException {
 if (name.equals("identifier")) {
  this.identifier = new Identifier();
  return this.identifier;
 }
 else if (name.equals("type")) {
  throw new FHIRException("Cannot call addChild on a primitive type Bundle.type");
 }
 else if (name.equals("total")) {
  throw new FHIRException("Cannot call addChild on a primitive type Bundle.total");
 }
 else if (name.equals("link")) {
  return addLink();
 }
 else if (name.equals("entry")) {
  return addEntry();
 }
 else if (name.equals("signature")) {
  this.signature = new Signature();
  return this.signature;
 }
 else
  return super.addChild(name);
}
origin: cerner/bunsen

/**
 * Returns a bundle containing all resources in the dataset. This should be used
 * with caution for large datasets, since the returned bundle will include all data.
 *
 * @param dataset a dataset of FHIR resoruces
 * @return a bundle containing those resources.
 */
public static Bundle toBundle(Dataset<? extends Resource> dataset) {
 List<Resource> resources = (List<Resource>) dataset.collectAsList();
 Bundle bundle = new Bundle();
 for (Resource resource : resources) {
  bundle.addEntry().setResource(resource);
 }
 return bundle;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base makeProperty(int hash, String name) throws FHIRException {
 switch (hash) {
 case -1618432855:  return getIdentifier(); 
 case 3575610:  return getTypeElement();
 case 110549828:  return getTotalElement();
 case 3321850:  return addLink(); 
 case 96667762:  return addEntry(); 
 case 1073584312:  return getSignature(); 
 default: return super.makeProperty(hash, name);
 }
}
origin: apache/ctakes

bundle.addEntry( new Bundle.BundleEntryComponent().setResource( composition ) );
bundle.addEntry( new Bundle.BundleEntryComponent().setResource( practitioner.getPractitioner() ) );
addBundleResources( bundle, noteSpecs.getSubjects() );
addBundleResources( bundle, sections );
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

BundleEntryComponent entry = myBundle.addEntry().setResource((Resource) next);
Resource nextAsResource = (Resource) next;
IIdType id = populateBundleEntryFullUrl(next, entry);
BundleEntryComponent entry = myBundle.addEntry();
entry.setResource((Resource) next).getSearch().setMode(SearchEntryMode.INCLUDE);
populateBundleEntryFullUrl(next, entry);
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

BundleEntryComponent entry = myBundle.addEntry().setResource(next);
if (next.getIdElement().hasBaseUrl()) {
 entry.setFullUrl(next.getId());
BundleEntryComponent entry = myBundle.addEntry();
entry.setResource((Resource) next).getSearch().setMode(SearchEntryMode.INCLUDE);
if (next.getIdElement().hasBaseUrl()) {
origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-fhir-stu3-mhd

@Override
public Object evaluate(Exchange exchange) {
  if (returnError) throw new InternalErrorException("Something went wrong");
  Bundle requestBundle = exchange.getIn().getBody(Bundle.class);
  Bundle responseBundle = new Bundle()
      .setType(Bundle.BundleType.TRANSACTIONRESPONSE)
      .setTotal(requestBundle.getTotal());
  for (Bundle.BundleEntryComponent requestEntry : requestBundle.getEntry()) {
    Bundle.BundleEntryResponseComponent response = new Bundle.BundleEntryResponseComponent()
        .setStatus("201 Created")
        .setLastModified(new Date())
        .setLocation(requestEntry.getResource().getClass().getSimpleName() + "/" + 4711);
    responseBundle.addEntry()
        .setResponse(response)
        .setResource(responseResource(requestEntry.getResource()));
  }
  return responseBundle;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu3.model.Bundle convertBundle(org.hl7.fhir.dstu2016may.model.Bundle src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
 copyResource(src, tgt);
 tgt.setType(convertBundleType(src.getType()));
 if (src.hasTotal())
  tgt.setTotal(src.getTotal());
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 for (org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent t : src.getEntry())
  tgt.addEntry(convertBundleEntryComponent(t));
 tgt.setSignature(convertSignature(src.getSignature()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public org.hl7.fhir.dstu3.model.Bundle convertBundle(org.hl7.fhir.instance.model.Bundle src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Bundle tgt = new org.hl7.fhir.dstu3.model.Bundle();
 copyResource(src, tgt);
 tgt.setType(convertBundleType(src.getType()));
 if (src.hasTotal())
  tgt.setTotal(src.getTotal());
 for (org.hl7.fhir.instance.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 for (org.hl7.fhir.instance.model.Bundle.BundleEntryComponent t : src.getEntry())
  tgt.addEntry(convertBundleEntryComponent(t));
 tgt.setSignature(convertSignature(src.getSignature()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

for (IBaseResource nextBaseRes : theResources) {
 Resource next = (Resource) nextBaseRes;
 BundleEntryComponent nextEntry = myBundle.addEntry();
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

Bundle bundle = new Bundle().setType(Bundle.BundleType.DOCUMENT);
for (IBaseResource resource : resourceList) {
  bundle.addEntry(new Bundle.BundleEntryComponent().setResource((Resource) resource));
org.hl7.fhir.dstu3.modelBundleaddEntry

Popular methods of Bundle

  • getEntry
  • <init>
    Constructor
  • getMeta
  • getType
  • setType
  • getTotal
  • getLink
    Returns the #getLink() which matches a given BundleLinkComponent#getRelation(). If no link is found
  • setId
  • addLink
  • getEntryFirstRep
  • getResourceType
  • getSignature
  • getResourceType,
  • getSignature,
  • getTypeElement,
  • hasEntry,
  • setTotal,
  • castToCode,
  • castToIdentifier,
  • castToSignature,
  • castToUnsignedInt

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Notification (javax.management)
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • JList (javax.swing)
  • Top plugins for WebStorm
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