There appears to be a name resolution issue in the MDEO model transformation language. A local variable declared in a match block can be used in ordinary where clauses, but when referenced inside an object pattern constraint block, it is treated as if it were a property name instead of a local variable.
Actual behaviour:
The validator reports:
Could not resolve reference to Property named patientDuration
Expected behaviour:
patientDuration should be resolved as the local variable declared earlier in the same match block, not as a property of Patient.
There appears to be a name resolution issue in the MDEO model transformation language. A local variable declared in a match block can be used in ordinary where clauses, but when referenced inside an object pattern constraint block, it is treated as if it were a property name instead of a local variable.
Actual behaviour:
The validator reports:
Could not resolve reference to Property named patientDuration
Expected behaviour:
patientDuration should be resolved as the local variable declared earlier in the same match block, not as a property of Patient.