Class ElementDefinitionDt.Slicing
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.composite.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
public static class ElementDefinitionDt.Slicing extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: ElementDefinition.slicing ()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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Slicing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ca.uhn.fhir.model.primitive.StringDtaddDiscriminator()Adds and returns a new value for discriminator ()ElementDefinitionDt.SlicingaddDiscriminator(ca.uhn.fhir.model.primitive.StringDt theValue)Adds a given new value for discriminator ()ElementDefinitionDt.SlicingaddDiscriminator(String theString)Adds a new value for discriminator ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)StringgetDescription()Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDtgetDescriptionElement()Gets the value(s) for description ().List<ca.uhn.fhir.model.primitive.StringDt>getDiscriminator()Gets the value(s) for discriminator ().ca.uhn.fhir.model.primitive.StringDtgetDiscriminatorFirstRep()Gets the first repetition for discriminator (), creating it if it does not already exist.BooleangetOrdered()Gets the value(s) for ordered ().ca.uhn.fhir.model.primitive.BooleanDtgetOrderedElement()Gets the value(s) for ordered ().StringgetRules()Gets the value(s) for rules ().ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum>getRulesElement()Gets the value(s) for rules ().booleanisEmpty()ElementDefinitionDt.SlicingsetDescription(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for description ()ElementDefinitionDt.SlicingsetDescription(String theString)Sets the value for description ()ElementDefinitionDt.SlicingsetDiscriminator(List<ca.uhn.fhir.model.primitive.StringDt> theValue)Sets the value(s) for discriminator ()ElementDefinitionDt.SlicingsetOrdered(boolean theBoolean)Sets the value for ordered ()ElementDefinitionDt.SlicingsetOrdered(ca.uhn.fhir.model.primitive.BooleanDt theValue)Sets the value(s) for ordered ()ElementDefinitionDt.SlicingsetRules(SlicingRulesEnum theValue)Sets the value(s) for rules ()ElementDefinitionDt.SlicingsetRules(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
-
-
-
-
Constructor Detail
-
Slicing
public Slicing()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getDiscriminator
public List<ca.uhn.fhir.model.primitive.StringDt> 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
public ca.uhn.fhir.model.primitive.StringDt 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
public ElementDefinitionDt.Slicing addDiscriminator(ca.uhn.fhir.model.primitive.StringDt theValue)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public ElementDefinitionDt.Slicing addDiscriminator(String theString)
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
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public ElementDefinitionDt.Slicing setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
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
public ElementDefinitionDt.Slicing setDescription(String theString)
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
public ca.uhn.fhir.model.primitive.BooleanDt 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
public Boolean 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
public ElementDefinitionDt.Slicing setOrdered(ca.uhn.fhir.model.primitive.BooleanDt theValue)
Sets the value(s) for ordered ()Definition: If the matching elements have to occur in the same order as defined in the profile
-
setOrdered
public ElementDefinitionDt.Slicing setOrdered(boolean theBoolean)
Sets the value for ordered ()Definition: If the matching elements have to occur in the same order as defined in the profile
-
getRulesElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum> 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
public String 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
public ElementDefinitionDt.Slicing setRules(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
-
-