Onto-Med / top-api

REST API of the TOP Framework
https://onto-med.github.io/top-api/
MIT License
0 stars 1 forks source link

Using observation date instead of value for variables in mathematical formulas #45

Closed AlexU75 closed 2 years ago

AlexU75 commented 2 years ago

as function or special type of variable?

ChristophB commented 2 years ago

It would be more streamlined, if we use a function that extracts the observation date from the variable.

AlexU75 commented 2 years ago

When using EvalEx it is a problem. EvalEx has two types of functions, one with numeric parameters (BigDecimal) and one with Object parameters (can be anything, just need to implement an Inteface). When the variables/parameters are set (before execution) it must be known which type it is. But if I have a variable (like 'weight') I can't know how it will be used in the formula.

ChristophB commented 2 years ago

This issue should be resolved with our decision to not use EvalEx.