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
|
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.
|
static ReferenceClientParam |
MESSAGE
Fluent Client search parameter constant for message
|
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
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
LINK_NEXT, LINK_PREV, LINK_SELF
INCLUDE_ALL, WILDCARD_ALL_SET
RES_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, setMeta
getStructureFhirVersionEnum, isResource, setId
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, setUserDataINN
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdElement, getMeta, getStructureFhirVersionEnum, setId, setId
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
getUserData, setUserData
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
.null
IBaseBundle.LINK_NEXT
,
IBaseBundle.LINK_PREV
,
IBaseBundle.LINK_SELF
public 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
.null
IBaseBundle.LINK_NEXT
,
IBaseBundle.LINK_PREV
,
IBaseBundle.LINK_SELF
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty
in class Resource
org.hl7.fhir.exceptions.FHIRException
public boolean equalsDeep(Base other_)
equalsDeep
in class Resource
public boolean equalsShallow(Base other_)
equalsShallow
in class Resource
public boolean isEmpty()
public ResourceType getResourceType()
getResourceType
in class Resource
Copyright © 2014–2019 University Health Network. All rights reserved.