
Class 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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic enumstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for compositionprotected List<Bundle.BundleEntryComponent> An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).protected IdentifierA persistent identifier for the batch that won't change as a batch is copied from server to server.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.protected List<Bundle.BundleLinkComponent> A series of links that provide context to this bundle.static final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for messageprotected SignatureDigital Signature - base64 encoded.static final StringSearch parameter: compositionstatic final StringSearch parameter: identifierstatic final StringSearch parameter: messagestatic final StringSearch parameter: typeprotected 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.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for typeFields inherited from class org.hl7.fhir.dstu3.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
ConstructorsConstructorDescriptionBundle()ConstructorBundle(Enumeration<Bundle.BundleType> type) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddEntry()addLink()copy()booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getEntry()getLink()getLinkOrCreate(String theRelation) getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) intgetTotal()getType()String[]getTypesForProperty(int hash, String name) booleanhasEntry()booleanbooleanhasLink()booleanbooleanhasTotal()booleanbooleanhasType()booleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setEntry(List<Bundle.BundleEntryComponent> theEntry) setIdentifier(Identifier value) setLink(List<Bundle.BundleLinkComponent> theLink) setProperty(int hash, String name, Base value) setProperty(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.dstu3.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetaMethods inherited from class org.hl7.fhir.dstu3.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isPrimitive, listChildrenByName, 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
-
identifier
A persistent identifier for the batch that won't change as a batch is copied from server to server. -
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-DSIg or a JWT. -
SP_IDENTIFIER
Search parameter: identifierDescription: Persistent identifier for the bundle
Type: token
Path: Bundle.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Persistent identifier for the bundle
Type: token
Path: Bundle.identifier
-
SP_COMPOSITION
Search parameter: compositionDescription: The first resource in the bundle, if the bundle type is "document" - this is a composition, and this parameter provides access to searches its contents
Type: reference
Path: Bundle.entry(0).resource
- See Also:
-
COMPOSITION
Fluent Client search parameter constant for compositionDescription: The first resource in the bundle, if the bundle type is "document" - this is a composition, and this parameter provides access to searches its contents
Type: reference
Path: Bundle.entry(0).resource
-
INCLUDE_COMPOSITION
Constant for fluent queries to be used to add include statements. Specifies the path value of "Bundle:composition". -
SP_TYPE
Search parameter: typeDescription: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
- See Also:
-
TYPE
Fluent Client search parameter constant for typeDescription: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
-
SP_MESSAGE
Search parameter: messageDescription: The first resource in the bundle, if the bundle type is "message" - this is a message header, and this parameter provides access to search its contents
Type: reference
Path: Bundle.entry(0).resource
- See Also:
-
MESSAGE
Fluent Client search parameter constant for messageDescription: The first resource in the bundle, if the bundle type is "message" - this is a message header, and this parameter provides access to search its contents
Type: reference
Path: Bundle.entry(0).resource
-
INCLUDE_MESSAGE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Bundle:message".
-
-
Constructor Details
-
Bundle
public Bundle()Constructor -
Bundle
Constructor
-
-
Method Details
-
getIdentifier
- Returns:
identifier(A persistent identifier for the batch that won't change as a batch is copied from server to server.)
-
hasIdentifier
-
setIdentifier
- Parameters:
value-identifier(A persistent identifier for the batch that won't change as a batch is copied from server to server.)
-
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.)
-
setLink
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasLink
-
addLink
-
addLink
-
getLinkFirstRep
- Returns:
- The first repetition of repeating field
link, creating it if it does not already exist
-
getEntry
- Returns:
entry(An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)
-
setEntry
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasEntry
-
addEntry
-
addEntry
-
getEntryFirstRep
- Returns:
- The first repetition of repeating field
entry, creating it if it does not already exist
-
getSignature
- Returns:
signature(Digital Signature - base64 encoded. XML-DSIg or a JWT.)
-
hasSignature
-
setSignature
- Parameters:
value-signature(Digital Signature - base64 encoded. XML-DSIg 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
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin 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
-