
Package org.hl7.fhir.dstu3.model
Class ElementDefinition.ElementDefinitionSlicingComponent
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Base
-
- org.hl7.fhir.dstu3.model.Element
-
- org.hl7.fhir.dstu3.model.ElementDefinition.ElementDefinitionSlicingComponent
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatypeElement
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
- Enclosing class:
- ElementDefinition
public static class ElementDefinition.ElementDefinitionSlicingComponent extends Element implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringType
description
A human-readable text description of how the slicing works.protected List<ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent>
discriminator
Designates which child elements are used to discriminate between the slices when processing an instance.protected BooleanType
ordered
If the matching elements have to occur in the same order as defined in the profile.protected Enumeration<ElementDefinition.SlicingRules>
rules
Whether additional slices are allowed or not.
-
Constructor Summary
Constructors Constructor Description ElementDefinitionSlicingComponent()
ConstructorElementDefinitionSlicingComponent(Enumeration<ElementDefinition.SlicingRules> rules)
Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu3.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu3.model.Base
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, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
discriminator
protected List<ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent> discriminator
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.
-
description
protected StringType description
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.
-
ordered
protected BooleanType ordered
If the matching elements have to occur in the same order as defined in the profile.
-
rules
protected Enumeration<ElementDefinition.SlicingRules> rules
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.
-
-
Constructor Detail
-
ElementDefinitionSlicingComponent
public ElementDefinitionSlicingComponent()
Constructor
-
ElementDefinitionSlicingComponent
public ElementDefinitionSlicingComponent(Enumeration<ElementDefinition.SlicingRules> rules)
Constructor
-
-
Method Detail
-
getDiscriminator
public List<ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent> getDiscriminator()
- Returns:
discriminator
(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 ElementDefinition.ElementDefinitionSlicingComponent setDiscriminator(List<ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent> theDiscriminator)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasDiscriminator
public boolean hasDiscriminator()
-
addDiscriminator
public ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent addDiscriminator()
-
addDiscriminator
public ElementDefinition.ElementDefinitionSlicingComponent addDiscriminator(ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent t)
-
getDiscriminatorFirstRep
public ElementDefinition.ElementDefinitionSlicingDiscriminatorComponent getDiscriminatorFirstRep()
- Returns:
- The first repetition of repeating field
discriminator
, creating it if it does not already exist
-
getDescriptionElement
public StringType getDescriptionElement()
- Returns:
description
(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.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
public boolean hasDescriptionElement()
-
hasDescription
public boolean hasDescription()
-
setDescriptionElement
public ElementDefinition.ElementDefinitionSlicingComponent setDescriptionElement(StringType value)
- Parameters:
value
-description
(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.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
public String getDescription()
- Returns:
- 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 ElementDefinition.ElementDefinitionSlicingComponent setDescription(String value)
- Parameters:
value
- 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 BooleanType getOrderedElement()
- Returns:
ordered
(If the matching elements have to occur in the same order as defined in the profile.). This is the underlying object with id, value and extensions. The accessor "getOrdered" gives direct access to the value
-
hasOrderedElement
public boolean hasOrderedElement()
-
hasOrdered
public boolean hasOrdered()
-
setOrderedElement
public ElementDefinition.ElementDefinitionSlicingComponent setOrderedElement(BooleanType value)
- Parameters:
value
-ordered
(If the matching elements have to occur in the same order as defined in the profile.). This is the underlying object with id, value and extensions. The accessor "getOrdered" gives direct access to the value
-
getOrdered
public boolean getOrdered()
- Returns:
- If the matching elements have to occur in the same order as defined in the profile.
-
setOrdered
public ElementDefinition.ElementDefinitionSlicingComponent setOrdered(boolean value)
- Parameters:
value
- If the matching elements have to occur in the same order as defined in the profile.
-
getRulesElement
public Enumeration<ElementDefinition.SlicingRules> getRulesElement()
- Returns:
rules
(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.). This is the underlying object with id, value and extensions. The accessor "getRules" gives direct access to the value
-
hasRulesElement
public boolean hasRulesElement()
-
hasRules
public boolean hasRules()
-
setRulesElement
public ElementDefinition.ElementDefinitionSlicingComponent setRulesElement(Enumeration<ElementDefinition.SlicingRules> value)
- Parameters:
value
-rules
(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.). This is the underlying object with id, value and extensions. The accessor "getRules" gives direct access to the value
-
getRules
public ElementDefinition.SlicingRules getRules()
- Returns:
- 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 ElementDefinition.ElementDefinitionSlicingComponent setRules(ElementDefinition.SlicingRules value)
- Parameters:
value
- 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.
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public ElementDefinition.ElementDefinitionSlicingComponent copy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeep
in classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallow
in classElement
-
isEmpty
public boolean isEmpty()
-
-