Tabnine Logo
Bundle$BundleEntryComponent.getResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
getResponse
method
in
org.hl7.fhir.dstu3.model.Bundle$BundleEntryComponent

Best Java code snippets using org.hl7.fhir.dstu3.model.Bundle$BundleEntryComponent.getResponse (Showing top 18 results out of 315)

origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public List<IBaseResource> toListOfResources() {
 ArrayList<IBaseResource> retVal = new ArrayList<IBaseResource>();
 for (BundleEntryComponent next : myBundle.getEntry()) {
  if (next.getResource() != null) {
   retVal.add(next.getResource());
  } else if (next.getResponse().getLocationElement().isEmpty() == false) {
   IdType id = new IdType(next.getResponse().getLocation());
   String resourceType = id.getResourceType();
   if (isNotBlank(resourceType)) {
    IAnyResource res = (IAnyResource) myContext.getResourceDefinition(resourceType).newInstance();
    res.setId(id);
    retVal.add(res);
   }
  }
 }
 return retVal;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public org.hl7.fhir.instance.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 if (advisor.ignoreEntry(src))
  return null;
 org.hl7.fhir.instance.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.instance.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 tgt.setFullUrl(src.getFullUrl());
 org.hl7.fhir.instance.model.Resource res = advisor.convert(src.getResource());
 if (res == null)
  res = convertResource(src.getResource());
 tgt.setResource(res);
 if (src.hasSearch())
  tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 if (src.hasRequest())
  tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 if (src.hasResponse())
  tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 if (src.hasFullUrl())
  tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void setResponseLastModified(Bundle.BundleEntryComponent theBundleEntry, Date theLastModified) {
  theBundleEntry.getResponse().setLastModified(theLastModified);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void setResponseLocation(Bundle.BundleEntryComponent theEntry, String theResponseLocation) {
  theEntry.getResponse().setLocation(theResponseLocation);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void setResponseStatus(Bundle.BundleEntryComponent theBundleEntry, String theStatus) {
  theBundleEntry.getResponse().setStatus(theStatus);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void setResponseETag(Bundle.BundleEntryComponent theEntry, String theEtag) {
  theEntry.getResponse().setEtag(theEtag);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base makeProperty(int hash, String name) throws FHIRException {
 switch (hash) {
 case 3321850:  return addLink(); 
 case -511251360:  return getFullUrlElement();
 case -341064690: throw new FHIRException("Cannot make property resource as it is not a complex type"); // Resource
 case -906336856:  return getSearch(); 
 case 1095692943:  return getRequest(); 
 case -340323263:  return getResponse(); 
 default: return super.makeProperty(hash, name);
 }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void setResponseOutcome(Bundle.BundleEntryComponent theEntry, IBaseOperationOutcome theOperationOutcome) {
  theEntry.getResponse().setOutcome((Resource) theOperationOutcome);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

@Override
public void populateEntryWithOperationOutcome(BaseServerResponseException theCaughtEx, Bundle.BundleEntryComponent theEntry) {
  OperationOutcome oo = new OperationOutcome();
  oo.addIssue().setSeverity(OperationOutcome.IssueSeverity.ERROR).setDiagnostics(theCaughtEx.getMessage());
  theEntry.getResponse().setOutcome(oo);
}
origin: jamesagnew/hapi-fhir

public org.hl7.fhir.instance.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 if (advisor.ignoreEntry(src))
  return null;
 org.hl7.fhir.instance.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.instance.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 tgt.setFullUrl(src.getFullUrl());
 org.hl7.fhir.instance.model.Resource res = advisor.convert(src.getResource());
 if (res == null)
  res = convertResource(src.getResource());
 tgt.setResource(res);
 if (src.hasSearch())
  tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 if (src.hasRequest())
  tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 if (src.hasResponse())
  tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent tgt = new org.hl7.fhir.dstu2016may.model.Bundle.BundleEntryComponent();
 copyElement(src, tgt);
 for (org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent t : src.getLink())
  tgt.addLink(convertBundleLinkComponent(t));
 if (src.hasFullUrl())
  tgt.setFullUrl(src.getFullUrl());
 tgt.setResource(convertResource(src.getResource()));
 tgt.setSearch(convertBundleEntrySearchComponent(src.getSearch()));
 tgt.setRequest(convertBundleEntryRequestComponent(src.getRequest()));
 tgt.setResponse(convertBundleEntryResponseComponent(src.getResponse()));
 return tgt;
}
origin: jamesagnew/hapi-fhir

@Override
public void setResponseETag(Bundle.BundleEntryComponent theEntry, String theEtag) {
  theEntry.getResponse().setEtag(theEtag);
}
origin: jamesagnew/hapi-fhir

@Override
public void setResponseLocation(Bundle.BundleEntryComponent theEntry, String theResponseLocation) {
  theEntry.getResponse().setLocation(theResponseLocation);
}
origin: jamesagnew/hapi-fhir

@Override
public void setResponseLastModified(Bundle.BundleEntryComponent theBundleEntry, Date theLastModified) {
  theBundleEntry.getResponse().setLastModified(theLastModified);
}
origin: jamesagnew/hapi-fhir

@Override
public void setResponseOutcome(Bundle.BundleEntryComponent theEntry, IBaseOperationOutcome theOperationOutcome) {
  theEntry.getResponse().setOutcome((Resource) theOperationOutcome);
}
origin: jamesagnew/hapi-fhir

@Override
public void setResponseStatus(Bundle.BundleEntryComponent theBundleEntry, String theStatus) {
  theBundleEntry.getResponse().setStatus(theStatus);
}
origin: jamesagnew/hapi-fhir

@Override
public void populateEntryWithOperationOutcome(BaseServerResponseException theCaughtEx, Bundle.BundleEntryComponent theEntry) {
  OperationOutcome oo = new OperationOutcome();
  oo.addIssue().setSeverity(OperationOutcome.IssueSeverity.ERROR).setDiagnostics(theCaughtEx.getMessage());
  theEntry.getResponse().setOutcome(oo);
}
org.hl7.fhir.dstu3.modelBundle$BundleEntryComponentgetResponse

Popular methods of Bundle$BundleEntryComponent

  • getResource
  • setResource
  • getRequest
  • <init>
    Constructor
  • getFullUrl
  • setFullUrl
  • addLink
  • getLink
    Returns the #getLink() which matches a given BundleLinkComponent#getRelation(). If no link is found
  • getSearch
  • isEmpty
  • setRequest
  • setResponse
  • setRequest,
  • setResponse,
  • castToResource,
  • castToUri,
  • compareDeep,
  • compareValues,
  • copy,
  • copyValues,
  • getFullUrlElement

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Runner (org.openjdk.jmh.runner)
  • 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