public class Bundle extends Resource implements IBaseBundle
| Modifier and Type | Class and Description |
|---|---|
static class |
Bundle.BundleEntryComponent |
static class |
Bundle.BundleEntryRequestComponent |
static class |
Bundle.BundleEntryResponseComponent |
static class |
Bundle.BundleEntrySearchComponent |
static class |
Bundle.BundleLinkComponent |
static class |
Bundle.BundleType |
static class |
Bundle.BundleTypeEnumFactory |
static class |
Bundle.HTTPVerb |
static class |
Bundle.HTTPVerbEnumFactory |
static class |
Bundle.SearchEntryMode |
static class |
Bundle.SearchEntryModeEnumFactory |
| Modifier and Type | Field and Description |
|---|---|
static ReferenceClientParam |
COMPOSITION
Fluent Client search parameter constant for composition
|
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).
|
protected Identifier |
identifier
A persistent identifier for the batch that won't change as a batch is copied from server to server.
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_COMPOSITION
Constant for fluent queries to be used to add include statements.
|
static Include |
INCLUDE_MESSAGE
Constant for fluent queries to be used to add include statements.
|
protected List<Bundle.BundleLinkComponent> |
link
A series of links that provide context to this bundle.
|
static ReferenceClientParam |
MESSAGE
Fluent Client search parameter constant for message
|
protected Signature |
signature
Digital Signature - base64 encoded.
|
static String |
SP_COMPOSITION
Search parameter: composition
|
static String |
SP_IDENTIFIER
Search parameter: identifier
|
static String |
SP_MESSAGE
Search parameter: message
|
static String |
SP_TYPE
Search parameter: type
|
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).
|
protected Enumeration<Bundle.BundleType> |
type
Indicates the purpose of this bundle - how it was intended to be used.
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
id, implicitRules, language, metaLINK_NEXT, LINK_PREV, LINK_SELFINCLUDE_ALL, WILDCARD_ALL_SETRES_ID, SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Bundle()
Constructor
|
Bundle(Enumeration<Bundle.BundleType> type)
Constructor
|
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetagetStructureFhirVersionEnum, isResource, setIdcastToAddress, 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, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdElement, getMeta, getStructureFhirVersionEnum, setId, setIdgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentgetUserData, setUserDataprotected Identifier identifier
protected Enumeration<Bundle.BundleType> type
protected UnsignedIntType total
protected List<Bundle.BundleLinkComponent> link
protected List<Bundle.BundleEntryComponent> entry
public static final String SP_IDENTIFIER
Description: Persistent identifier for the bundle
Type: token
Path: Bundle.identifier
public static final TokenClientParam IDENTIFIER
Description: Persistent identifier for the bundle
Type: token
Path: Bundle.identifier
public static final String SP_COMPOSITION
Description: 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
public static final ReferenceClientParam COMPOSITION
Description: 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
public static final Include INCLUDE_COMPOSITION
public static final String SP_TYPE
Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
public static final TokenClientParam TYPE
Description: document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection
Type: token
Path: Bundle.type
public static final String SP_MESSAGE
Description: 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
public static final ReferenceClientParam MESSAGE
Description: 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
public static final Include INCLUDE_MESSAGE
public Bundle()
public Bundle(Enumeration<Bundle.BundleType> type)
public Identifier getIdentifier()
identifier (A persistent identifier for the batch that won't change as a batch is copied from server to server.)public boolean hasIdentifier()
public Bundle setIdentifier(Identifier value)
value - identifier (A persistent identifier for the batch that won't change as a batch is copied from server to server.)public Enumeration<Bundle.BundleType> getTypeElement()
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 valuepublic boolean hasTypeElement()
public boolean hasType()
public Bundle setTypeElement(Enumeration<Bundle.BundleType> value)
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 valuepublic Bundle.BundleType getType()
public Bundle setType(Bundle.BundleType value)
value - Indicates the purpose of this bundle - how it was intended to be used.public UnsignedIntType getTotalElement()
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 valuepublic boolean hasTotalElement()
public boolean hasTotal()
public Bundle setTotalElement(UnsignedIntType value)
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 valuepublic int getTotal()
public Bundle setTotal(int value)
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).public List<Bundle.BundleLinkComponent> getLink()
link (A series of links that provide context to this bundle.)public Bundle setLink(List<Bundle.BundleLinkComponent> theLink)
this for easy method chainingpublic boolean hasLink()
public Bundle.BundleLinkComponent addLink()
public Bundle addLink(Bundle.BundleLinkComponent t)
public Bundle.BundleLinkComponent getLinkFirstRep()
link, creating it if it does not already existpublic List<Bundle.BundleEntryComponent> getEntry()
entry (An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only).)public Bundle setEntry(List<Bundle.BundleEntryComponent> theEntry)
this for easy method chainingpublic boolean hasEntry()
public Bundle.BundleEntryComponent addEntry()
public Bundle addEntry(Bundle.BundleEntryComponent t)
public Bundle.BundleEntryComponent getEntryFirstRep()
entry, creating it if it does not already existpublic Signature getSignature()
signature (Digital Signature - base64 encoded. XML-DSIg or a JWT.)public boolean hasSignature()
public Bundle setSignature(Signature value)
value - signature (Digital Signature - base64 encoded. XML-DSIg or a JWT.)public Bundle.BundleLinkComponent getLink(String theRelation)
link which matches a given relation.
If no link is found which matches the given relation, returns null. If more than one
link is found which matches the given relation, returns the first matching BundleLinkComponent.theRelation - The relation, such as "next", or "self. See the constants such as IBaseBundle.LINK_SELF and IBaseBundle.LINK_NEXT.nullIBaseBundle.LINK_NEXT,
IBaseBundle.LINK_PREV,
IBaseBundle.LINK_SELFpublic Bundle.BundleLinkComponent getLinkOrCreate(String theRelation)
link which matches a given relation.
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.theRelation - The relation, such as "next", or "self. See the constants such as IBaseBundle.LINK_SELF and IBaseBundle.LINK_NEXT.nullIBaseBundle.LINK_NEXT,
IBaseBundle.LINK_PREV,
IBaseBundle.LINK_SELFprotected void listChildren(List<Property> childrenList)
listChildren in class Resourcepublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class ResourceFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ResourceFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ResourceFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ResourceFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ResourceFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ResourceFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Resourcepublic boolean equalsShallow(Base other)
equalsShallow in class Resourcepublic boolean isEmpty()
public ResourceType getResourceType()
getResourceType in class ResourceCopyright © 2014–2017 University Health Network. All rights reserved.