/** * 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); } /**
/** * Gets the value(s) for <b>slicing</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * 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) * </p> */ public Slicing getSlicing() { if (mySlicing == null) { mySlicing = new Slicing(); } return mySlicing; }
/** * 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; }
/** * Gets the value(s) for <b>rules</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * 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 * </p> */ public String getRules() { return getRulesElement().getValue(); }
/** * Gets the value(s) for <b>ordered</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * If the matching elements have to occur in the same order as defined in the profile * </p> */ public Boolean getOrdered() { return getOrderedElement().getValue(); }
/** * Gets the value(s) for <b>description</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * 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 * </p> */ public String getDescription() { return getDescriptionElement().getValue(); }
/** * Sets the value(s) for <b>rules</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public Slicing setRules(SlicingRulesEnum theValue) { setRules(new BoundCodeDt<SlicingRulesEnum>(SlicingRulesEnum.VALUESET_BINDER, theValue)); /* getRulesElement().setValueAsEnum(theValue); */ return this; }
/** * 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 value(s) for <b>slicing</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * 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) * </p> */ public Slicing getSlicing() { if (mySlicing == null) { mySlicing = new Slicing(); } return mySlicing; }
/** * 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 value(s) for <b>description</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * 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 * </p> */ public String getDescription() { return getDescriptionElement().getValue(); }
/** * Gets the value(s) for <b>rules</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * 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 * </p> */ public String getRules() { return getRulesElement().getValue(); }
/** * Gets the value(s) for <b>ordered</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * If the matching elements have to occur in the same order as defined in the profile * </p> */ public Boolean getOrdered() { return getOrderedElement().getValue(); }
/** * Sets the value(s) for <b>rules</b> () * * <p> * <b>Definition:</b> * 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 * </p> */ public Slicing setRules(SlicingRulesEnum theValue) { getRulesElement().setValueAsEnum(theValue); return this; }