
Package org.hl7.fhir.dstu2.model
Class Bundle
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.BaseResource
org.hl7.fhir.dstu2.model.Resource
org.hl7.fhir.dstu2.model.Bundle
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseBundle,org.hl7.fhir.instance.model.api.IBaseResource
A container for a collection of resources.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic enumstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Bundle.BundleEntryComponent> An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).protected List<Bundle.BundleLinkComponent> A series of links that provide context to this bundle.protected SignatureDigital Signature - base64 encoded.static final Stringstatic final Stringstatic final Stringprotected UnsignedIntTypeIf a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).protected Enumeration<Bundle.BundleType> Indicates the purpose of this bundle- how it was intended to be used.Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseBundle
LINK_NEXT, LINK_PREV, LINK_SELFFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntry()addLink()copy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getEntry()getLink()getLinkOrCreate(String theRelation) intgetTotal()getType()booleanhasEntry()booleanhasLink()booleanbooleanhasTotal()booleanbooleanhasType()booleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) voidsetProperty(String name, Base value) setSignature(Signature value) setTotal(int value) setTotalElement(UnsignedIntType value) setType(Bundle.BundleType value) protected BundleMethods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetaMethods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setIdMethods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
type
Indicates the purpose of this bundle- how it was intended to be used. -
total
If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle). -
link
A series of links that provide context to this bundle. -
entry
An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only). -
signature
Digital Signature - base64 encoded. XML DigSIg or a JWT. -
SP_COMPOSITION
- See Also:
-
SP_TYPE
- See Also:
-
SP_MESSAGE
- See Also:
-
-
Constructor Details
-
Bundle
public Bundle() -
Bundle
-
-
Method Details
-
getTypeElement
- Returns:
type(Indicates the purpose of this bundle- how it was intended to be used.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
-
hasType
-
setTypeElement
- Parameters:
value-type(Indicates the purpose of this bundle- how it was intended to be used.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
- Returns:
- Indicates the purpose of this bundle- how it was intended to be used.
-
setType
- Parameters:
value- Indicates the purpose of this bundle- how it was intended to be used.
-
getTotalElement
- Returns:
total(If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
-
hasTotalElement
-
hasTotal
-
setTotalElement
- Parameters:
value-total(If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
-
getTotal
- Returns:
- If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).
-
setTotal
- Parameters:
value- If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle).
-
getLink
- Returns:
link(A series of links that provide context to this bundle.)
-
hasLink
-
addLink
- Returns:
link(A series of links that provide context to this bundle.)
-
addLink
-
getEntry
- Returns:
entry(An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)
-
hasEntry
-
addEntry
- Returns:
entry(An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)
-
addEntry
-
getSignature
- Returns:
signature(Digital Signature - base64 encoded. XML DigSIg or a JWT.)
-
hasSignature
-
setSignature
- Parameters:
value-signature(Digital Signature - base64 encoded. XML DigSIg or a JWT.)
-
getLink
Returns thelinkwhich matches a givenrelation. If no link is found which matches the given relation, returnsnull. If more than one link is found which matches the given relation, returns the first matching BundleLinkComponent.- Parameters:
theRelation- The relation, such as "next", or "self. See the constants such asIBaseBundle.LINK_SELFandIBaseBundle.LINK_NEXT.- Returns:
- Returns a matching BundleLinkComponent, or
null - See Also:
-
getLinkOrCreate
Returns thelinkwhich matches a givenrelation. If no link is found which matches the given relation, creates a new BundleLinkComponent with the given relation and adds it to this Bundle. If more than one link is found which matches the given relation, returns the first matching BundleLinkComponent.- Parameters:
theRelation- The relation, such as "next", or "self. See the constants such asIBaseBundle.LINK_SELFandIBaseBundle.LINK_NEXT.- Returns:
- Returns a matching BundleLinkComponent, or
null - See Also:
-
listChildren
- Overrides:
listChildrenin classResource
-
setProperty
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classResource
-
equalsShallow
- Overrides:
equalsShallowin classResource
-
isEmpty
-
getResourceType
- Specified by:
getResourceTypein classResource
-