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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static enum
static class
static enum
static class
static enum
static class
-
Field Summary
Modifier 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 Signature
Digital Signature - base64 encoded.static final String
static final String
static final String
protected UnsignedIntType
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).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, meta
Fields 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_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseBundle
LINK_NEXT, LINK_PREV, LINK_SELF
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEntry()
addLink()
copy()
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) fhirType()
getEntry()
getLink()
getLinkOrCreate
(String theRelation) int
getTotal()
getType()
boolean
hasEntry()
boolean
hasLink()
boolean
boolean
hasTotal()
boolean
boolean
hasType()
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> childrenList) void
setProperty
(String name, Base value) setSignature
(Signature value) setTotal
(int value) setTotalElement
(UnsignedIntType value) setType
(Bundle.BundleType value) protected Bundle
Methods 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, setMeta
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
Methods 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, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods 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 thelink
which 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_SELF
andIBaseBundle.LINK_NEXT
.- Returns:
- Returns a matching BundleLinkComponent, or
null
- See Also:
-
getLinkOrCreate
Returns thelink
which 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_SELF
andIBaseBundle.LINK_NEXT
.- Returns:
- Returns a matching BundleLinkComponent, or
null
- See Also:
-
listChildren
- Overrides:
listChildren
in classResource
-
setProperty
- Overrides:
setProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classResource
-
equalsShallow
- Overrides:
equalsShallow
in classResource
-
isEmpty
-
getResourceType
- Specified by:
getResourceType
in classResource
-