/** * Adds and returns a new value for <b>type</b> () * * <p> * <b>Definition:</b> * The data type or resource that the value of this element is permitted to be * </p> */ public Type addType() { Type newType = new Type(); getType().add(newType); return newType; }
/** * Gets the first repetition for <b>aggregation</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle * </p> */ public BoundCodeDt<AggregationModeEnum> getAggregationFirstRep() { if (getAggregation().size() == 0) { addAggregation(); } return getAggregation().get(0); }
/** * Gets the first repetition for <b>profile</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * 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 * </p> */ public UriDt getProfileFirstRep() { if (getProfile().isEmpty()) { return addProfile(); } return getProfile().get(0); } /**
/** * Add a value for <b>aggregation</b> () 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. * * <p> * <b>Definition:</b> * 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. * </p> */ public BoundCodeDt<AggregationModeEnum> addAggregation(AggregationModeEnum theValue) { BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER, theValue); getAggregation().add(retVal); return retVal; }
/** * Adds a given new value for <b>profile</b> () * * <p> * <b>Definition:</b> * 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 * </p> * @param theValue The profile to add (must not be <code>null</code>) */ 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 <b>profile</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * 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 * </p> */ public UriDt getProfileFirstRep() { if (getProfile().isEmpty()) { return addProfile(); } return getProfile().get(0); } /**
/** * Gets the first repetition for <b>aggregation</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * 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. * </p> */ public BoundCodeDt<AggregationModeEnum> getAggregationFirstRep() { if (getAggregation().size() == 0) { addAggregation(); } return getAggregation().get(0); }
/** * Adds and returns a new value for <b>profile</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public UriDt addProfile() { UriDt newType = new UriDt(); getProfile().add(newType); return newType; }
/** * Gets the value(s) for <b>code</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Name of Data type or Resource that is a(or the) type used for this element * </p> */ public String getCode() { return getCodeElement().getValue(); }
/** * Adds and returns a new value for <b>type</b> () * * <p> * <b>Definition:</b> * The data type or resource that the value of this element is permitted to be * </p> */ public Type addType() { Type newType = new Type(); getType().add(newType); return newType; }
/** * Add a value for <b>aggregation</b> () * * <p> * <b>Definition:</b> * 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. * </p> */ public BoundCodeDt<AggregationModeEnum> addAggregation() { BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER); getAggregation().add(retVal); return retVal; }
/** * Sets the value(s), and clears any existing value(s) for <b>aggregation</b> () * * <p> * <b>Definition:</b> * 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. * </p> */ public Type setAggregation(AggregationModeEnum theValue) { getAggregation().clear(); addAggregation(theValue); return this; }
/** * Adds a given new value for <b>profile</b> () * * <p> * <b>Definition:</b> * 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 * </p> * @param theValue The profile to add (must not be <code>null</code>) */ public Type addProfile(UriDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getProfile().add(theValue); return this; }
/** * Add a value for <b>aggregation</b> () 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. * * <p> * <b>Definition:</b> * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle * </p> */ public BoundCodeDt<AggregationModeEnum> addAggregation(AggregationModeEnum theValue) { BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER, theValue); getAggregation().add(retVal); return retVal; }
/** * Add a value for <b>aggregation</b> () * * <p> * <b>Definition:</b> * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle * </p> */ public BoundCodeDt<AggregationModeEnum> addAggregation() { BoundCodeDt<AggregationModeEnum> retVal = new BoundCodeDt<AggregationModeEnum>(AggregationModeEnum.VALUESET_BINDER); getAggregation().add(retVal); return retVal; }
/** * Adds and returns a new value for <b>profile</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public UriDt addProfile() { UriDt newType = new UriDt(); getProfile().add(newType); return newType; }
/** * Sets the value(s), and clears any existing value(s) for <b>aggregation</b> () * * <p> * <b>Definition:</b> * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle * </p> */ public Type setAggregation(AggregationModeEnum theValue) { getAggregation().clear(); addAggregation(theValue); return this; }
/** * Gets the value(s) for <b>code</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Name of Data type or Resource that is a(or the) type used for this element * </p> */ public String getCode() { return getCodeElement().getValue(); }