# Expression

Canonical page: https://docs.ovok.com/fhir-elements/complex/expression

Base StructureDefinition for Expression Type: A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.

Complex data type in FHIR R4. Maturity: Not stated.

## Elements [#elements]

| **Element** | **Type** | **Cardinality** | **Description** |
| --- | --- | --- | --- |
| <span id="element-id"></span>`id` | [string](/fhir-elements/primitive/string) | `0..1` | Unique id for inter-element referencing |
| <span id="element-extension"></span>`extension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Additional content defined by implementations |
| <span id="element-description"></span>`description` | [string](/fhir-elements/primitive/string) | `0..1` | Natural language description of the condition |
| <span id="element-name"></span>`name` | [id](/fhir-elements/primitive/id) | `0..1` | Short name assigned to expression for reuse |
| <span id="element-language"></span>`language` | [code](/fhir-elements/primitive/code) | `1..1` | text/cql \| text/fhirpath \| application/x-fhir-query \| etc. |
| <span id="element-expression"></span>`expression` | [string](/fhir-elements/primitive/string) | `0..1` | Expression in specified language |
| <span id="element-reference"></span>`reference` | [uri](/fhir-elements/primitive/uri) | `0..1` | Where the expression is found |

## Reference [#reference]

Official FHIR R4 specification: [Expression](https://hl7.org/fhir/R4/datatypes.html#Expression).
