Package com.ibm.fhir.model.resource
Class Bundle
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.Bundle
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Bundle extends Resource
A container for a collection of resources.Maturity level: FMM5 (Normative)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundle.Builderstatic classBundle.EntryAn entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).static classBundle.LinkA series of links that provide context to this bundle.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Bundle.Builderbuilder()booleanequals(Object obj)List<Bundle.Entry>getEntry()An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).IdentifiergetIdentifier()A persistent identifier for the bundle that won't change as a bundle is copied from server to server.List<Bundle.Link>getLink()A series of links that provide context to this bundle.SignaturegetSignature()Digital Signature - base64 encoded.InstantgetTimestamp()The date/time that the bundle was assembled - i.e.UnsignedIntgetTotal()If a set of search matches, this is the total number of entries of type 'match' across all pages in the search.BundleTypegetType()Indicates the purpose of this bundle - how it is intended to be used.booleanhasChildren()inthashCode()Bundle.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
A persistent identifier for the bundle that won't change as a bundle is copied from server to server.- Returns:
- An immutable object of type
Identifierthat may be null.
-
getType
public BundleType getType()
Indicates the purpose of this bundle - how it is intended to be used.- Returns:
- An immutable object of type
BundleTypethat is non-null.
-
getTimestamp
public Instant getTimestamp()
The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.- Returns:
- An immutable object of type
Instantthat may be null.
-
getTotal
public UnsignedInt getTotal()
If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle.- Returns:
- An immutable object of type
UnsignedIntthat may be null.
-
getLink
public List<Bundle.Link> getLink()
A series of links that provide context to this bundle.- Returns:
- An unmodifiable list containing immutable objects of type
Bundle.Linkthat may be empty.
-
getEntry
public List<Bundle.Entry> getEntry()
An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).- Returns:
- An unmodifiable list containing immutable objects of type
Bundle.Entrythat may be empty.
-
getSignature
public Signature getSignature()
Digital Signature - base64 encoded. XML-DSig or a JWT.- Returns:
- An immutable object of type
Signaturethat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classResource
-
accept
public void accept(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
-
toBuilder
public Bundle.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource
-
builder
public static Bundle.Builder builder()
-
-