/** * Gets the first repetition for <b>alias</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies additional names by which this element might also be known * </p> */ public StringDt getAliasFirstRep() { if (getAlias().isEmpty()) { return addAlias(); } return getAlias().get(0); } /**
/** * Gets the first repetition for <b>code</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A code that provides the meaning for the element according to a particular terminology. * </p> */ public CodingDt getCodeFirstRep() { if (getCode().isEmpty()) { return addCode(); } return getCode().get(0); }
/** * Gets the first repetition for <b>condition</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A reference to an invariant that may make additional statements about the cardinality or value in the instance * </p> */ public IdDt getConditionFirstRep() { if (getCondition().isEmpty()) { return addCondition(); } return getCondition().get(0); } /**
/** * Sets the value(s), and clears any existing value(s) for <b>representation</b> () * * <p> * <b>Definition:</b> * Codes that define how this element is represented in instances, when the deviation varies from the normal case * </p> */ public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) { getRepresentation().clear(); addRepresentation(theValue); return this; }
/** * Gets the first repetition for <b>type</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The data type or resource that the value of this element is permitted to be * </p> */ public Type getTypeFirstRep() { if (getType().isEmpty()) { return addType(); } return getType().get(0); }
/** * Gets the first repetition for <b>mapping</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies a concept from an external specification that roughly corresponds to this element * </p> */ public Mapping getMappingFirstRep() { if (getMapping().isEmpty()) { return addMapping(); } return getMapping().get(0); }
/** * Gets the first repetition for <b>constraint</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance * </p> */ public Constraint getConstraintFirstRep() { if (getConstraint().isEmpty()) { return addConstraint(); } return getConstraint().get(0); }
/** * Adds a given new value for <b>code</b> () * * <p> * <b>Definition:</b> * A code that provides the meaning for the element according to a particular terminology. * </p> * @param theValue The code to add (must not be <code>null</code>) */ public ElementDefinitionDt addCode(CodingDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCode().add(theValue); return this; }
/** * Adds a given new value for <b>alias</b> () * * <p> * <b>Definition:</b> * Identifies additional names by which this element might also be known * </p> * @param theValue The alias to add (must not be <code>null</code>) */ public ElementDefinitionDt addAlias(StringDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getAlias().add(theValue); return this; }
/** * Gets the value(s) for <b>comments</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. * </p> */ public String getComments() { return getCommentsElement().getValue(); }
/** * Gets the first repetition for <b>representation</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Codes that define how this element is represented in instances, when the deviation varies from the normal case * </p> */ public BoundCodeDt<PropertyRepresentationEnum> getRepresentationFirstRep() { if (getRepresentation().size() == 0) { addRepresentation(); } return getRepresentation().get(0); }
/** * Gets the first repetition for <b>type</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * The data type or resource that the value of this element is permitted to be * </p> */ public Type getTypeFirstRep() { if (getType().isEmpty()) { return addType(); } return getType().get(0); }
/** * Gets the first repetition for <b>mapping</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies a concept from an external specification that roughly corresponds to this element * </p> */ public Mapping getMappingFirstRep() { if (getMapping().isEmpty()) { return addMapping(); } return getMapping().get(0); }
/** * Gets the first repetition for <b>constraint</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance * </p> */ public Constraint getConstraintFirstRep() { if (getConstraint().isEmpty()) { return addConstraint(); } return getConstraint().get(0); }
/** * Adds and returns a new value for <b>code</b> () * * <p> * <b>Definition:</b> * A code that provides the meaning for the element according to a particular terminology. * </p> */ public CodingDt addCode() { CodingDt newType = new CodingDt(); getCode().add(newType); return newType; }
/** * Adds and returns a new value for <b>alias</b> () * * <p> * <b>Definition:</b> * Identifies additional names by which this element might also be known * </p> */ public StringDt addAlias() { StringDt newType = new StringDt(); getAlias().add(newType); return newType; }
/** * Gets the value(s) for <b>comments</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Explanatory notes and implementation guidance about the data element, including notes about how to use the data properly, exceptions to proper use, etc. * </p> */ public String getComments() { return getCommentsElement().getValue(); }
/** * Sets the value(s), and clears any existing value(s) for <b>representation</b> () * * <p> * <b>Definition:</b> * Codes that define how this element is represented in instances, when the deviation varies from the normal case * </p> */ public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) { getRepresentation().clear(); addRepresentation(theValue); return this; }
/** * Gets the first repetition for <b>code</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A code that provides the meaning for the element according to a particular terminology. * </p> */ public CodingDt getCodeFirstRep() { if (getCode().isEmpty()) { return addCode(); } return getCode().get(0); }
/** * Gets the first repetition for <b>alias</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies additional names by which this element might also be known * </p> */ public StringDt getAliasFirstRep() { if (getAlias().isEmpty()) { return addAlias(); } return getAlias().get(0); } /**