Class Bundle
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.BaseResource
-
- org.hl7.fhir.dstu2016may.model.Resource
-
- org.hl7.fhir.dstu2016may.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
public class Bundle extends Resource implements org.hl7.fhir.instance.model.api.IBaseBundle
A container for a collection of resources.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundle.BundleEntryComponentstatic classBundle.BundleEntryRequestComponentstatic classBundle.BundleEntryResponseComponentstatic classBundle.BundleEntrySearchComponentstatic classBundle.BundleLinkComponentstatic classBundle.BundleTypestatic classBundle.BundleTypeEnumFactorystatic classBundle.HTTPVerbstatic classBundle.HTTPVerbEnumFactorystatic classBundle.SearchEntryModestatic classBundle.SearchEntryModeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.ReferenceClientParamCOMPOSITIONFluent Client search parameter constant for compositionprotected List<Bundle.BundleEntryComponent>entryAn entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).static ca.uhn.fhir.model.api.IncludeINCLUDE_COMPOSITIONConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_MESSAGEConstant for fluent queries to be used to add include statements.protected List<Bundle.BundleLinkComponent>linkA series of links that provide context to this bundle.static ca.uhn.fhir.rest.gclient.ReferenceClientParamMESSAGEFluent Client search parameter constant for messageprotected SignaturesignatureDigital Signature - base64 encoded.static StringSP_COMPOSITIONSearch parameter: compositionstatic StringSP_MESSAGESearch parameter: messagestatic StringSP_TYPESearch parameter: typeprotected UnsignedIntTypetotalIf 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>typeIndicates the purpose of this bundle- how it was intended to be used.static ca.uhn.fhir.rest.gclient.TokenClientParamTYPEFluent Client search parameter constant for type-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Bundle()ConstructorBundle(Enumeration<Bundle.BundleType> type)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.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.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, 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
-
-
-
-
Field Detail
-
type
protected Enumeration<Bundle.BundleType> type
Indicates the purpose of this bundle- how it was intended to be used.
-
total
protected UnsignedIntType 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
protected List<Bundle.BundleLinkComponent> link
A series of links that provide context to this bundle.
-
entry
protected List<Bundle.BundleEntryComponent> entry
An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).
-
SP_MESSAGE
public static final String 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.resource(0)
- See Also:
- Constant Field Values
-
MESSAGE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam 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.resource(0)
-
INCLUDE_MESSAGE
public static final ca.uhn.fhir.model.api.Include INCLUDE_MESSAGE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Bundle:message".
-
SP_COMPOSITION
public static final String 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.resource(0)
- See Also:
- Constant Field Values
-
COMPOSITION
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam 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.resource(0)
-
INCLUDE_COMPOSITION
public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSITION
Constant for fluent queries to be used to add include statements. Specifies the path value of "Bundle:composition".
-
SP_TYPE
public static final String SP_TYPE
Search parameter: typeDescription: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
- See Also:
- Constant Field Values
-
TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
Fluent Client search parameter constant for typeDescription: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
-
-
Constructor Detail
-
Bundle
public Bundle()
Constructor
-
Bundle
public Bundle(Enumeration<Bundle.BundleType> type)
Constructor
-
-
Method Detail
-
getTypeElement
public Enumeration<Bundle.BundleType> 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
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public Bundle setTypeElement(Enumeration<Bundle.BundleType> value)
- 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
public Bundle.BundleType getType()
- Returns:
- Indicates the purpose of this bundle- how it was intended to be used.
-
setType
public Bundle setType(Bundle.BundleType value)
- Parameters:
value- Indicates the purpose of this bundle- how it was intended to be used.
-
getTotalElement
public UnsignedIntType 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
public boolean hasTotalElement()
-
hasTotal
public boolean hasTotal()
-
setTotalElement
public Bundle setTotalElement(UnsignedIntType value)
- 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
public int 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
public Bundle setTotal(int value)
- 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
public List<Bundle.BundleLinkComponent> getLink()
- Returns:
link(A series of links that provide context to this bundle.)
-
hasLink
public boolean hasLink()
-
addLink
public Bundle.BundleLinkComponent addLink()
- Returns:
link(A series of links that provide context to this bundle.)
-
addLink
public Bundle addLink(Bundle.BundleLinkComponent t)
-
getEntry
public List<Bundle.BundleEntryComponent> getEntry()
- Returns:
entry(An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)
-
hasEntry
public boolean hasEntry()
-
addEntry
public Bundle.BundleEntryComponent addEntry()
- Returns:
entry(An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)
-
addEntry
public Bundle addEntry(Bundle.BundleEntryComponent t)
-
getSignature
public Signature getSignature()
- Returns:
signature(Digital Signature - base64 encoded. XML DigSIg or a JWT.)
-
hasSignature
public boolean hasSignature()
-
setSignature
public Bundle setSignature(Signature value)
- Parameters:
value-signature(Digital Signature - base64 encoded. XML DigSIg or a JWT.)
-
getLink
public Bundle.BundleLinkComponent getLink(String theRelation)
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:
IBaseBundle.LINK_NEXT,IBaseBundle.LINK_PREV,IBaseBundle.LINK_SELF
-
getLinkOrCreate
public Bundle.BundleLinkComponent getLinkOrCreate(String theRelation)
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:
IBaseBundle.LINK_NEXT,IBaseBundle.LINK_PREV,IBaseBundle.LINK_SELF
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classResource
-
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 void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classResource- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classResource
-
isEmpty
public boolean isEmpty()
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-