# ASSERTION in openehr\_expression\_104.bmm is not in accordance with the specifications

**URL:** https://discourse.openehr.org/t/assertion-in-openehr-expression-104-bmm-is-not-in-accordance-with-the-specifications/2203
**Category:** BMM/Expressions
**Tags:** template
**Created:** [16 December 2021 10:29 UTC](https://discourse.openehr.org/t/assertion-in-openehr-expression-104-bmm-is-not-in-accordance-with-the-specifications/2203 "2021-12-16T10:29:28Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![pieterbos](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pieterbos/32/512_2.png) [@pieterbos](https://discourse.openehr.org/u/pieterbos)
#### Post date: [28 December 2021 16:23 UTC](https://discourse.openehr.org/t/assertion-in-openehr-expression-104-bmm-is-not-in-accordance-with-the-specifications/2203/26 "2021-12-28T16:23:40Z")

</div>

There appear to be more differences, unfortunately.

Differences between the model in Archie and [Expression Language (EL)](https://specifications.openehr.org/releases/BASE/Release-1.0.4/expression.html#_assignment_class) that are not simple renames that I found so far:

- EXPR\_FUNCTION.function\_def is of type FUNCTION\_DEF. It is EXPR\_FUNCTION.function\_name as a string in Archie. There is no function\_def class in Archie.
- OPERATOR\_DEF\_BUILTIN is an enum in Archie (renames are easy, parsing/serialization slightly more tricky)
- EXPR\_TYPE\_DEF is the enum EXPRESSION\_TYPE in archie (renames are easy, parsing/serialization slightly more tricky)
- there is no ASSINGMENT in Archie, just variable declaration, not even in the grammar.
- the for all statement is missing in the specification. It cannot be expressed as a simple binary operator, and in archie is a separate class inheriting from operator with variable\_name, left\_operator (the expression pointing to a collection of values) and right\_operand (the expression to be evaluated as an assertion for every member of the collection)
- **precedence\_overridden** is in binary operator in the spec, in expression in Archie. Minor, in archie it’s possible to store more places where `()` can appear in the grammar, but they are pretty much meaningless in execution if not around an instance of OPERATOR

I might find more later.

---

_[View the full topic](https://discourse.openehr.org/t/assertion-in-openehr-expression-104-bmm-is-not-in-accordance-with-the-specifications/2203)._
