ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.composite;
import java.net.URI;
import java.math.BigDecimal;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.base.composite.*;
import ca.uhn.fhir.model.dstu2.valueset.AddressTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.SignatureTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.valueset.TimingAbbreviationEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.MarkdownDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR ElementDefinitionDt Datatype
* ()
*
*
* Definition:
* Captures constraints on each element within the resource, profile, or extension
*
*
*
* Requirements:
*
*
*/
@DatatypeDef(name="ElementDefinition")
public class ElementDefinitionDt
extends BaseIdentifiableElement
implements ICompositeDatatype
{
/**
* Constructor
*/
public ElementDefinitionDt() {
// nothing
}
@Child(name="path", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension"
)
private StringDt myPath;
@Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/property-representation")
private java.util.List> myRepresentation;
@Child(name="name", type=StringDt.class, order=2, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private StringDt myName;
@Child(name="label", type=StringDt.class, order=3, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form."
)
private StringDt myLabel;
@Child(name="code", type=CodingDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A code that provides the meaning for the element according to a particular terminology."
)
private java.util.List myCode;
@Child(name="slicing", order=5, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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)"
)
private Slicing mySlicing;
@Child(name="short", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A concise description of what this element means (e.g. for use in autogenerated summaries)"
)
private StringDt myShort;
@Child(name="definition", type=MarkdownDt.class, order=7, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private MarkdownDt myDefinition;
@Child(name="comments", type=MarkdownDt.class, order=8, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc."
)
private MarkdownDt myComments;
@Child(name="requirements", type=MarkdownDt.class, order=9, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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."
)
private MarkdownDt myRequirements;
@Child(name="alias", type=StringDt.class, order=10, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies additional names by which this element might also be known"
)
private java.util.List myAlias;
@Child(name="min", type=IntegerDt.class, order=11, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The minimum number of times this element SHALL appear in the instance"
)
private IntegerDt myMin;
@Child(name="max", type=StringDt.class, order=12, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The maximum number of times this element is permitted to appear in the instance"
)
private StringDt myMax;
@Child(name="base", order=13, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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."
)
private Base myBase;
@Child(name="type", order=14, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The data type or resource that the value of this element is permitted to be"
)
private java.util.List myType;
@Child(name="nameReference", type=StringDt.class, order=15, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element"
)
private StringDt myNameReference;
@Child(name="defaultValue", type=IDatatype.class, order=16, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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')"
)
private IDatatype myDefaultValue;
@Child(name="meaningWhenMissing", type=MarkdownDt.class, order=17, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'"
)
private MarkdownDt myMeaningWhenMissing;
@Child(name="fixed", type=IDatatype.class, order=18, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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."
)
private IDatatype myFixed;
@Child(name="pattern", type=IDatatype.class, order=19, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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.)."
)
private IDatatype myPattern;
@Child(name="example", type=IDatatype.class, order=20, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured."
)
private IDatatype myExample;
@Child(name="minValue", type=IDatatype.class, order=21, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private IDatatype myMinValue;
@Child(name="maxValue", type=IDatatype.class, order=22, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private IDatatype myMaxValue;
@Child(name="maxLength", type=IntegerDt.class, order=23, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private IntegerDt myMaxLength;
@Child(name="condition", type=IdDt.class, order=24, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance"
)
private java.util.List myCondition;
@Child(name="constraint", order=25, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance"
)
private java.util.List myConstraint;
@Child(name="mustSupport", type=BooleanDt.class, order=26, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private BooleanDt myMustSupport;
@Child(name="isModifier", type=BooleanDt.class, order=27, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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."
)
private BooleanDt myIsModifier;
@Child(name="isSummary", type=BooleanDt.class, order=28, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Whether the element should be included if a client requests a search with the parameter _summary=true"
)
private BooleanDt myIsSummary;
@Child(name="binding", order=29, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)"
)
private Binding myBinding;
@Child(name="mapping", order=30, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element"
)
private java.util.List myMapping;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, myLabel, myCode, mySlicing, myShort, myDefinition, myComments, myRequirements, myAlias, myMin, myMax, myBase, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMinValue, myMaxValue, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myRepresentation, myName, myLabel, myCode, mySlicing, myShort, myDefinition, myComments, myRequirements, myAlias, myMin, myMax, myBase, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMinValue, myMaxValue, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping);
}
/**
* Gets the value(s) for path ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension
*
*/
public StringDt getPathElement() {
if (myPath == null) {
myPath = new StringDt();
}
return myPath;
}
/**
* Gets the value(s) for path ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension
*
*/
public String getPath() {
return getPathElement().getValue();
}
/**
* Sets the value(s) for path ()
*
*
* Definition:
* The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension
*
*/
public ElementDefinitionDt setPath(StringDt theValue) {
myPath = theValue;
return this;
}
/**
* Sets the value for path ()
*
*
* Definition:
* The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension
*
*/
public ElementDefinitionDt setPath( String theString) {
myPath = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for representation ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public java.util.List> getRepresentation() {
if (myRepresentation == null) {
myRepresentation = new java.util.ArrayList>();
}
return myRepresentation;
}
/**
* Sets the value(s) for representation ()
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public ElementDefinitionDt setRepresentation(java.util.List> theValue) {
myRepresentation = theValue;
return this;
}
/**
* Add a value for representation () using an enumerated type. This
* is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory
* or contain the desirable codes. If you wish to use codes other than those which are built-in,
* you may also use the {@link #addRepresentation()} method.
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public BoundCodeDt addRepresentation(PropertyRepresentationEnum theValue) {
BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER, theValue);
getRepresentation().add(retVal);
return retVal;
}
/**
* Gets the first repetition for representation (),
* creating it if it does not already exist.
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public BoundCodeDt getRepresentationFirstRep() {
if (getRepresentation().size() == 0) {
addRepresentation();
}
return getRepresentation().get(0);
}
/**
* Add a value for representation ()
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public BoundCodeDt addRepresentation() {
BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER);
getRepresentation().add(retVal);
return retVal;
}
/**
* Sets the value(s), and clears any existing value(s) for representation ()
*
*
* Definition:
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
*
*/
public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) {
getRepresentation().clear();
addRepresentation(theValue);
return this;
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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
*
*/
public StringDt getNameElement() {
if (myName == null) {
myName = new StringDt();
}
return myName;
}
/**
* Gets the value(s) for name ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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
*
*/
public String getName() {
return getNameElement().getValue();
}
/**
* Sets the value(s) for name ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setName(StringDt theValue) {
myName = theValue;
return this;
}
/**
* Sets the value for name ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setName( String theString) {
myName = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for label ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
*
*/
public StringDt getLabelElement() {
if (myLabel == null) {
myLabel = new StringDt();
}
return myLabel;
}
/**
* Gets the value(s) for label ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
*
*/
public String getLabel() {
return getLabelElement().getValue();
}
/**
* Sets the value(s) for label ()
*
*
* Definition:
* The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
*
*/
public ElementDefinitionDt setLabel(StringDt theValue) {
myLabel = theValue;
return this;
}
/**
* Sets the value for label ()
*
*
* Definition:
* The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.
*
*/
public ElementDefinitionDt setLabel( String theString) {
myLabel = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A code that provides the meaning for the element according to a particular terminology.
*
*/
public java.util.List getCode() {
if (myCode == null) {
myCode = new java.util.ArrayList();
}
return myCode;
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* A code that provides the meaning for the element according to a particular terminology.
*
*/
public ElementDefinitionDt setCode(java.util.List theValue) {
myCode = theValue;
return this;
}
/**
* Adds and returns a new value for code ()
*
*
* Definition:
* A code that provides the meaning for the element according to a particular terminology.
*
*/
public CodingDt addCode() {
CodingDt newType = new CodingDt();
getCode().add(newType);
return newType;
}
/**
* Adds a given new value for code ()
*
*
* Definition:
* A code that provides the meaning for the element according to a particular terminology.
*
* @param theValue The code to add (must not be null
)
*/
public ElementDefinitionDt addCode(CodingDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCode().add(theValue);
return this;
}
/**
* Gets the first repetition for code (),
* creating it if it does not already exist.
*
*
* Definition:
* A code that provides the meaning for the element according to a particular terminology.
*
*/
public CodingDt getCodeFirstRep() {
if (getCode().isEmpty()) {
return addCode();
}
return getCode().get(0);
}
/**
* Gets the value(s) for slicing ().
* creating it if it does
* not exist. Will not return null
.
*
*
* 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)
*
*/
public Slicing getSlicing() {
if (mySlicing == null) {
mySlicing = new Slicing();
}
return mySlicing;
}
/**
* Sets the value(s) for 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)
*
*/
public ElementDefinitionDt setSlicing(Slicing theValue) {
mySlicing = theValue;
return this;
}
/**
* Gets the value(s) for short ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A concise description of what this element means (e.g. for use in autogenerated summaries)
*
*/
public StringDt getShortElement() {
if (myShort == null) {
myShort = new StringDt();
}
return myShort;
}
/**
* Gets the value(s) for short ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A concise description of what this element means (e.g. for use in autogenerated summaries)
*
*/
public String getShort() {
return getShortElement().getValue();
}
/**
* Sets the value(s) for short ()
*
*
* Definition:
* A concise description of what this element means (e.g. for use in autogenerated summaries)
*
*/
public ElementDefinitionDt setShort(StringDt theValue) {
myShort = theValue;
return this;
}
/**
* Sets the value for short ()
*
*
* Definition:
* A concise description of what this element means (e.g. for use in autogenerated summaries)
*
*/
public ElementDefinitionDt setShort( String theString) {
myShort = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for definition ().
* creating it if it does
* not exist. Will not return null
.
*
*
* 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
*
*/
public MarkdownDt getDefinitionElement() {
if (myDefinition == null) {
myDefinition = new MarkdownDt();
}
return myDefinition;
}
/**
* Gets the value(s) for definition ().
* creating it if it does
* not exist. This method may return null
.
*
*
* 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
*
*/
public String getDefinition() {
return getDefinitionElement().getValue();
}
/**
* Sets the value(s) for definition ()
*
*
* 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
*
*/
public ElementDefinitionDt setDefinition(MarkdownDt theValue) {
myDefinition = theValue;
return this;
}
/**
* Gets the value(s) for comments ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
*
*/
public MarkdownDt getCommentsElement() {
if (myComments == null) {
myComments = new MarkdownDt();
}
return myComments;
}
/**
* Gets the value(s) for comments ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
*
*/
public String getComments() {
return getCommentsElement().getValue();
}
/**
* Sets the value(s) for comments ()
*
*
* Definition:
* Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc.
*
*/
public ElementDefinitionDt setComments(MarkdownDt theValue) {
myComments = theValue;
return this;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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.
*
*/
public MarkdownDt getRequirementsElement() {
if (myRequirements == null) {
myRequirements = new MarkdownDt();
}
return myRequirements;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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.
*
*/
public String getRequirements() {
return getRequirementsElement().getValue();
}
/**
* Sets the value(s) for requirements ()
*
*
* Definition:
* 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.
*
*/
public ElementDefinitionDt setRequirements(MarkdownDt theValue) {
myRequirements = theValue;
return this;
}
/**
* Gets the value(s) for alias ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
*/
public java.util.List getAlias() {
if (myAlias == null) {
myAlias = new java.util.ArrayList();
}
return myAlias;
}
/**
* Sets the value(s) for alias ()
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
*/
public ElementDefinitionDt setAlias(java.util.List theValue) {
myAlias = theValue;
return this;
}
/**
* Adds and returns a new value for alias ()
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
*/
public StringDt addAlias() {
StringDt newType = new StringDt();
getAlias().add(newType);
return newType;
}
/**
* Adds a given new value for alias ()
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
* @param theValue The alias to add (must not be null
)
*/
public ElementDefinitionDt addAlias(StringDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getAlias().add(theValue);
return this;
}
/**
* Gets the first repetition for alias (),
* creating it if it does not already exist.
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
*/
public StringDt getAliasFirstRep() {
if (getAlias().isEmpty()) {
return addAlias();
}
return getAlias().get(0);
}
/**
* Adds a new value for alias ()
*
*
* Definition:
* Identifies additional names by which this element might also be known
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public ElementDefinitionDt addAlias( String theString) {
if (myAlias == null) {
myAlias = new java.util.ArrayList();
}
myAlias.add(new StringDt(theString));
return this;
}
/**
* Gets the value(s) for min ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The minimum number of times this element SHALL appear in the instance
*
*/
public IntegerDt getMinElement() {
if (myMin == null) {
myMin = new IntegerDt();
}
return myMin;
}
/**
* Gets the value(s) for min ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The minimum number of times this element SHALL appear in the instance
*
*/
public Integer getMin() {
return getMinElement().getValue();
}
/**
* Sets the value(s) for min ()
*
*
* Definition:
* The minimum number of times this element SHALL appear in the instance
*
*/
public ElementDefinitionDt setMin(IntegerDt theValue) {
myMin = theValue;
return this;
}
/**
* Sets the value for min ()
*
*
* Definition:
* The minimum number of times this element SHALL appear in the instance
*
*/
public ElementDefinitionDt setMin( int theInteger) {
myMin = new IntegerDt(theInteger);
return this;
}
/**
* Gets the value(s) for max ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The maximum number of times this element is permitted to appear in the instance
*
*/
public StringDt getMaxElement() {
if (myMax == null) {
myMax = new StringDt();
}
return myMax;
}
/**
* Gets the value(s) for max ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The maximum number of times this element is permitted to appear in the instance
*
*/
public String getMax() {
return getMaxElement().getValue();
}
/**
* Sets the value(s) for max ()
*
*
* Definition:
* The maximum number of times this element is permitted to appear in the instance
*
*/
public ElementDefinitionDt setMax(StringDt theValue) {
myMax = theValue;
return this;
}
/**
* Sets the value for max ()
*
*
* Definition:
* The maximum number of times this element is permitted to appear in the instance
*
*/
public ElementDefinitionDt setMax( String theString) {
myMax = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for base ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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.
*
*/
public Base getBase() {
if (myBase == null) {
myBase = new Base();
}
return myBase;
}
/**
* Sets the value(s) for base ()
*
*
* Definition:
* 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.
*
*/
public ElementDefinitionDt setBase(Base theValue) {
myBase = theValue;
return this;
}
/**
* Gets the value(s) for type ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
*/
public java.util.List getType() {
if (myType == null) {
myType = new java.util.ArrayList();
}
return myType;
}
/**
* Sets the value(s) for type ()
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
*/
public ElementDefinitionDt setType(java.util.List theValue) {
myType = theValue;
return this;
}
/**
* Adds and returns a new value for type ()
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
*/
public Type addType() {
Type newType = new Type();
getType().add(newType);
return newType;
}
/**
* Adds a given new value for type ()
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
* @param theValue The type to add (must not be null
)
*/
public ElementDefinitionDt addType(Type theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getType().add(theValue);
return this;
}
/**
* Gets the first repetition for type (),
* creating it if it does not already exist.
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
*/
public Type getTypeFirstRep() {
if (getType().isEmpty()) {
return addType();
}
return getType().get(0);
}
/**
* Gets the value(s) for nameReference ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
*
*/
public StringDt getNameReferenceElement() {
if (myNameReference == null) {
myNameReference = new StringDt();
}
return myNameReference;
}
/**
* Gets the value(s) for nameReference ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
*
*/
public String getNameReference() {
return getNameReferenceElement().getValue();
}
/**
* Sets the value(s) for nameReference ()
*
*
* Definition:
* Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
*
*/
public ElementDefinitionDt setNameReference(StringDt theValue) {
myNameReference = theValue;
return this;
}
/**
* Sets the value for nameReference ()
*
*
* Definition:
* Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
*
*/
public ElementDefinitionDt setNameReference( String theString) {
myNameReference = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for defaultValue[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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')
*
*/
public IDatatype getDefaultValue() {
return myDefaultValue;
}
/**
* Sets the value(s) for defaultValue[x] ()
*
*
* Definition:
* 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')
*
*/
public ElementDefinitionDt setDefaultValue(IDatatype theValue) {
myDefaultValue = theValue;
return this;
}
/**
* Gets the value(s) for meaningWhenMissing ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'
*
*/
public MarkdownDt getMeaningWhenMissingElement() {
if (myMeaningWhenMissing == null) {
myMeaningWhenMissing = new MarkdownDt();
}
return myMeaningWhenMissing;
}
/**
* Gets the value(s) for meaningWhenMissing ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'
*
*/
public String getMeaningWhenMissing() {
return getMeaningWhenMissingElement().getValue();
}
/**
* Sets the value(s) for meaningWhenMissing ()
*
*
* Definition:
* The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'
*
*/
public ElementDefinitionDt setMeaningWhenMissing(MarkdownDt theValue) {
myMeaningWhenMissing = theValue;
return this;
}
/**
* Gets the value(s) for fixed[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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.
*
*/
public IDatatype getFixed() {
return myFixed;
}
/**
* Sets the value(s) for fixed[x] ()
*
*
* Definition:
* 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.
*
*/
public ElementDefinitionDt setFixed(IDatatype theValue) {
myFixed = theValue;
return this;
}
/**
* Gets the value(s) for pattern[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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.).
*
*/
public IDatatype getPattern() {
return myPattern;
}
/**
* Sets the value(s) for pattern[x] ()
*
*
* Definition:
* 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.).
*
*/
public ElementDefinitionDt setPattern(IDatatype theValue) {
myPattern = theValue;
return this;
}
/**
* Gets the value(s) for example[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A sample value for this element demonstrating the type of information that would typically be captured.
*
*/
public IDatatype getExample() {
return myExample;
}
/**
* Sets the value(s) for example[x] ()
*
*
* Definition:
* A sample value for this element demonstrating the type of information that would typically be captured.
*
*/
public ElementDefinitionDt setExample(IDatatype theValue) {
myExample = theValue;
return this;
}
/**
* Gets the value(s) for minValue[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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
*
*/
public IDatatype getMinValue() {
return myMinValue;
}
/**
* Sets the value(s) for minValue[x] ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMinValue(IDatatype theValue) {
myMinValue = theValue;
return this;
}
/**
* Gets the value(s) for maxValue[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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
*
*/
public IDatatype getMaxValue() {
return myMaxValue;
}
/**
* Sets the value(s) for maxValue[x] ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMaxValue(IDatatype theValue) {
myMaxValue = theValue;
return this;
}
/**
* Gets the value(s) for maxLength ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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
*
*/
public IntegerDt getMaxLengthElement() {
if (myMaxLength == null) {
myMaxLength = new IntegerDt();
}
return myMaxLength;
}
/**
* Gets the value(s) for maxLength ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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
*
*/
public Integer getMaxLength() {
return getMaxLengthElement().getValue();
}
/**
* Sets the value(s) for maxLength ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMaxLength(IntegerDt theValue) {
myMaxLength = theValue;
return this;
}
/**
* Sets the value for maxLength ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMaxLength( int theInteger) {
myMaxLength = new IntegerDt(theInteger);
return this;
}
/**
* Gets the value(s) for condition ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
*/
public java.util.List getCondition() {
if (myCondition == null) {
myCondition = new java.util.ArrayList();
}
return myCondition;
}
/**
* Sets the value(s) for condition ()
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
*/
public ElementDefinitionDt setCondition(java.util.List theValue) {
myCondition = theValue;
return this;
}
/**
* Adds and returns a new value for condition ()
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
*/
public IdDt addCondition() {
IdDt newType = new IdDt();
getCondition().add(newType);
return newType;
}
/**
* Adds a given new value for condition ()
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
* @param theValue The condition to add (must not be null
)
*/
public ElementDefinitionDt addCondition(IdDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getCondition().add(theValue);
return this;
}
/**
* Gets the first repetition for condition (),
* creating it if it does not already exist.
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
*/
public IdDt getConditionFirstRep() {
if (getCondition().isEmpty()) {
return addCondition();
}
return getCondition().get(0);
}
/**
* Adds a new value for condition ()
*
*
* Definition:
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public ElementDefinitionDt addCondition( String theId) {
if (myCondition == null) {
myCondition = new java.util.ArrayList();
}
myCondition.add(new IdDt(theId));
return this;
}
/**
* Gets the value(s) for constraint ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
*/
public java.util.List getConstraint() {
if (myConstraint == null) {
myConstraint = new java.util.ArrayList();
}
return myConstraint;
}
/**
* Sets the value(s) for constraint ()
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
*/
public ElementDefinitionDt setConstraint(java.util.List theValue) {
myConstraint = theValue;
return this;
}
/**
* Adds and returns a new value for constraint ()
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
*/
public Constraint addConstraint() {
Constraint newType = new Constraint();
getConstraint().add(newType);
return newType;
}
/**
* Adds a given new value for constraint ()
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
* @param theValue The constraint to add (must not be null
)
*/
public ElementDefinitionDt addConstraint(Constraint theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getConstraint().add(theValue);
return this;
}
/**
* Gets the first repetition for constraint (),
* creating it if it does not already exist.
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
*/
public Constraint getConstraintFirstRep() {
if (getConstraint().isEmpty()) {
return addConstraint();
}
return getConstraint().get(0);
}
/**
* Gets the value(s) for mustSupport ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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
*
*/
public BooleanDt getMustSupportElement() {
if (myMustSupport == null) {
myMustSupport = new BooleanDt();
}
return myMustSupport;
}
/**
* Gets the value(s) for mustSupport ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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
*
*/
public Boolean getMustSupport() {
return getMustSupportElement().getValue();
}
/**
* Sets the value(s) for mustSupport ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMustSupport(BooleanDt theValue) {
myMustSupport = theValue;
return this;
}
/**
* Sets the value for mustSupport ()
*
*
* Definition:
* 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
*
*/
public ElementDefinitionDt setMustSupport( boolean theBoolean) {
myMustSupport = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for isModifier ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* 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.
*
*/
public BooleanDt getIsModifierElement() {
if (myIsModifier == null) {
myIsModifier = new BooleanDt();
}
return myIsModifier;
}
/**
* Gets the value(s) for isModifier ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* 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.
*
*/
public Boolean getIsModifier() {
return getIsModifierElement().getValue();
}
/**
* Sets the value(s) for isModifier ()
*
*
* Definition:
* 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.
*
*/
public ElementDefinitionDt setIsModifier(BooleanDt theValue) {
myIsModifier = theValue;
return this;
}
/**
* Sets the value for isModifier ()
*
*
* Definition:
* 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.
*
*/
public ElementDefinitionDt setIsModifier( boolean theBoolean) {
myIsModifier = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for isSummary ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Whether the element should be included if a client requests a search with the parameter _summary=true
*
*/
public BooleanDt getIsSummaryElement() {
if (myIsSummary == null) {
myIsSummary = new BooleanDt();
}
return myIsSummary;
}
/**
* Gets the value(s) for isSummary ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Whether the element should be included if a client requests a search with the parameter _summary=true
*
*/
public Boolean getIsSummary() {
return getIsSummaryElement().getValue();
}
/**
* Sets the value(s) for isSummary ()
*
*
* Definition:
* Whether the element should be included if a client requests a search with the parameter _summary=true
*
*/
public ElementDefinitionDt setIsSummary(BooleanDt theValue) {
myIsSummary = theValue;
return this;
}
/**
* Sets the value for isSummary ()
*
*
* Definition:
* Whether the element should be included if a client requests a search with the parameter _summary=true
*
*/
public ElementDefinitionDt setIsSummary( boolean theBoolean) {
myIsSummary = new BooleanDt(theBoolean);
return this;
}
/**
* Gets the value(s) for binding ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Binds to a value set if this element is coded (code, Coding, CodeableConcept)
*
*/
public Binding getBinding() {
if (myBinding == null) {
myBinding = new Binding();
}
return myBinding;
}
/**
* Sets the value(s) for binding ()
*
*
* Definition:
* Binds to a value set if this element is coded (code, Coding, CodeableConcept)
*
*/
public ElementDefinitionDt setBinding(Binding theValue) {
myBinding = theValue;
return this;
}
/**
* Gets the value(s) for mapping ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
*/
public java.util.List getMapping() {
if (myMapping == null) {
myMapping = new java.util.ArrayList();
}
return myMapping;
}
/**
* Sets the value(s) for mapping ()
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
*/
public ElementDefinitionDt setMapping(java.util.List theValue) {
myMapping = theValue;
return this;
}
/**
* Adds and returns a new value for mapping ()
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
*/
public Mapping addMapping() {
Mapping newType = new Mapping();
getMapping().add(newType);
return newType;
}
/**
* Adds a given new value for mapping ()
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
* @param theValue The mapping to add (must not be null
)
*/
public ElementDefinitionDt addMapping(Mapping theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getMapping().add(theValue);
return this;
}
/**
* Gets the first repetition for mapping (),
* creating it if it does not already exist.
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
*/
public Mapping getMappingFirstRep() {
if (getMapping().isEmpty()) {
return addMapping();
}
return getMapping().get(0);
}
/**
* 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)
*
*/
@Block()
public static class Slicing
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="discriminator", type=StringDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private java.util.List myDiscriminator;
@Child(name="description", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
private StringDt myDescription;
@Child(name="ordered", type=BooleanDt.class, order=2, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If the matching elements have to occur in the same order as defined in the profile"
)
private BooleanDt myOrdered;
@Child(name="rules", type=CodeDt.class, order=3, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="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"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-slicing-rules")
private BoundCodeDt myRules;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myDescription, myOrdered, myRules);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDiscriminator, myDescription, myOrdered, myRules);
}
/**
* 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
*
*/
public java.util.List getDiscriminator() {
if (myDiscriminator == null) {
myDiscriminator = new java.util.ArrayList();
}
return myDiscriminator;
}
/**
* 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
*
*/
public Slicing setDiscriminator(java.util.List theValue) {
myDiscriminator = theValue;
return this;
}
/**
* 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
*
*/
public StringDt addDiscriminator() {
StringDt newType = new StringDt();
getDiscriminator().add(newType);
return newType;
}
/**
* 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
*
* @param theValue The discriminator to add (must not be null
)
*/
public Slicing addDiscriminator(StringDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getDiscriminator().add(theValue);
return this;
}
/**
* 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
*
*/
public StringDt getDiscriminatorFirstRep() {
if (getDiscriminator().isEmpty()) {
return addDiscriminator();
}
return getDiscriminator().get(0);
}
/**
* 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
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Slicing addDiscriminator( String theString) {
if (myDiscriminator == null) {
myDiscriminator = new java.util.ArrayList();
}
myDiscriminator.add(new StringDt(theString));
return this;
}
/**
* 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
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* 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
*
*/
public String getDescription() {
return getDescriptionElement().getValue();
}
/**
* 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
*
*/
public Slicing setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* 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
*
*/
public Slicing setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* 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
*
*/
public BooleanDt getOrderedElement() {
if (myOrdered == null) {
myOrdered = new BooleanDt();
}
return myOrdered;
}
/**
* 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
*
*/
public Boolean getOrdered() {
return getOrderedElement().getValue();
}
/**
* Sets the value(s) for ordered ()
*
*
* Definition:
* If the matching elements have to occur in the same order as defined in the profile
*
*/
public Slicing setOrdered(BooleanDt theValue) {
myOrdered = theValue;
return this;
}
/**
* Sets the value for ordered ()
*
*
* Definition:
* If the matching elements have to occur in the same order as defined in the profile
*
*/
public Slicing setOrdered( boolean theBoolean) {
myOrdered = new BooleanDt(theBoolean);
return this;
}
/**
* 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
*
*/
public BoundCodeDt getRulesElement() {
if (myRules == null) {
myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER);
}
return myRules;
}
/**
* 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
*
*/
public String getRules() {
return getRulesElement().getValue();
}
/**
* 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
*
*/
public Slicing setRules(BoundCodeDt theValue) {
myRules = theValue;
return this;
}
/**
* 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
*
*/
public Slicing setRules(SlicingRulesEnum theValue) {
setRules(new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER, theValue));
/*
getRulesElement().setValueAsEnum(theValue);
*/
return this;
}
}
/**
* Block class for child element: ElementDefinition.base ()
*
*
* Definition:
* 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.
*
*/
@Block()
public static class Base
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="path", type=StringDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [[[StructureDefinition]]] without a StructureDefinition.base"
)
private StringDt myPath;
@Child(name="min", type=IntegerDt.class, order=1, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Minimum cardinality of the base element identified by the path"
)
private IntegerDt myMin;
@Child(name="max", type=StringDt.class, order=2, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Maximum cardinality of the base element identified by the path"
)
private StringDt myMax;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myMin, myMax);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myMin, myMax);
}
/**
* Gets the value(s) for path ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [[[StructureDefinition]]] without a StructureDefinition.base
*
*/
public StringDt getPathElement() {
if (myPath == null) {
myPath = new StringDt();
}
return myPath;
}
/**
* Gets the value(s) for path ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [[[StructureDefinition]]] without a StructureDefinition.base
*
*/
public String getPath() {
return getPathElement().getValue();
}
/**
* Sets the value(s) for path ()
*
*
* Definition:
* The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [[[StructureDefinition]]] without a StructureDefinition.base
*
*/
public Base setPath(StringDt theValue) {
myPath = theValue;
return this;
}
/**
* Sets the value for path ()
*
*
* Definition:
* The Path that identifies the base element - this matches the ElementDefinition.path for that element. Across FHIR, there is only one base definition of any element - that is, an element definition on a [[[StructureDefinition]]] without a StructureDefinition.base
*
*/
public Base setPath( String theString) {
myPath = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for min ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Minimum cardinality of the base element identified by the path
*
*/
public IntegerDt getMinElement() {
if (myMin == null) {
myMin = new IntegerDt();
}
return myMin;
}
/**
* Gets the value(s) for min ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Minimum cardinality of the base element identified by the path
*
*/
public Integer getMin() {
return getMinElement().getValue();
}
/**
* Sets the value(s) for min ()
*
*
* Definition:
* Minimum cardinality of the base element identified by the path
*
*/
public Base setMin(IntegerDt theValue) {
myMin = theValue;
return this;
}
/**
* Sets the value for min ()
*
*
* Definition:
* Minimum cardinality of the base element identified by the path
*
*/
public Base setMin( int theInteger) {
myMin = new IntegerDt(theInteger);
return this;
}
/**
* Gets the value(s) for max ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Maximum cardinality of the base element identified by the path
*
*/
public StringDt getMaxElement() {
if (myMax == null) {
myMax = new StringDt();
}
return myMax;
}
/**
* Gets the value(s) for max ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Maximum cardinality of the base element identified by the path
*
*/
public String getMax() {
return getMaxElement().getValue();
}
/**
* Sets the value(s) for max ()
*
*
* Definition:
* Maximum cardinality of the base element identified by the path
*
*/
public Base setMax(StringDt theValue) {
myMax = theValue;
return this;
}
/**
* Sets the value for max ()
*
*
* Definition:
* Maximum cardinality of the base element identified by the path
*
*/
public Base setMax( String theString) {
myMax = new StringDt(theString);
return this;
}
}
/**
* Block class for child element: ElementDefinition.type ()
*
*
* Definition:
* The data type or resource that the value of this element is permitted to be
*
*/
@Block()
public static class Type
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="code", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Name of Data type or Resource that is a(or the) type used for this element"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/defined-types")
private CodeDt myCode;
@Child(name="profile", type=UriDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide"
)
private java.util.List myProfile;
@Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle."
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/resource-aggregation-mode")
private java.util.List> myAggregation;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myProfile, myAggregation);
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Name of Data type or Resource that is a(or the) type used for this element
*
*/
public CodeDt getCodeElement() {
if (myCode == null) {
myCode = new CodeDt();
}
return myCode;
}
/**
* Gets the value(s) for code ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Name of Data type or Resource that is a(or the) type used for this element
*
*/
public String getCode() {
return getCodeElement().getValue();
}
/**
* Sets the value(s) for code ()
*
*
* Definition:
* Name of Data type or Resource that is a(or the) type used for this element
*
*/
public Type setCode(CodeDt theValue) {
myCode = theValue;
return this;
}
/**
* Sets the value for code ()
*
*
* Definition:
* Name of Data type or Resource that is a(or the) type used for this element
*
*/
public Type setCode( String theCode) {
myCode = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for profile ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
*/
public java.util.List getProfile() {
if (myProfile == null) {
myProfile = new java.util.ArrayList();
}
return myProfile;
}
/**
* Sets the value(s) for profile ()
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
*/
public Type setProfile(java.util.List theValue) {
myProfile = theValue;
return this;
}
/**
* Adds and returns a new value for profile ()
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
*/
public UriDt addProfile() {
UriDt newType = new UriDt();
getProfile().add(newType);
return newType;
}
/**
* Adds a given new value for profile ()
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
* @param theValue The profile to add (must not be null
)
*/
public Type addProfile(UriDt theValue) {
if (theValue == null) {
throw new NullPointerException("theValue must not be null");
}
getProfile().add(theValue);
return this;
}
/**
* Gets the first repetition for profile (),
* creating it if it does not already exist.
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
*/
public UriDt getProfileFirstRep() {
if (getProfile().isEmpty()) {
return addProfile();
}
return getProfile().get(0);
}
/**
* Adds a new value for profile ()
*
*
* Definition:
* Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide
*
*
* @return Returns a reference to this object, to allow for simple chaining.
*/
public Type addProfile( String theUri) {
if (myProfile == null) {
myProfile = new java.util.ArrayList();
}
myProfile.add(new UriDt(theUri));
return this;
}
/**
* Gets the value(s) for aggregation ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public java.util.List> getAggregation() {
if (myAggregation == null) {
myAggregation = new java.util.ArrayList>();
}
return myAggregation;
}
/**
* Sets the value(s) for aggregation ()
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public Type setAggregation(java.util.List> theValue) {
myAggregation = theValue;
return this;
}
/**
* Add a value for aggregation () using an enumerated type. This
* is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory
* or contain the desirable codes. If you wish to use codes other than those which are built-in,
* you may also use the {@link #addAggregation()} method.
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public BoundCodeDt addAggregation(AggregationModeEnum theValue) {
BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER, theValue);
getAggregation().add(retVal);
return retVal;
}
/**
* Gets the first repetition for aggregation (),
* creating it if it does not already exist.
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public BoundCodeDt getAggregationFirstRep() {
if (getAggregation().size() == 0) {
addAggregation();
}
return getAggregation().get(0);
}
/**
* Add a value for aggregation ()
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public BoundCodeDt addAggregation() {
BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER);
getAggregation().add(retVal);
return retVal;
}
/**
* Sets the value(s), and clears any existing value(s) for aggregation ()
*
*
* Definition:
* If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
*
*/
public Type setAggregation(AggregationModeEnum theValue) {
getAggregation().clear();
addAggregation(theValue);
return this;
}
}
/**
* Block class for child element: ElementDefinition.constraint ()
*
*
* Definition:
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
*
*/
@Block()
public static class Constraint
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="key", type=IdDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality"
)
private IdDt myKey;
@Child(name="requirements", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Description of why this constraint is necessary or appropriate"
)
private StringDt myRequirements;
@Child(name="severity", type=CodeDt.class, order=2, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies the impact constraint violation has on the conformance of the instance"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/constraint-severity")
private BoundCodeDt mySeverity;
@Child(name="human", type=StringDt.class, order=3, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated"
)
private StringDt myHuman;
@Child(name="xpath", type=StringDt.class, order=4, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="An XPath expression of constraint that can be executed to see if this constraint is met"
)
private StringDt myXpath;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myRequirements, mySeverity, myHuman, myXpath);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKey, myRequirements, mySeverity, myHuman, myXpath);
}
/**
* Gets the value(s) for key ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
*
*/
public IdDt getKeyElement() {
if (myKey == null) {
myKey = new IdDt();
}
return myKey;
}
/**
* Gets the value(s) for key ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
*
*/
public String getKey() {
return getKeyElement().getValue();
}
/**
* Sets the value(s) for key ()
*
*
* Definition:
* Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
*
*/
public Constraint setKey(IdDt theValue) {
myKey = theValue;
return this;
}
/**
* Sets the value for key ()
*
*
* Definition:
* Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
*
*/
public Constraint setKey( String theId) {
myKey = new IdDt(theId);
return this;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Description of why this constraint is necessary or appropriate
*
*/
public StringDt getRequirementsElement() {
if (myRequirements == null) {
myRequirements = new StringDt();
}
return myRequirements;
}
/**
* Gets the value(s) for requirements ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Description of why this constraint is necessary or appropriate
*
*/
public String getRequirements() {
return getRequirementsElement().getValue();
}
/**
* Sets the value(s) for requirements ()
*
*
* Definition:
* Description of why this constraint is necessary or appropriate
*
*/
public Constraint setRequirements(StringDt theValue) {
myRequirements = theValue;
return this;
}
/**
* Sets the value for requirements ()
*
*
* Definition:
* Description of why this constraint is necessary or appropriate
*
*/
public Constraint setRequirements( String theString) {
myRequirements = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for severity ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies the impact constraint violation has on the conformance of the instance
*
*/
public BoundCodeDt getSeverityElement() {
if (mySeverity == null) {
mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER);
}
return mySeverity;
}
/**
* Gets the value(s) for severity ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Identifies the impact constraint violation has on the conformance of the instance
*
*/
public String getSeverity() {
return getSeverityElement().getValue();
}
/**
* Sets the value(s) for severity ()
*
*
* Definition:
* Identifies the impact constraint violation has on the conformance of the instance
*
*/
public Constraint setSeverity(BoundCodeDt theValue) {
mySeverity = theValue;
return this;
}
/**
* Sets the value(s) for severity ()
*
*
* Definition:
* Identifies the impact constraint violation has on the conformance of the instance
*
*/
public Constraint setSeverity(ConstraintSeverityEnum theValue) {
setSeverity(new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER, theValue));
/*
getSeverityElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for human ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Text that can be used to describe the constraint in messages identifying that the constraint has been violated
*
*/
public StringDt getHumanElement() {
if (myHuman == null) {
myHuman = new StringDt();
}
return myHuman;
}
/**
* Gets the value(s) for human ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Text that can be used to describe the constraint in messages identifying that the constraint has been violated
*
*/
public String getHuman() {
return getHumanElement().getValue();
}
/**
* Sets the value(s) for human ()
*
*
* Definition:
* Text that can be used to describe the constraint in messages identifying that the constraint has been violated
*
*/
public Constraint setHuman(StringDt theValue) {
myHuman = theValue;
return this;
}
/**
* Sets the value for human ()
*
*
* Definition:
* Text that can be used to describe the constraint in messages identifying that the constraint has been violated
*
*/
public Constraint setHuman( String theString) {
myHuman = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for xpath ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An XPath expression of constraint that can be executed to see if this constraint is met
*
*/
public StringDt getXpathElement() {
if (myXpath == null) {
myXpath = new StringDt();
}
return myXpath;
}
/**
* Gets the value(s) for xpath ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An XPath expression of constraint that can be executed to see if this constraint is met
*
*/
public String getXpath() {
return getXpathElement().getValue();
}
/**
* Sets the value(s) for xpath ()
*
*
* Definition:
* An XPath expression of constraint that can be executed to see if this constraint is met
*
*/
public Constraint setXpath(StringDt theValue) {
myXpath = theValue;
return this;
}
/**
* Sets the value for xpath ()
*
*
* Definition:
* An XPath expression of constraint that can be executed to see if this constraint is met
*
*/
public Constraint setXpath( String theString) {
myXpath = new StringDt(theString);
return this;
}
}
/**
* Block class for child element: ElementDefinition.binding ()
*
*
* Definition:
* Binds to a value set if this element is coded (code, Coding, CodeableConcept)
*
*/
@Block()
public static class Binding
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="strength", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances"
)
@ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/binding-strength")
private BoundCodeDt myStrength;
@Child(name="description", type=StringDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Describes the intended use of this particular set of codes"
)
private StringDt myDescription;
@Child(name="valueSet", order=2, min=0, max=1, summary=true, modifier=false, type={
UriDt.class,
ValueSet.class
})
@Description(
shortDefinition="",
formalDefinition="Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used"
)
private IDatatype myValueSet;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStrength, myDescription, myValueSet);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStrength, myDescription, myValueSet);
}
/**
* Gets the value(s) for strength ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances
*
*/
public BoundCodeDt getStrengthElement() {
if (myStrength == null) {
myStrength = new BoundCodeDt(BindingStrengthEnum.VALUESET_BINDER);
}
return myStrength;
}
/**
* Gets the value(s) for strength ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances
*
*/
public String getStrength() {
return getStrengthElement().getValue();
}
/**
* Sets the value(s) for strength ()
*
*
* Definition:
* Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances
*
*/
public Binding setStrength(BoundCodeDt theValue) {
myStrength = theValue;
return this;
}
/**
* Sets the value(s) for strength ()
*
*
* Definition:
* Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances
*
*/
public Binding setStrength(BindingStrengthEnum theValue) {
setStrength(new BoundCodeDt(BindingStrengthEnum.VALUESET_BINDER, theValue));
/*
getStrengthElement().setValueAsEnum(theValue);
*/
return this;
}
/**
* Gets the value(s) for description ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Describes the intended use of this particular set of codes
*
*/
public StringDt getDescriptionElement() {
if (myDescription == null) {
myDescription = new StringDt();
}
return myDescription;
}
/**
* Gets the value(s) for description ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Describes the intended use of this particular set of codes
*
*/
public String getDescription() {
return getDescriptionElement().getValue();
}
/**
* Sets the value(s) for description ()
*
*
* Definition:
* Describes the intended use of this particular set of codes
*
*/
public Binding setDescription(StringDt theValue) {
myDescription = theValue;
return this;
}
/**
* Sets the value for description ()
*
*
* Definition:
* Describes the intended use of this particular set of codes
*
*/
public Binding setDescription( String theString) {
myDescription = new StringDt(theString);
return this;
}
/**
* Gets the value(s) for valueSet[x] ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used
*
*/
public IDatatype getValueSet() {
return myValueSet;
}
/**
* Sets the value(s) for valueSet[x] ()
*
*
* Definition:
* Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used
*
*/
public Binding setValueSet(IDatatype theValue) {
myValueSet = theValue;
return this;
}
}
/**
* Block class for child element: ElementDefinition.mapping ()
*
*
* Definition:
* Identifies a concept from an external specification that roughly corresponds to this element
*
*/
@Block()
public static class Mapping
extends BaseIdentifiableElement
implements IResourceBlock {
@Child(name="identity", type=IdDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="An internal reference to the definition of a mapping"
)
private IdDt myIdentity;
@Child(name="language", type=CodeDt.class, order=1, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Identifies the computable language in which mapping.map is expressed."
)
private CodeDt myLanguage;
@Child(name="map", type=StringDt.class, order=2, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="Expresses what part of the target specification corresponds to this element"
)
private StringDt myMap;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myLanguage, myMap);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myLanguage, myMap);
}
/**
* Gets the value(s) for identity ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* An internal reference to the definition of a mapping
*
*/
public IdDt getIdentityElement() {
if (myIdentity == null) {
myIdentity = new IdDt();
}
return myIdentity;
}
/**
* Gets the value(s) for identity ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* An internal reference to the definition of a mapping
*
*/
public String getIdentity() {
return getIdentityElement().getValue();
}
/**
* Sets the value(s) for identity ()
*
*
* Definition:
* An internal reference to the definition of a mapping
*
*/
public Mapping setIdentity(IdDt theValue) {
myIdentity = theValue;
return this;
}
/**
* Sets the value for identity ()
*
*
* Definition:
* An internal reference to the definition of a mapping
*
*/
public Mapping setIdentity( String theId) {
myIdentity = new IdDt(theId);
return this;
}
/**
* Gets the value(s) for language ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Identifies the computable language in which mapping.map is expressed.
*
*/
public CodeDt getLanguageElement() {
if (myLanguage == null) {
myLanguage = new CodeDt();
}
return myLanguage;
}
/**
* Gets the value(s) for language ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Identifies the computable language in which mapping.map is expressed.
*
*/
public String getLanguage() {
return getLanguageElement().getValue();
}
/**
* Sets the value(s) for language ()
*
*
* Definition:
* Identifies the computable language in which mapping.map is expressed.
*
*/
public Mapping setLanguage(CodeDt theValue) {
myLanguage = theValue;
return this;
}
/**
* Sets the value for language ()
*
*
* Definition:
* Identifies the computable language in which mapping.map is expressed.
*
*/
public Mapping setLanguage( String theCode) {
myLanguage = new CodeDt(theCode);
return this;
}
/**
* Gets the value(s) for map ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* Expresses what part of the target specification corresponds to this element
*
*/
public StringDt getMapElement() {
if (myMap == null) {
myMap = new StringDt();
}
return myMap;
}
/**
* Gets the value(s) for map ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* Expresses what part of the target specification corresponds to this element
*
*/
public String getMap() {
return getMapElement().getValue();
}
/**
* Sets the value(s) for map ()
*
*
* Definition:
* Expresses what part of the target specification corresponds to this element
*
*/
public Mapping setMap(StringDt theValue) {
myMap = theValue;
return this;
}
/**
* Sets the value for map ()
*
*
* Definition:
* Expresses what part of the target specification corresponds to this element
*
*/
public Mapping setMap( String theString) {
myMap = new StringDt(theString);
return this;
}
}
}