Package ca.uhn.fhir.context.api
Enum BundleInclusionRule
- All Implemented Interfaces:
Serializable
,Comparable<BundleInclusionRule>
Created by Bill de Beaubien on 3/4/2015.
Controls how bundles decide whether referenced resources should be included
-
Enum Constant Summary
Enum ConstantDescriptionDecision is based on whether the resource's Include is in the IncludeSet (e.g.Decision is based on whether the resource reference is set to a populated resource (in which case its included) or just an id (in which case it's not included) This is the original HAPI behavior -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
shouldIncludeReferencedResource
(ResourceReferenceInfo theReferenceInfo, Set<Include> theIncludes) static BundleInclusionRule
Returns the enum constant of this type with the specified name.static BundleInclusionRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASED_ON_INCLUDES
Decision is based on whether the resource's Include is in the IncludeSet (e.g. DiagnosticReport.result). Note that the resource has to be populated to be included. This is the default behavior -
BASED_ON_RESOURCE_PRESENCE
Decision is based on whether the resource reference is set to a populated resource (in which case its included) or just an id (in which case it's not included) This is the original HAPI behavior
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
shouldIncludeReferencedResource
public abstract boolean shouldIncludeReferencedResource(ResourceReferenceInfo theReferenceInfo, Set<Include> theIncludes)
-