Class ElementDefinitionDt.Slicing
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.IResourceBlock
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Enclosing class:
ElementDefinitionDt
Definition: Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.model.primitive.StringDt
Adds and returns a new value for discriminator ()addDiscriminator
(ca.uhn.fhir.model.primitive.StringDt theValue) Adds a given new value for discriminator ()addDiscriminator
(String theString) Adds a new value for discriminator ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for description ().List
<ca.uhn.fhir.model.primitive.StringDt> Gets the value(s) for discriminator ().ca.uhn.fhir.model.primitive.StringDt
Gets the first repetition for discriminator (), creating it if it does not already exist.Gets the value(s) for ordered ().ca.uhn.fhir.model.primitive.BooleanDt
Gets the value(s) for ordered ().getRules()
Gets the value(s) for rules ().ca.uhn.fhir.model.primitive.BoundCodeDt
<SlicingRulesEnum> Gets the value(s) for rules ().boolean
isEmpty()
setDescription
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for description ()setDescription
(String theString) Sets the value for description ()setDiscriminator
(List<ca.uhn.fhir.model.primitive.StringDt> theValue) Sets the value(s) for discriminator ()setOrdered
(boolean theBoolean) Sets the value for ordered ()setOrdered
(ca.uhn.fhir.model.primitive.BooleanDt theValue) Sets the value(s) for ordered ()setRules
(SlicingRulesEnum theValue) Sets the value(s) for rules ()setRules
(ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum> theValue) Sets the value(s) for rules ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
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.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
-
Constructor Details
-
Slicing
public Slicing()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getDiscriminator
Gets the value(s) for discriminator (). creating it if it does not exist. Will not returnnull
.Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
-
setDiscriminator
public ElementDefinitionDt.Slicing setDiscriminator(List<ca.uhn.fhir.model.primitive.StringDt> theValue) Sets the value(s) for discriminator ()Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
-
addDiscriminator
Adds and returns a new value for discriminator ()Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
-
addDiscriminator
Adds a given new value for discriminator ()Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
- Parameters:
theValue
- The discriminator to add (must not benull
)
-
getDiscriminatorFirstRep
Gets the first repetition for discriminator (), creating it if it does not already exist.Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
-
addDiscriminator
Adds a new value for discriminator ()Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices
- Returns:
- Returns a reference to this object, to allow for simple chaining.
-
getDescriptionElement
Gets the value(s) for description (). creating it if it does not exist. Will not returnnull
.Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated
-
getDescription
Gets the value(s) for description (). creating it if it does not exist. This method may returnnull
.Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated
-
setDescription
Sets the value(s) for description ()Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated
-
setDescription
Sets the value for description ()Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated
-
getOrderedElement
Gets the value(s) for ordered (). creating it if it does not exist. Will not returnnull
.Definition: If the matching elements have to occur in the same order as defined in the profile
-
getOrdered
Gets the value(s) for ordered (). creating it if it does not exist. This method may returnnull
.Definition: If the matching elements have to occur in the same order as defined in the profile
-
setOrdered
Sets the value(s) for ordered ()Definition: If the matching elements have to occur in the same order as defined in the profile
-
setOrdered
Sets the value for ordered ()Definition: If the matching elements have to occur in the same order as defined in the profile
-
getRulesElement
Gets the value(s) for rules (). creating it if it does not exist. Will not returnnull
.Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
-
getRules
Gets the value(s) for rules (). creating it if it does not exist. This method may returnnull
.Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
-
setRules
public ElementDefinitionDt.Slicing setRules(ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum> theValue) Sets the value(s) for rules ()Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
-
setRules
Sets the value(s) for rules ()Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
-