Class ElementDefinition

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseBackboneElement, 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.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.ICompositeType

public class ElementDefinition extends BackboneType implements org.hl7.fhir.instance.model.api.ICompositeType
Captures constraints on each element within the resource, profile, or extension.
See Also:
  • Field Details

    • 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

      Codes that define how this element is represented in instances, when the deviation varies from the normal case.
    • sliceName

      protected StringType sliceName
      The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
    • sliceIsConstraining

      If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.
    • label

      protected StringType label
      A single preferred label which is 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 has the same meaning as the element in a particular terminology.
    • 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

      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. (Note: The text you are reading is specified in ElementDefinition.definition).
    • comment

      protected MarkdownType comment
      Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).
    • 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 UnsignedIntType 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

      Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. When the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same.
    • contentReference

      Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.
    • type

      The data type or resource that the value of this element is permitted to be.
    • 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

      The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing').
    • orderMeaning

      If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning.
    • 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. When pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly. When pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] array must (recursively) match at least one element from the instance array. When pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e., 1. If primitive: it must match exactly the pattern value 2. If a complex object: it must match (recursively) the pattern value 3. If an array: it must match (recursively) the pattern value.
    • example

      A sample value for this element demonstrating the type of information that would typically be found in the element.
    • 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

      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

      Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.
    • 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. If false, whether to populate or use the data element in any way is at the discretion of the implementation.
    • 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.
    • isModifierReason

      Explains how that element affects the interpretation of the resource or element that contains it.
    • isSummary

      Whether the element should be included if a client requests a search with the parameter _summary=true.
    • binding

      Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri).
    • mapping

      Identifies a concept from an external specification that roughly corresponds to this element.
    • NOT_MODIFIER

      public static final boolean NOT_MODIFIER
      See Also:
    • NOT_IN_SUMMARY

      public static final boolean NOT_IN_SUMMARY
      See Also:
    • IS_MODIFIER

      public static final boolean IS_MODIFIER
      See Also:
    • IS_IN_SUMMARY

      public static final boolean IS_IN_SUMMARY
      See Also:
  • Constructor Details

  • Method Details

    • 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

      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

      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

      Returns:
      representation (Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
    • setRepresentation

      Returns:
      Returns a reference to this for easy method chaining
    • hasRepresentation

      public boolean hasRepresentation()
    • addRepresentationElement

      Returns:
      representation (Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
    • addRepresentation

      Parameters:
      value - representation (Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
    • hasRepresentation

      Parameters:
      value - representation (Codes that define how this element is represented in instances, when the deviation varies from the normal case.)
    • getSliceNameElement

      Returns:
      sliceName (The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getSliceName" gives direct access to the value
    • hasSliceNameElement

      public boolean hasSliceNameElement()
    • hasSliceName

      public boolean hasSliceName()
    • setSliceNameElement

      Parameters:
      value - sliceName (The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getSliceName" gives direct access to the value
    • getSliceName

      public String getSliceName()
      Returns:
      The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
    • setSliceName

      Parameters:
      value - The name of this element definition slice, when slicing is working. The name must be a token with no dots or spaces. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
    • getSliceIsConstrainingElement

      Returns:
      sliceIsConstraining (If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.). This is the underlying object with id, value and extensions. The accessor "getSliceIsConstraining" gives direct access to the value
    • hasSliceIsConstrainingElement

    • hasSliceIsConstraining

      public boolean hasSliceIsConstraining()
    • setSliceIsConstrainingElement

      Parameters:
      value - sliceIsConstraining (If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.). This is the underlying object with id, value and extensions. The accessor "getSliceIsConstraining" gives direct access to the value
    • getSliceIsConstraining

      public boolean getSliceIsConstraining()
      Returns:
      If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.
    • setSliceIsConstraining

      public ElementDefinition setSliceIsConstraining(boolean value)
      Parameters:
      value - If true, indicates that this slice definition is constraining a slice definition with the same name in an inherited profile. If false, the slice is not overriding any slice in an inherited profile. If missing, the slice might or might not be overriding a slice in an inherited profile, depending on the sliceName.
    • getLabelElement

      Returns:
      label (A single preferred label which is 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

      Parameters:
      value - label (A single preferred label which is 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:
      A single preferred label which is 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

      Parameters:
      value - A single preferred label which is 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 has the same meaning as the element in a particular terminology.)
    • setCode

      public ElementDefinition setCode(List<Coding> theCode)
      Returns:
      Returns a reference to this for easy method chaining
    • hasCode

      public boolean hasCode()
    • addCode

      public Coding addCode()
    • addCode

    • getCodeFirstRep

      Returns:
      The first repetition of repeating field code, creating it if it does not already exist
    • 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

      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

      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

      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

      Parameters:
      value - A concise description of what this element means (e.g. for use in autogenerated summaries).
    • 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. (Note: The text you are reading is specified in ElementDefinition.definition).). 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

      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. (Note: The text you are reading is specified in ElementDefinition.definition).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value
    • 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. (Note: The text you are reading is specified in ElementDefinition.definition).
    • setDefinition

      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. (Note: The text you are reading is specified in ElementDefinition.definition).
    • getCommentElement

      Returns:
      comment (Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
    • hasCommentElement

      public boolean hasCommentElement()
    • hasComment

      public boolean hasComment()
    • setCommentElement

      Parameters:
      value - comment (Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
    • getComment

      public String getComment()
      Returns:
      Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. (Note: The text you are reading is specified in ElementDefinition.comment).
    • setComment

      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. (Note: The text you are reading is specified in ElementDefinition.comment).
    • 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

      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

      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

      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

      Returns:
      alias (Identifies additional names by which this element might also be known.)
    • setAlias

      Returns:
      Returns a reference to this for easy method chaining
    • hasAlias

      public boolean hasAlias()
    • addAliasElement

      Returns:
      alias (Identifies additional names by which this element might also be known.)
    • addAlias

      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

      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

      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

      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

      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

      Parameters:
      value - The maximum number of times this element is permitted to appear in the instance.
    • getBase

      Returns:
      base (Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. When the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same.)
    • hasBase

      public boolean hasBase()
    • setBase

      Parameters:
      value - base (Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. When the element definition is not the original definition of an element - i.g. either in a constraint on another type, or for elements from a super type in a snap shot - then the information in provided in the element definition may be different to the base definition. On the original definition of the element, it will be same.)
    • getContentReferenceElement

      Returns:
      contentReference (Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.). This is the underlying object with id, value and extensions. The accessor "getContentReference" gives direct access to the value
    • hasContentReferenceElement

      public boolean hasContentReferenceElement()
    • hasContentReference

      public boolean hasContentReference()
    • setContentReferenceElement

      Parameters:
      value - contentReference (Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.). This is the underlying object with id, value and extensions. The accessor "getContentReference" gives direct access to the value
    • getContentReference

      Returns:
      Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.
    • setContentReference

      Parameters:
      value - Identifies an element defined elsewhere in the definition whose content rules should be applied to the current element. ContentReferences bring across all the rules that are in the ElementDefinition for the element, including definitions, cardinality constraints, bindings, invariants etc.
    • getType

      Returns:
      type (The data type or resource that the value of this element is permitted to be.)
    • setType

      Returns:
      Returns a reference to this for easy method chaining
    • hasType

      public boolean hasType()
    • addType

    • addType

    • getTypeFirstRep

      Returns:
      The first repetition of repeating field type, creating it if it does not already exist
    • 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

      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

      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

      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

      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

      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').
    • getOrderMeaningElement

      Returns:
      orderMeaning (If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning.). This is the underlying object with id, value and extensions. The accessor "getOrderMeaning" gives direct access to the value
    • hasOrderMeaningElement

      public boolean hasOrderMeaningElement()
    • hasOrderMeaning

      public boolean hasOrderMeaning()
    • setOrderMeaningElement

      Parameters:
      value - orderMeaning (If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning.). This is the underlying object with id, value and extensions. The accessor "getOrderMeaning" gives direct access to the value
    • getOrderMeaning

      Returns:
      If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning.
    • setOrderMeaning

      Parameters:
      value - If present, indicates that the order of the repeating element has meaning and describes what that meaning is. If absent, it means that the order of the element has no meaning.
    • 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

      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. When pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly. When pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] array must (recursively) match at least one element from the instance array. When pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e., 1. If primitive: it must match exactly the pattern value 2. If a complex object: it must match (recursively) the pattern value 3. If an array: it must match (recursively) the pattern value.)
    • hasPattern

      public boolean hasPattern()
    • setPattern

      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. When pattern[x] is used to constrain a primitive, it means that the value provided in the pattern[x] must match the instance value exactly. When pattern[x] is used to constrain an array, it means that each element provided in the pattern[x] array must (recursively) match at least one element from the instance array. When pattern[x] is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e., 1. If primitive: it must match exactly the pattern value 2. If a complex object: it must match (recursively) the pattern value 3. If an array: it must match (recursively) the pattern value.)
    • getExample

      Returns:
      example (A sample value for this element demonstrating the type of information that would typically be found in the element.)
    • setExample

      Returns:
      Returns a reference to this for easy method chaining
    • hasExample

      public boolean hasExample()
    • addExample

    • addExample

    • getExampleFirstRep

      Returns:
      The first repetition of repeating field example, creating it if it does not already exist
    • 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.)
    • getMinValueDateType

      public DateType getMinValueDateType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueDateType

      public boolean hasMinValueDateType()
    • getMinValueDateTimeType

      public DateTimeType getMinValueDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueDateTimeType

      public boolean hasMinValueDateTimeType()
    • getMinValueInstantType

      public InstantType getMinValueInstantType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueInstantType

      public boolean hasMinValueInstantType()
    • getMinValueTimeType

      public TimeType getMinValueTimeType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueTimeType

      public boolean hasMinValueTimeType()
    • getMinValueDecimalType

      public DecimalType getMinValueDecimalType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueDecimalType

      public boolean hasMinValueDecimalType()
    • getMinValueIntegerType

      public IntegerType getMinValueIntegerType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueIntegerType

      public boolean hasMinValueIntegerType()
    • getMinValuePositiveIntType

      public PositiveIntType getMinValuePositiveIntType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValuePositiveIntType

      public boolean hasMinValuePositiveIntType()
    • getMinValueUnsignedIntType

      public UnsignedIntType getMinValueUnsignedIntType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueUnsignedIntType

      public boolean hasMinValueUnsignedIntType()
    • getMinValueQuantity

      public Quantity getMinValueQuantity() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMinValueQuantity

      public boolean hasMinValueQuantity()
    • hasMinValue

      public boolean hasMinValue()
    • setMinValue

      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.)
    • getMaxValueDateType

      public DateType getMaxValueDateType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueDateType

      public boolean hasMaxValueDateType()
    • getMaxValueDateTimeType

      public DateTimeType getMaxValueDateTimeType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueDateTimeType

      public boolean hasMaxValueDateTimeType()
    • getMaxValueInstantType

      public InstantType getMaxValueInstantType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueInstantType

      public boolean hasMaxValueInstantType()
    • getMaxValueTimeType

      public TimeType getMaxValueTimeType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueTimeType

      public boolean hasMaxValueTimeType()
    • getMaxValueDecimalType

      public DecimalType getMaxValueDecimalType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueDecimalType

      public boolean hasMaxValueDecimalType()
    • getMaxValueIntegerType

      public IntegerType getMaxValueIntegerType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueIntegerType

      public boolean hasMaxValueIntegerType()
    • getMaxValuePositiveIntType

      public PositiveIntType getMaxValuePositiveIntType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValuePositiveIntType

      public boolean hasMaxValuePositiveIntType()
    • getMaxValueUnsignedIntType

      public UnsignedIntType getMaxValueUnsignedIntType() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueUnsignedIntType

      public boolean hasMaxValueUnsignedIntType()
    • getMaxValueQuantity

      public Quantity getMaxValueQuantity() throws org.hl7.fhir.exceptions.FHIRException
      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.)
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • hasMaxValueQuantity

      public boolean hasMaxValueQuantity()
    • hasMaxValue

      public boolean hasMaxValue()
    • setMaxValue

      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

      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

      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

      Returns:
      condition (A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
    • setCondition

      public ElementDefinition setCondition(List<IdType> theCondition)
      Returns:
      Returns a reference to this for easy method chaining
    • hasCondition

      public boolean hasCondition()
    • addConditionElement

      Returns:
      condition (A reference to an invariant that may make additional statements about the cardinality or value in the instance.)
    • addCondition

      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

      Returns:
      constraint (Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.)
    • setConstraint

      Returns:
      Returns a reference to this for easy method chaining
    • hasConstraint

      public boolean hasConstraint()
    • addConstraint

    • addConstraint

    • getConstraintFirstRep

      Returns:
      The first repetition of repeating field constraint, creating it if it does not already exist
    • 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. If false, whether to populate or use the data element in any way is at the discretion of the implementation.). 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

      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. If false, whether to populate or use the data element in any way is at the discretion of the implementation.). 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. If false, whether to populate or use the data element in any way is at the discretion of the implementation.
    • 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. If false, whether to populate or use the data element in any way is at the discretion of the implementation.
    • 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

      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.
    • getIsModifierReasonElement

      Returns:
      isModifierReason (Explains how that element affects the interpretation of the resource or element that contains it.). This is the underlying object with id, value and extensions. The accessor "getIsModifierReason" gives direct access to the value
    • hasIsModifierReasonElement

      public boolean hasIsModifierReasonElement()
    • hasIsModifierReason

      public boolean hasIsModifierReason()
    • setIsModifierReasonElement

      Parameters:
      value - isModifierReason (Explains how that element affects the interpretation of the resource or element that contains it.). This is the underlying object with id, value and extensions. The accessor "getIsModifierReason" gives direct access to the value
    • getIsModifierReason

      Returns:
      Explains how that element affects the interpretation of the resource or element that contains it.
    • setIsModifierReason

      Parameters:
      value - Explains how that element affects the interpretation of the resource or element that contains it.
    • 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

      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

      Returns:
      binding (Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri).)
    • hasBinding

      public boolean hasBinding()
    • setBinding

      Parameters:
      value - binding (Binds to a value set if this element is coded (code, Coding, CodeableConcept, Quantity), or the data types (string, uri).)
    • getMapping

      Returns:
      mapping (Identifies a concept from an external specification that roughly corresponds to this element.)
    • setMapping

      Returns:
      Returns a reference to this for easy method chaining
    • hasMapping

      public boolean hasMapping()
    • addMapping

    • addMapping

    • getMappingFirstRep

      Returns:
      The first repetition of repeating field mapping, creating it if it does not already exist
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class BackboneType
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class BackboneType
      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 class BackboneType
      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 class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • removeChild

      public void removeChild(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      removeChild in class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class BackboneType
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class BackboneType
    • copy

      Specified by:
      copy in class BackboneType
    • copyValues

      public void copyValues(ElementDefinition dst)
    • typedCopy

      Specified by:
      typedCopy in class Type
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class BackboneType
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class BackboneType
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class BackboneType
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • makeBase

      public void makeBase(String path, int min, String max)
    • makeBase

      public void makeBase()
    • typeSummary

      public String typeSummary()
    • getType

    • present

      public String present()
    • hasFixedOrPattern

      public boolean hasFixedOrPattern()
    • getFixedOrPattern

    • getName

      public String getName()
    • getMustHaveValue

      public boolean getMustHaveValue()
    • isChoice

      public boolean isChoice()
    • getNameBase

      public String getNameBase()
    • unbounded

      public boolean unbounded()
    • isMandatory

      public boolean isMandatory()
    • prohibited

      public boolean prohibited()
    • isProhibited

      public boolean isProhibited()
    • isRequired

      public boolean isRequired()