public class Bundle extends BaseResource implements IResource, IBaseBundle
Definition: A container for a collection of resources.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Bundle
| Modifier and Type | Class and Description |
|---|---|
static class |
Bundle.Entry
Block class for child element: Bundle.entry ()
|
static class |
Bundle.EntryRequest
Block class for child element: Bundle.entry.request ()
|
static class |
Bundle.EntryResponse
Block class for child element: Bundle.entry.response ()
|
static class |
Bundle.EntrySearch
Block class for child element: Bundle.entry.search ()
|
static class |
Bundle.Link
Block class for child element: Bundle.link ()
|
| Modifier and Type | Field and Description |
|---|---|
static ReferenceClientParam |
COMPOSITION
Fluent Client search parameter constant for composition
|
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.
|
static ReferenceClientParam |
MESSAGE
Fluent Client search parameter constant for message
|
static String |
SP_COMPOSITION
Search parameter constant for composition
|
static String |
SP_MESSAGE
Search parameter constant for message
|
static String |
SP_TYPE
Search parameter constant for type
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGELINK_NEXT, LINK_PREV, LINK_SELFINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
Bundle() |
| Modifier and Type | Method and Description |
|---|---|
Bundle.Entry |
addEntry()
Adds and returns a new value for entry ()
|
Bundle |
addEntry(Bundle.Entry theValue)
Adds a given new value for entry ()
|
Bundle.Link |
addLink()
Adds and returns a new value for link ()
|
Bundle |
addLink(Bundle.Link theValue)
Adds a given new value for link ()
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
List<Bundle.Entry> |
getEntry()
Gets the value(s) for entry ().
|
Bundle.Entry |
getEntryFirstRep()
Gets the first repetition for entry (),
creating it if it does not already exist.
|
List<Bundle.Link> |
getLink()
Gets the value(s) for link ().
|
Bundle.Link |
getLink(String theRelation)
|
Bundle.Link |
getLinkFirstRep()
Gets the first repetition for link (),
creating it if it does not already exist.
|
Bundle.Link |
getLinkOrCreate(String theRelation)
|
String |
getResourceName() |
SignatureDt |
getSignature()
Gets the value(s) for signature ().
|
FhirVersionEnum |
getStructureFhirVersionEnum() |
Integer |
getTotal()
Gets the value(s) for total ().
|
UnsignedIntDt |
getTotalElement()
Gets the value(s) for total ().
|
String |
getType()
Gets the value(s) for type ().
|
BoundCodeDt<BundleTypeEnum> |
getTypeElement()
Gets the value(s) for type ().
|
boolean |
isEmpty() |
Bundle |
setEntry(List<Bundle.Entry> theValue)
Sets the value(s) for entry ()
|
Bundle |
setLink(List<Bundle.Link> theValue)
Sets the value(s) for link ()
|
Bundle |
setSignature(SignatureDt theValue)
Sets the value(s) for signature ()
|
Bundle |
setTotal(int theInteger)
Sets the value for total ()
|
Bundle |
setTotal(UnsignedIntDt theValue)
Sets the value(s) for total ()
|
Bundle |
setType(BoundCodeDt<BundleTypeEnum> theValue)
Sets the value(s) for type ()
|
Bundle |
setType(BundleTypeEnum theValue)
Sets the value(s) for type ()
|
getContained, getId, getIdElement, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_TYPE
Description:
Type: token
Path: Bundle.type
public static final TokenClientParam TYPE
Description:
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.resource(0)
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.resource(0)
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.resource(0)
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.resource(0)
public static final Include INCLUDE_COMPOSITION
public static final Include INCLUDE_MESSAGE
public Bundle()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic BoundCodeDt<BundleTypeEnum> getTypeElement()
null.
Definition: Indicates the purpose of this bundle- how it was intended to be used
public String getType()
null.
Definition: Indicates the purpose of this bundle- how it was intended to be used
public Bundle setType(BoundCodeDt<BundleTypeEnum> theValue)
Definition: Indicates the purpose of this bundle- how it was intended to be used
public Bundle setType(BundleTypeEnum theValue)
Definition: Indicates the purpose of this bundle- how it was intended to be used
public UnsignedIntDt getTotalElement()
null.
Definition: 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 Integer getTotal()
null.
Definition: 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 Bundle setTotal(UnsignedIntDt theValue)
Definition: 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 Bundle setTotal(int theInteger)
Definition: 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.Link> getLink()
null.
Definition: A series of links that provide context to this bundle
public Bundle setLink(List<Bundle.Link> theValue)
Definition: A series of links that provide context to this bundle
public Bundle.Link addLink()
Definition: A series of links that provide context to this bundle
public Bundle addLink(Bundle.Link theValue)
Definition: A series of links that provide context to this bundle
theValue - The link to add (must not be null)public Bundle.Link getLinkFirstRep()
Definition: A series of links that provide context to this bundle
public List<Bundle.Entry> getEntry()
null.
Definition: 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.Entry> theValue)
Definition: An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)
public Bundle.Entry addEntry()
Definition: An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)
public Bundle addEntry(Bundle.Entry theValue)
Definition: An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)
theValue - The entry to add (must not be null)public Bundle.Entry getEntryFirstRep()
Definition: An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)
public SignatureDt getSignature()
null.
Definition: Digital Signature - base64 encoded. XML DigSIg or a JWT
public Bundle setSignature(SignatureDt theValue)
Definition: Digital Signature - base64 encoded. XML DigSIg or a JWT
public String getResourceName()
getResourceName in interface IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourcepublic Bundle.Link 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 Link.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.Link getLinkOrCreate(String theRelation)
link which matches a given relation.
If no link is found which matches the given relation, creates a new Link 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 Link.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_SELFCopyright © 2014–2016 University Health Network. All rights reserved.