/** * Adds a given new value for <b>discriminator</b> () * * <p> * <b>Definition:</b> * 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 * </p> * @param theValue The discriminator to add (must not be <code>null</code>) */ 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 <b>discriminator</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * 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 * </p> */ public StringDt getDiscriminatorFirstRep() { if (getDiscriminator().isEmpty()) { return addDiscriminator(); } return getDiscriminator().get(0); } /**
/** * Adds and returns a new value for <b>discriminator</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public StringDt addDiscriminator() { StringDt newType = new StringDt(); getDiscriminator().add(newType); return newType; }
/** * Gets the first repetition for <b>discriminator</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * 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 * </p> */ public StringDt getDiscriminatorFirstRep() { if (getDiscriminator().isEmpty()) { return addDiscriminator(); } return getDiscriminator().get(0); } /**
/** * Adds a given new value for <b>discriminator</b> () * * <p> * <b>Definition:</b> * 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 * </p> * @param theValue The discriminator to add (must not be <code>null</code>) */ public Slicing addDiscriminator(StringDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getDiscriminator().add(theValue); return this; }
/** * Adds and returns a new value for <b>discriminator</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public StringDt addDiscriminator() { StringDt newType = new StringDt(); getDiscriminator().add(newType); return newType; }