Package org.hl7.fhir.dstu2.model
Class ElementDefinition
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.Type
-
- org.hl7.fhir.dstu2.model.ElementDefinition
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class ElementDefinition extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
Captures constraints on each element within the resource, profile, or extension.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElementDefinition.AggregationModestatic classElementDefinition.AggregationModeEnumFactorystatic classElementDefinition.ConstraintSeveritystatic classElementDefinition.ConstraintSeverityEnumFactorystatic classElementDefinition.ElementDefinitionBaseComponentstatic classElementDefinition.ElementDefinitionBindingComponentstatic classElementDefinition.ElementDefinitionConstraintComponentstatic classElementDefinition.ElementDefinitionMappingComponentstatic classElementDefinition.ElementDefinitionSlicingComponentstatic classElementDefinition.PropertyRepresentationstatic classElementDefinition.PropertyRepresentationEnumFactorystatic classElementDefinition.SlicingRulesstatic classElementDefinition.SlicingRulesEnumFactorystatic classElementDefinition.TypeRefComponent
-
Field Summary
Fields Modifier and Type Field Description protected List<StringType>aliasIdentifies additional names by which this element might also be known.protected ElementDefinition.ElementDefinitionBaseComponentbaseInformation about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles.protected ElementDefinition.ElementDefinitionBindingComponentbindingBinds to a value set if this element is coded (code, Coding, CodeableConcept).protected List<Coding>codeA code that provides the meaning for the element according to a particular terminology.protected MarkdownTypecommentsExplanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.protected List<IdType>conditionA reference to an invariant that may make additional statements about the cardinality or value in the instance.protected List<ElementDefinition.ElementDefinitionConstraintComponent>constraintFormal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.protected TypedefaultValueThe value that should be used if there is no value stated in the instance (e.g.protected MarkdownTypedefinitionProvides a complete explanation of the meaning of the data element for human readability.protected TypeexampleA sample value for this element demonstrating the type of information that would typically be captured.protected TypefixedSpecifies a value that SHALL be exactly the value for this element in the instance.protected BooleanTypeisModifierIf true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored.protected BooleanTypeisSummaryWhether the element should be included if a client requests a search with the parameter _summary=true.protected StringTypelabelThe text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.protected List<ElementDefinition.ElementDefinitionMappingComponent>mappingIdentifies a concept from an external specification that roughly corresponds to this element.protected StringTypemaxThe maximum number of times this element is permitted to appear in the instance.protected IntegerTypemaxLengthIndicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.protected TypemaxValueThe maximum allowed value for the element.protected MarkdownTypemeaningWhenMissingThe Implicit meaning that is to be understood when this element is missing (e.g.protected IntegerTypeminThe minimum number of times this element SHALL appear in the instance.protected TypeminValueThe minimum allowed value for the element.protected BooleanTypemustSupportIf true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way.protected StringTypenameThe name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference).protected StringTypenameReferenceIdentifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.protected StringTypepathThe path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.protected TypepatternSpecifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance.protected List<Enumeration<ElementDefinition.PropertyRepresentation>>representationCodes that define how this element is represented in instances, when the deviation varies from the normal case.protected MarkdownTyperequirementsThis element is for traceability of why the element was created and why the constraints exist as they do.protected StringTypeshort_A concise description of what this element means (e.g.protected ElementDefinition.ElementDefinitionSlicingComponentslicingIndicates that the element is sliced into a set of alternative definitions (i.e.protected List<ElementDefinition.TypeRefComponent>typeThe data type or resource that the value of this element is permitted to be.
-
Constructor Summary
Constructors Constructor Description ElementDefinition()ElementDefinition(StringType path)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
path
protected StringType path
The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.
-
representation
protected List<Enumeration<ElementDefinition.PropertyRepresentation>> representation
Codes that define how this element is represented in instances, when the deviation varies from the normal case.
-
name
protected StringType name
The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
-
label
protected StringType label
The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
-
code
protected List<Coding> code
A code that provides the meaning for the element according to a particular terminology.
-
slicing
protected ElementDefinition.ElementDefinitionSlicingComponent slicing
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).
-
short_
protected StringType short_
A concise description of what this element means (e.g. for use in autogenerated summaries).
-
definition
protected MarkdownType definition
Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.
-
comments
protected MarkdownType comments
Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
-
requirements
protected MarkdownType requirements
This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.
-
alias
protected List<StringType> alias
Identifies additional names by which this element might also be known.
-
min
protected IntegerType min
The minimum number of times this element SHALL appear in the instance.
-
max
protected StringType max
The maximum number of times this element is permitted to appear in the instance.
-
base
protected ElementDefinition.ElementDefinitionBaseComponent base
Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.
-
type
protected List<ElementDefinition.TypeRefComponent> type
The data type or resource that the value of this element is permitted to be.
-
nameReference
protected StringType nameReference
Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
-
defaultValue
protected Type defaultValue
The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').
-
meaningWhenMissing
protected MarkdownType meaningWhenMissing
The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.
-
fixed
protected Type fixed
Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.
-
pattern
protected Type pattern
Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).
-
example
protected Type example
A sample value for this element demonstrating the type of information that would typically be captured.
-
minValue
protected Type minValue
The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.
-
maxValue
protected Type maxValue
The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.
-
maxLength
protected IntegerType maxLength
Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.
-
condition
protected List<IdType> condition
A reference to an invariant that may make additional statements about the cardinality or value in the instance.
-
constraint
protected List<ElementDefinition.ElementDefinitionConstraintComponent> constraint
Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.
-
mustSupport
protected BooleanType mustSupport
If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.
-
isModifier
protected BooleanType isModifier
If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
-
isSummary
protected BooleanType isSummary
Whether the element should be included if a client requests a search with the parameter _summary=true.
-
binding
protected ElementDefinition.ElementDefinitionBindingComponent binding
Binds to a value set if this element is coded (code, Coding, CodeableConcept).
-
mapping
protected List<ElementDefinition.ElementDefinitionMappingComponent> mapping
Identifies a concept from an external specification that roughly corresponds to this element.
-
-
Constructor Detail
-
ElementDefinition
public ElementDefinition()
-
ElementDefinition
public ElementDefinition(StringType path)
-
-
Method Detail
-
getPathElement
public StringType getPathElement()
- Returns:
path(The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
-
hasPathElement
public boolean hasPathElement()
-
hasPath
public boolean hasPath()
-
setPathElement
public ElementDefinition setPathElement(StringType value)
- Parameters:
value-path(The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.). This is the underlying object with id, value and extensions. The accessor "getPath" gives direct access to the value
-
getPath
public String getPath()
- Returns:
- The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.
-
setPath
public ElementDefinition setPath(String value)
- Parameters:
value- The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.
-
getRepresentation
public List<Enumeration<ElementDefinition.PropertyRepresentation>> getRepresentation()
- Returns:
representation(Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
-
setRepresentation
public ElementDefinition setRepresentation(List<Enumeration<ElementDefinition.PropertyRepresentation>> representation)
-
hasRepresentation
public boolean hasRepresentation()
-
addRepresentationElement
public Enumeration<ElementDefinition.PropertyRepresentation> addRepresentationElement()
- Returns:
representation(Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
-
addRepresentation
public ElementDefinition addRepresentation(ElementDefinition.PropertyRepresentation value)
- Parameters:
value-representation(Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
-
hasRepresentation
public boolean hasRepresentation(ElementDefinition.PropertyRepresentation value)
- Parameters:
value-representation(Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
-
getNameElement
public StringType getNameElement()
- Returns:
name(The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
hasNameElement
public boolean hasNameElement()
-
hasName
public boolean hasName()
-
setNameElement
public ElementDefinition setNameElement(StringType value)
- Parameters:
value-name(The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
-
getName
public String getName()
- Returns:
- The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
-
setName
public ElementDefinition setName(String value)
- Parameters:
value- The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
-
getLabelElement
public StringType getLabelElement()
- Returns:
label(The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value
-
hasLabelElement
public boolean hasLabelElement()
-
hasLabel
public boolean hasLabel()
-
setLabelElement
public ElementDefinition setLabelElement(StringType value)
- Parameters:
value-label(The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.). This is the underlying object with id, value and extensions. The accessor "getLabel" gives direct access to the value
-
getLabel
public String getLabel()
- Returns:
- The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
-
setLabel
public ElementDefinition setLabel(String value)
- Parameters:
value- The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
-
getCode
public List<Coding> getCode()
- Returns:
code(A code that provides the meaning for the element according to a particular terminology.)
-
hasCode
public boolean hasCode()
-
addCode
public Coding addCode()
- Returns:
code(A code that provides the meaning for the element according to a particular terminology.)
-
addCode
public ElementDefinition addCode(Coding t)
-
getSlicing
public ElementDefinition.ElementDefinitionSlicingComponent getSlicing()
- Returns:
slicing(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).)
-
hasSlicing
public boolean hasSlicing()
-
setSlicing
public ElementDefinition setSlicing(ElementDefinition.ElementDefinitionSlicingComponent value)
- Parameters:
value-slicing(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).)
-
getShortElement
public StringType getShortElement()
- Returns:
short_(A concise description of what this element means (e.g. for use in autogenerated summaries).). This is the underlying object with id, value and extensions. The accessor "getShort" gives direct access to the value
-
hasShortElement
public boolean hasShortElement()
-
hasShort
public boolean hasShort()
-
setShortElement
public ElementDefinition setShortElement(StringType value)
- Parameters:
value-short_(A concise description of what this element means (e.g. for use in autogenerated summaries).). This is the underlying object with id, value and extensions. The accessor "getShort" gives direct access to the value
-
getShort
public String getShort()
- Returns:
- A concise description of what this element means (e.g. for use in autogenerated summaries).
-
setShort
public ElementDefinition setShort(String value)
- Parameters:
value- A concise description of what this element means (e.g. for use in autogenerated summaries).
-
getDefinitionElement
public MarkdownType getDefinitionElement()
- Returns:
definition(Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value
-
hasDefinitionElement
public boolean hasDefinitionElement()
-
hasDefinition
public boolean hasDefinition()
-
setDefinitionElement
public ElementDefinition setDefinitionElement(MarkdownType value)
- Parameters:
value-definition(Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value
-
getDefinition
public String getDefinition()
- Returns:
- Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.
-
setDefinition
public ElementDefinition setDefinition(String value)
- Parameters:
value- Provides a complete explanation of the meaning of the data element for human readability. For the case of elements derived from existing elements (e.g. constraints), the definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.
-
getCommentsElement
public MarkdownType getCommentsElement()
- Returns:
comments(Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
-
hasCommentsElement
public boolean hasCommentsElement()
-
hasComments
public boolean hasComments()
-
setCommentsElement
public ElementDefinition setCommentsElement(MarkdownType value)
- Parameters:
value-comments(Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
-
getComments
public String getComments()
- Returns:
- Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
-
setComments
public ElementDefinition setComments(String value)
- Parameters:
value- Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
-
getRequirementsElement
public MarkdownType getRequirementsElement()
- Returns:
requirements(This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
hasRequirementsElement
public boolean hasRequirementsElement()
-
hasRequirements
public boolean hasRequirements()
-
setRequirementsElement
public ElementDefinition setRequirementsElement(MarkdownType value)
- Parameters:
value-requirements(This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
getRequirements
public String getRequirements()
- Returns:
- This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.
-
setRequirements
public ElementDefinition setRequirements(String value)
- Parameters:
value- This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.
-
getAlias
public List<StringType> getAlias()
- Returns:
alias(Identifies additional names by which this element might also be known.)
-
hasAlias
public boolean hasAlias()
-
addAliasElement
public StringType addAliasElement()
- Returns:
alias(Identifies additional names by which this element might also be known.)
-
addAlias
public ElementDefinition addAlias(String value)
- Parameters:
value-alias(Identifies additional names by which this element might also be known.)
-
hasAlias
public boolean hasAlias(String value)
- Parameters:
value-alias(Identifies additional names by which this element might also be known.)
-
getMinElement
public IntegerType getMinElement()
- Returns:
min(The minimum number of times this element SHALL appear in the instance.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value
-
hasMinElement
public boolean hasMinElement()
-
hasMin
public boolean hasMin()
-
setMinElement
public ElementDefinition setMinElement(IntegerType value)
- Parameters:
value-min(The minimum number of times this element SHALL appear in the instance.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value
-
getMin
public int getMin()
- Returns:
- The minimum number of times this element SHALL appear in the instance.
-
setMin
public ElementDefinition setMin(int value)
- Parameters:
value- The minimum number of times this element SHALL appear in the instance.
-
getMaxElement
public StringType getMaxElement()
- Returns:
max(The maximum number of times this element is permitted to appear in the instance.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value
-
hasMaxElement
public boolean hasMaxElement()
-
hasMax
public boolean hasMax()
-
setMaxElement
public ElementDefinition setMaxElement(StringType value)
- Parameters:
value-max(The maximum number of times this element is permitted to appear in the instance.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value
-
getMax
public String getMax()
- Returns:
- The maximum number of times this element is permitted to appear in the instance.
-
setMax
public ElementDefinition setMax(String value)
- Parameters:
value- The maximum number of times this element is permitted to appear in the instance.
-
getBase
public ElementDefinition.ElementDefinitionBaseComponent getBase()
- Returns:
base(Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
-
hasBase
public boolean hasBase()
-
setBase
public ElementDefinition setBase(ElementDefinition.ElementDefinitionBaseComponent value)
- Parameters:
value-base(Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
-
getType
public List<ElementDefinition.TypeRefComponent> getType()
- Returns:
type(The data type or resource that the value of this element is permitted to be.)
-
hasType
public boolean hasType()
-
addType
public ElementDefinition.TypeRefComponent addType()
- Returns:
type(The data type or resource that the value of this element is permitted to be.)
-
addType
public ElementDefinition addType(ElementDefinition.TypeRefComponent t)
-
getNameReferenceElement
public StringType getNameReferenceElement()
- Returns:
nameReference(Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getNameReference" gives direct access to the value
-
hasNameReferenceElement
public boolean hasNameReferenceElement()
-
hasNameReference
public boolean hasNameReference()
-
setNameReferenceElement
public ElementDefinition setNameReferenceElement(StringType value)
- Parameters:
value-nameReference(Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getNameReference" gives direct access to the value
-
getNameReference
public String getNameReference()
- Returns:
- Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
-
setNameReference
public ElementDefinition setNameReference(String value)
- Parameters:
value- Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
-
getDefaultValue
public Type getDefaultValue()
- Returns:
defaultValue(The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').)
-
hasDefaultValue
public boolean hasDefaultValue()
-
setDefaultValue
public ElementDefinition setDefaultValue(Type value)
- Parameters:
value-defaultValue(The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').)
-
getMeaningWhenMissingElement
public MarkdownType getMeaningWhenMissingElement()
- Returns:
meaningWhenMissing(The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.). This is the underlying object with id, value and extensions. The accessor "getMeaningWhenMissing" gives direct access to the value
-
hasMeaningWhenMissingElement
public boolean hasMeaningWhenMissingElement()
-
hasMeaningWhenMissing
public boolean hasMeaningWhenMissing()
-
setMeaningWhenMissingElement
public ElementDefinition setMeaningWhenMissingElement(MarkdownType value)
- Parameters:
value-meaningWhenMissing(The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.). This is the underlying object with id, value and extensions. The accessor "getMeaningWhenMissing" gives direct access to the value
-
getMeaningWhenMissing
public String getMeaningWhenMissing()
- Returns:
- The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.
-
setMeaningWhenMissing
public ElementDefinition setMeaningWhenMissing(String value)
- Parameters:
value- The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.
-
getFixed
public Type getFixed()
- Returns:
fixed(Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.)
-
hasFixed
public boolean hasFixed()
-
setFixed
public ElementDefinition setFixed(Type value)
- Parameters:
value-fixed(Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.)
-
getPattern
public Type getPattern()
- Returns:
pattern(Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).)
-
hasPattern
public boolean hasPattern()
-
setPattern
public ElementDefinition setPattern(Type value)
- Parameters:
value-pattern(Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).)
-
getExample
public Type getExample()
- Returns:
example(A sample value for this element demonstrating the type of information that would typically be captured.)
-
hasExample
public boolean hasExample()
-
setExample
public ElementDefinition setExample(Type value)
- Parameters:
value-example(A sample value for this element demonstrating the type of information that would typically be captured.)
-
getMinValue
public Type getMinValue()
- Returns:
minValue(The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
-
hasMinValue
public boolean hasMinValue()
-
setMinValue
public ElementDefinition setMinValue(Type value)
- Parameters:
value-minValue(The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
-
getMaxValue
public Type getMaxValue()
- Returns:
maxValue(The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
-
hasMaxValue
public boolean hasMaxValue()
-
setMaxValue
public ElementDefinition setMaxValue(Type value)
- Parameters:
value-maxValue(The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
-
getMaxLengthElement
public IntegerType getMaxLengthElement()
- Returns:
maxLength(Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.). This is the underlying object with id, value and extensions. The accessor "getMaxLength" gives direct access to the value
-
hasMaxLengthElement
public boolean hasMaxLengthElement()
-
hasMaxLength
public boolean hasMaxLength()
-
setMaxLengthElement
public ElementDefinition setMaxLengthElement(IntegerType value)
- Parameters:
value-maxLength(Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.). This is the underlying object with id, value and extensions. The accessor "getMaxLength" gives direct access to the value
-
getMaxLength
public int getMaxLength()
- Returns:
- Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.
-
setMaxLength
public ElementDefinition setMaxLength(int value)
- Parameters:
value- Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.
-
getCondition
public List<IdType> getCondition()
- Returns:
condition(A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
-
hasCondition
public boolean hasCondition()
-
addConditionElement
public IdType addConditionElement()
- Returns:
condition(A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
-
addCondition
public ElementDefinition addCondition(String value)
- Parameters:
value-condition(A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
-
hasCondition
public boolean hasCondition(String value)
- Parameters:
value-condition(A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
-
getConstraint
public List<ElementDefinition.ElementDefinitionConstraintComponent> getConstraint()
- Returns:
constraint(Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.)
-
hasConstraint
public boolean hasConstraint()
-
addConstraint
public ElementDefinition.ElementDefinitionConstraintComponent addConstraint()
- Returns:
constraint(Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.)
-
addConstraint
public ElementDefinition addConstraint(ElementDefinition.ElementDefinitionConstraintComponent t)
-
getMustSupportElement
public BooleanType getMustSupportElement()
- Returns:
mustSupport(If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.). This is the underlying object with id, value and extensions. The accessor "getMustSupport" gives direct access to the value
-
hasMustSupportElement
public boolean hasMustSupportElement()
-
hasMustSupport
public boolean hasMustSupport()
-
setMustSupportElement
public ElementDefinition setMustSupportElement(BooleanType value)
- Parameters:
value-mustSupport(If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.). This is the underlying object with id, value and extensions. The accessor "getMustSupport" gives direct access to the value
-
getMustSupport
public boolean getMustSupport()
- Returns:
- If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.
-
setMustSupport
public ElementDefinition setMustSupport(boolean value)
- Parameters:
value- If true, implementations that produce or consume resources SHALL provide "support" for the element in some meaningful way. If false, the element may be ignored and not supported.
-
getIsModifierElement
public BooleanType getIsModifierElement()
- Returns:
isModifier(If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.). This is the underlying object with id, value and extensions. The accessor "getIsModifier" gives direct access to the value
-
hasIsModifierElement
public boolean hasIsModifierElement()
-
hasIsModifier
public boolean hasIsModifier()
-
setIsModifierElement
public ElementDefinition setIsModifierElement(BooleanType value)
- Parameters:
value-isModifier(If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.). This is the underlying object with id, value and extensions. The accessor "getIsModifier" gives direct access to the value
-
getIsModifier
public boolean getIsModifier()
- Returns:
- If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
-
setIsModifier
public ElementDefinition setIsModifier(boolean value)
- Parameters:
value- If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
-
getIsSummaryElement
public BooleanType getIsSummaryElement()
- Returns:
isSummary(Whether the element should be included if a client requests a search with the parameter _summary=true.). This is the underlying object with id, value and extensions. The accessor "getIsSummary" gives direct access to the value
-
hasIsSummaryElement
public boolean hasIsSummaryElement()
-
hasIsSummary
public boolean hasIsSummary()
-
setIsSummaryElement
public ElementDefinition setIsSummaryElement(BooleanType value)
- Parameters:
value-isSummary(Whether the element should be included if a client requests a search with the parameter _summary=true.). This is the underlying object with id, value and extensions. The accessor "getIsSummary" gives direct access to the value
-
getIsSummary
public boolean getIsSummary()
- Returns:
- Whether the element should be included if a client requests a search with the parameter _summary=true.
-
setIsSummary
public ElementDefinition setIsSummary(boolean value)
- Parameters:
value- Whether the element should be included if a client requests a search with the parameter _summary=true.
-
getBinding
public ElementDefinition.ElementDefinitionBindingComponent getBinding()
- Returns:
binding(Binds to a value set if this element is coded (code, Coding, CodeableConcept).)
-
hasBinding
public boolean hasBinding()
-
setBinding
public ElementDefinition setBinding(ElementDefinition.ElementDefinitionBindingComponent value)
- Parameters:
value-binding(Binds to a value set if this element is coded (code, Coding, CodeableConcept).)
-
getMapping
public List<ElementDefinition.ElementDefinitionMappingComponent> getMapping()
- Returns:
mapping(Identifies a concept from an external specification that roughly corresponds to this element.)
-
hasMapping
public boolean hasMapping()
-
addMapping
public ElementDefinition.ElementDefinitionMappingComponent addMapping()
- Returns:
mapping(Identifies a concept from an external specification that roughly corresponds to this element.)
-
addMapping
public ElementDefinition addMapping(ElementDefinition.ElementDefinitionMappingComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public ElementDefinition copy()
-
typedCopy
protected ElementDefinition typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
-