Class ElementDefinitionDt.Slicing

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.BaseIdentifiableElement
ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt.Slicing
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.IResourceBlock, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase
Enclosing class:
ElementDefinitionDt

public static class ElementDefinitionDt.Slicing extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: ElementDefinition.slicing ()

Definition: Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)

See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getDiscriminator

      public List<ca.uhn.fhir.model.primitive.StringDt> getDiscriminator()
      Gets the value(s) for discriminator (). creating it if it does not exist. Will not return null.

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

    • setDiscriminator

      public ElementDefinitionDt.Slicing setDiscriminator(List<ca.uhn.fhir.model.primitive.StringDt> theValue)
      Sets the value(s) for discriminator ()

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

    • addDiscriminator

      public ca.uhn.fhir.model.primitive.StringDt addDiscriminator()
      Adds and returns a new value for discriminator ()

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

    • addDiscriminator

      public ElementDefinitionDt.Slicing addDiscriminator(ca.uhn.fhir.model.primitive.StringDt theValue)
      Adds a given new value for discriminator ()

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

      Parameters:
      theValue - The discriminator to add (must not be null)
    • getDiscriminatorFirstRep

      public ca.uhn.fhir.model.primitive.StringDt getDiscriminatorFirstRep()
      Gets the first repetition for discriminator (), creating it if it does not already exist.

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

    • addDiscriminator

      Adds a new value for discriminator ()

      Definition: Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices

      Returns:
      Returns a reference to this object, to allow for simple chaining.
    • getDescriptionElement

      public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
      Gets the value(s) for description (). creating it if it does not exist. Will not return null.

      Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated

    • getDescription

      Gets the value(s) for description (). creating it if it does not exist. This method may return null.

      Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated

    • setDescription

      public ElementDefinitionDt.Slicing setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for description ()

      Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated

    • setDescription

      Sets the value for description ()

      Definition: A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated

    • getOrderedElement

      public ca.uhn.fhir.model.primitive.BooleanDt getOrderedElement()
      Gets the value(s) for ordered (). creating it if it does not exist. Will not return null.

      Definition: If the matching elements have to occur in the same order as defined in the profile

    • getOrdered

      public Boolean getOrdered()
      Gets the value(s) for ordered (). creating it if it does not exist. This method may return null.

      Definition: If the matching elements have to occur in the same order as defined in the profile

    • setOrdered

      public ElementDefinitionDt.Slicing setOrdered(ca.uhn.fhir.model.primitive.BooleanDt theValue)
      Sets the value(s) for ordered ()

      Definition: If the matching elements have to occur in the same order as defined in the profile

    • setOrdered

      public ElementDefinitionDt.Slicing setOrdered(boolean theBoolean)
      Sets the value for ordered ()

      Definition: If the matching elements have to occur in the same order as defined in the profile

    • getRulesElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum> getRulesElement()
      Gets the value(s) for rules (). creating it if it does not exist. Will not return null.

      Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end

    • getRules

      public String getRules()
      Gets the value(s) for rules (). creating it if it does not exist. This method may return null.

      Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end

    • setRules

      public ElementDefinitionDt.Slicing setRules(ca.uhn.fhir.model.primitive.BoundCodeDt<SlicingRulesEnum> theValue)
      Sets the value(s) for rules ()

      Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end

    • setRules

      Sets the value(s) for rules ()

      Definition: Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end