Class Bundle.Entry
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.Bundle.Entry
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- Bundle
public static class Bundle.Entry extends BackboneElement
An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundle.Entry.Builderstatic classBundle.Entry.RequestAdditional information about how this entry should be processed as part of a transaction or batch.static classBundle.Entry.ResponseIndicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.static classBundle.Entry.SearchInformation about the search process that lead to the creation of this entry.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Bundle.Entry.Builderbuilder()booleanequals(java.lang.Object obj)UrigetFullUrl()The Absolute URL for the resource.java.util.List<Bundle.Link>getLink()A series of links that provide context to this entry.Bundle.Entry.RequestgetRequest()Additional information about how this entry should be processed as part of a transaction or batch.ResourcegetResource()The Resource for the entry.Bundle.Entry.ResponsegetResponse()Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.Bundle.Entry.SearchgetSearch()Information about the search process that lead to the creation of this entry.booleanhasChildren()inthashCode()Bundle.Entry.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
Method Detail
-
getLink
public java.util.List<Bundle.Link> getLink()
A series of links that provide context to this entry.- Returns:
- An unmodifiable list containing immutable objects of type
Bundle.Linkthat may be empty.
-
getFullUrl
public Uri getFullUrl()
The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: * fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle) * Results from operations might involve resources that are not identified.- Returns:
- An immutable object of type
Urithat may be null.
-
getResource
public Resource getResource()
The Resource for the entry. The purpose/meaning of the resource is determined by the Bundle.type.- Returns:
- An immutable object of type
Resourcethat may be null.
-
getSearch
public Bundle.Entry.Search getSearch()
Information about the search process that lead to the creation of this entry.- Returns:
- An immutable object of type
Bundle.Entry.Searchthat may be null.
-
getRequest
public Bundle.Entry.Request getRequest()
Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.- Returns:
- An immutable object of type
Bundle.Entry.Requestthat may be null.
-
getResponse
public Bundle.Entry.Response getResponse()
Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.- Returns:
- An immutable object of type
Bundle.Entry.Responsethat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public Bundle.Entry.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static Bundle.Entry.Builder builder()
-
-