pub struct ExpressionBuilder { /* private fields */ }
Expand description
Builder for ExpressionInner
.
Implementations§
Source§impl ExpressionBuilder
impl ExpressionBuilder
Sourcepub fn id(self, value: String) -> ExpressionBuilder
pub fn id(self, value: String) -> ExpressionBuilder
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>) -> ExpressionBuilder
pub fn extension(self, value: Vec<Extension>) -> ExpressionBuilder
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 description(self, value: String) -> ExpressionBuilder
pub fn description(self, value: String) -> ExpressionBuilder
Natural language description of the condition
A brief, natural language description of the condition that effectively communicates the intended semantics.
Sourcepub fn description_ext(self, value: FieldExtension) -> ExpressionBuilder
pub fn description_ext(self, value: FieldExtension) -> ExpressionBuilder
Extension field.
Sourcepub fn name(self, value: String) -> ExpressionBuilder
pub fn name(self, value: String) -> ExpressionBuilder
Short name assigned to expression for reuse
A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.
Sourcepub fn name_ext(self, value: FieldExtension) -> ExpressionBuilder
pub fn name_ext(self, value: FieldExtension) -> ExpressionBuilder
Extension field.
Sourcepub fn language(self, value: String) -> ExpressionBuilder
pub fn language(self, value: String) -> ExpressionBuilder
ExpressionLanguage; text/cql | text/fhirpath | application/x-fhir-query | etc.
The media type of the language for the expression.
Sourcepub fn language_ext(self, value: FieldExtension) -> ExpressionBuilder
pub fn language_ext(self, value: FieldExtension) -> ExpressionBuilder
Extension field.
Sourcepub fn expression(self, value: String) -> ExpressionBuilder
pub fn expression(self, value: String) -> ExpressionBuilder
Expression in specified language
An expression in the specified language that returns a value.
If Expression.expression and Expression.reference are both present, the Expression.expression might just be a name pointing something within the referenced content.
Sourcepub fn expression_ext(self, value: FieldExtension) -> ExpressionBuilder
pub fn expression_ext(self, value: FieldExtension) -> ExpressionBuilder
Extension field.
Sourcepub fn reference(self, value: String) -> ExpressionBuilder
pub fn reference(self, value: String) -> ExpressionBuilder
Where the expression is found
A URI that defines where the expression is found.
If both a reference and an expression is found, the reference SHALL point to the same expression.
Sourcepub fn reference_ext(self, value: FieldExtension) -> ExpressionBuilder
pub fn reference_ext(self, value: FieldExtension) -> ExpressionBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<ExpressionInner, BuilderError>
pub fn build_inner(self) -> Result<ExpressionInner, BuilderError>
Source§impl ExpressionBuilder
impl ExpressionBuilder
Sourcepub fn build(self) -> Result<Expression, BuilderError>
pub fn build(self) -> Result<Expression, BuilderError>
Finalize building Expression.