Package org.hl7.fhir.r5.model
Class ElementDefinition.ElementDefinitionConstraintComponent
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.Element
org.hl7.fhir.r5.model.ElementDefinition.ElementDefinitionConstraintComponent
- 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.ElementDefinitionConstraintComponent
extends Element
implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason
-
Field Summary
Modifier and TypeFieldDescriptionprotected StringType
A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met.protected StringType
Text that can be used to describe the constraint in messages identifying that the constraint has been violated.protected IdType
Allows identification of which elements have their cardinalities impacted by the constraint.protected MarkdownType
Description of why this constraint is necessary or appropriate.protected Enumeration
<ElementDefinition.ConstraintSeverity> Identifies the impact constraint violation has on the conformance of the instance.protected CanonicalType
A reference to the original source of the constraint, for traceability purposes.protected BooleanType
If true, indicates that the warning or best practice guideline should be suppressed. -
Constructor Summary
ConstructorDescriptionConstructorElementDefinitionConstraintComponent
(String key, ElementDefinition.ConstraintSeverity severity, String human) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getHuman()
getKey()
getNamedProperty
(int _hash, String _name, boolean _checkValid) Base[]
getProperty
(int hash, String name, boolean checkValid) boolean
String[]
getTypesForProperty
(int hash, String name) boolean
boolean
boolean
hasHuman()
boolean
boolean
hasKey()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) setExpression
(String value) setExpressionElement
(StringType value) setHumanElement
(StringType value) setKeyElement
(IdType value) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setRequirements
(String value) setSourceElement
(CanonicalType value) setSuppress
(boolean value) setSuppressElement
(BooleanType value) toString()
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getExtensionString, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getStandardsStatus, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setStandardsStatus
Methods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
key
Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality. -
requirements
Description of why this constraint is necessary or appropriate. -
severity
Identifies the impact constraint violation has on the conformance of the instance. -
suppress
If true, indicates that the warning or best practice guideline should be suppressed. -
human
Text that can be used to describe the constraint in messages identifying that the constraint has been violated. -
expression
A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met. -
source
A reference to the original source of the constraint, for traceability purposes.
-
-
Constructor Details
-
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent()Constructor -
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent(String key, ElementDefinition.ConstraintSeverity severity, String human) Constructor
-
-
Method Details
-
getKeyElement
- Returns:
key
(Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.). This is the underlying object with id, value and extensions. The accessor "getKey" gives direct access to the value
-
hasKeyElement
-
hasKey
-
setKeyElement
- Parameters:
value
-key
(Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.). This is the underlying object with id, value and extensions. The accessor "getKey" gives direct access to the value
-
getKey
- Returns:
- Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
-
setKey
- Parameters:
value
- Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
-
getRequirementsElement
- Returns:
requirements
(Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
hasRequirementsElement
-
hasRequirements
-
setRequirementsElement
public ElementDefinition.ElementDefinitionConstraintComponent setRequirementsElement(MarkdownType value) - Parameters:
value
-requirements
(Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
getRequirements
- Returns:
- Description of why this constraint is necessary or appropriate.
-
setRequirements
- Parameters:
value
- Description of why this constraint is necessary or appropriate.
-
getSeverityElement
- Returns:
severity
(Identifies the impact constraint violation has on the conformance of the instance.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
-
hasSeverityElement
-
hasSeverity
-
setSeverityElement
public ElementDefinition.ElementDefinitionConstraintComponent setSeverityElement(Enumeration<ElementDefinition.ConstraintSeverity> value) - Parameters:
value
-severity
(Identifies the impact constraint violation has on the conformance of the instance.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
-
getSeverity
- Returns:
- Identifies the impact constraint violation has on the conformance of the instance.
-
setSeverity
public ElementDefinition.ElementDefinitionConstraintComponent setSeverity(ElementDefinition.ConstraintSeverity value) - Parameters:
value
- Identifies the impact constraint violation has on the conformance of the instance.
-
getSuppressElement
- Returns:
suppress
(If true, indicates that the warning or best practice guideline should be suppressed.). This is the underlying object with id, value and extensions. The accessor "getSuppress" gives direct access to the value
-
hasSuppressElement
-
hasSuppress
-
setSuppressElement
- Parameters:
value
-suppress
(If true, indicates that the warning or best practice guideline should be suppressed.). This is the underlying object with id, value and extensions. The accessor "getSuppress" gives direct access to the value
-
getSuppress
- Returns:
- If true, indicates that the warning or best practice guideline should be suppressed.
-
setSuppress
- Parameters:
value
- If true, indicates that the warning or best practice guideline should be suppressed.
-
getHumanElement
- Returns:
human
(Text that can be used to describe the constraint in messages identifying that the constraint has been violated.). This is the underlying object with id, value and extensions. The accessor "getHuman" gives direct access to the value
-
hasHumanElement
-
hasHuman
-
setHumanElement
- Parameters:
value
-human
(Text that can be used to describe the constraint in messages identifying that the constraint has been violated.). This is the underlying object with id, value and extensions. The accessor "getHuman" gives direct access to the value
-
getHuman
- Returns:
- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
setHuman
- Parameters:
value
- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
getExpressionElement
- Returns:
expression
(A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
-
hasExpressionElement
-
hasExpression
-
setExpressionElement
public ElementDefinition.ElementDefinitionConstraintComponent setExpressionElement(StringType value) - Parameters:
value
-expression
(A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
-
getExpression
- Returns:
- A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met.
-
setExpression
- Parameters:
value
- A [FHIRPath](fhirpath.html) expression of constraint that can be executed to see if this constraint is met.
-
getSourceElement
- Returns:
source
(A reference to the original source of the constraint, for traceability purposes.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
-
hasSourceElement
-
hasSource
-
setSourceElement
- Parameters:
value
-source
(A reference to the original source of the constraint, for traceability purposes.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
-
getSource
- Returns:
- A reference to the original source of the constraint, for traceability purposes.
-
setSource
- Parameters:
value
- A reference to the original source of the constraint, for traceability purposes.
-
listChildren
- 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
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChild
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- 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
-
addChild
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-
fhirType
-
toString
-