pub struct ElementDefinitionSlicingBuilder { /* private fields */ }
Expand description
Builder for ElementDefinitionSlicing
.
Implementations§
Source§impl ElementDefinitionSlicingBuilder
impl ElementDefinitionSlicingBuilder
Sourcepub fn id(self, value: String) -> ElementDefinitionSlicingBuilder
pub fn id(self, value: String) -> ElementDefinitionSlicingBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(self, value: Vec<Extension>) -> ElementDefinitionSlicingBuilder
pub fn extension(self, value: Vec<Extension>) -> ElementDefinitionSlicingBuilder
Additional content defined by implementations
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn discriminator(
self,
value: Vec<Option<ElementDefinitionSlicingDiscriminator>>,
) -> ElementDefinitionSlicingBuilder
pub fn discriminator( self, value: Vec<Option<ElementDefinitionSlicingDiscriminator>>, ) -> ElementDefinitionSlicingBuilder
Element values that are used to distinguish the slices
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.
If there is no discriminator, the content is hard to process, so this should be avoided.
Sourcepub fn discriminator_ext(
self,
value: Vec<Option<FieldExtension>>,
) -> ElementDefinitionSlicingBuilder
pub fn discriminator_ext( self, value: Vec<Option<FieldExtension>>, ) -> ElementDefinitionSlicingBuilder
Extension field.
Sourcepub fn description(self, value: String) -> ElementDefinitionSlicingBuilder
pub fn description(self, value: String) -> ElementDefinitionSlicingBuilder
Text description of how slicing works (or not)
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.
If it’s really not possible to differentiate them, the design should be re-evaluated to make the content usable.
Sourcepub fn description_ext(
self,
value: FieldExtension,
) -> ElementDefinitionSlicingBuilder
pub fn description_ext( self, value: FieldExtension, ) -> ElementDefinitionSlicingBuilder
Extension field.
Sourcepub fn ordered(self, value: bool) -> ElementDefinitionSlicingBuilder
pub fn ordered(self, value: bool) -> ElementDefinitionSlicingBuilder
If elements must be in same order as slices
If the matching elements have to occur in the same order as defined in the profile.
Order should only be required when it is a pressing concern for presentation. Profile authors should consider making the order a feature of the rules about the narrative, not the rules about the data - requiring ordered data makes the profile much less re-usable.
Sourcepub fn ordered_ext(
self,
value: FieldExtension,
) -> ElementDefinitionSlicingBuilder
pub fn ordered_ext( self, value: FieldExtension, ) -> ElementDefinitionSlicingBuilder
Extension field.
Sourcepub fn rules(self, value: SlicingRules) -> ElementDefinitionSlicingBuilder
pub fn rules(self, value: SlicingRules) -> ElementDefinitionSlicingBuilder
SlicingRules; closed | open | openAtEnd
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.
Allowing additional elements makes for a much for flexible template - it’s open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile.
Sourcepub fn rules_ext(self, value: FieldExtension) -> ElementDefinitionSlicingBuilder
pub fn rules_ext(self, value: FieldExtension) -> ElementDefinitionSlicingBuilder
Extension field.