On 02/02/2019 13:15, Ian McNicoll wrote:
Hi Pieter,

"But why would I need a function to calculate a score that is just a sum of a number of values, instead of a few +-operators?"

It is an open question but one advantage of using the function approach, with simple values is that it can encapsulate the algorithm without too much dependency on understanding openEHR paths or path -bindings. That should allow broader engagement with non-openEHR specialists.

My preference is to support use of openEHR datatypes within the expression (albeit perhaps in reduced format), as otherwise passing units etc as scalars starts to get cumbersome.

agree - that is the idea of this construct in the EL

*use_model*
    org.openehr.rm

then you can declare vars to be of RM types like DvQuantity, DvOrdinal etc.

- t


_______________________________________________
openEHR-technical mailing list
openEHR-technical@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

Reply via email to