Package com.ibm.fhir.model.type
Class Expression.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Expression.Builder
-
- Enclosing class:
- Expression
public static class Expression.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expressionbuild()Build theExpressionExpression.Builderdescription(String description)A brief, natural language description of the condition that effectively communicates the intended semantics.Expression.Builderexpression(String expression)An expression in the specified language that returns a value.Expression.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Expression.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Expression.Builderfrom(Expression expression)Expression.Builderid(String id)Unique id for the element within a resource (for internal references).Expression.Builderlanguage(Code language)The media type of the language for the expression.Expression.Buildername(Id name)A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.Expression.Builderreference(Uri reference)A URI that defines where the expression is found.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Expression.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public Expression.Builder extension(Extension... extension)
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 manageable, 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.Adds new element(s) to the existing list
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Expression.Builder extension(Collection<Extension> extension)
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 manageable, 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.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
description
public Expression.Builder description(String description)
A brief, natural language description of the condition that effectively communicates the intended semantics.- Parameters:
description- Natural language description of the condition- Returns:
- A reference to this Builder instance
-
name
public Expression.Builder name(Id name)
A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.- Parameters:
name- Short name assigned to expression for reuse- Returns:
- A reference to this Builder instance
-
language
public Expression.Builder language(Code language)
The media type of the language for the expression.This element is required.
- Parameters:
language- text/cql | text/fhirpath | application/x-fhir-query | etc.- Returns:
- A reference to this Builder instance
-
expression
public Expression.Builder expression(String expression)
An expression in the specified language that returns a value.- Parameters:
expression- Expression in specified language- Returns:
- A reference to this Builder instance
-
reference
public Expression.Builder reference(Uri reference)
A URI that defines where the expression is found.- Parameters:
reference- Where the expression is found- Returns:
- A reference to this Builder instance
-
build
public Expression build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Expression - Throws:
IllegalStateException- if the current state cannot be built into a valid Expression per the base specification
-
from
protected Expression.Builder from(Expression expression)
-
-