Skip to content

Local variable in match block is misresolved as a property reference inside object pattern constraints #10

Description

@mxmxmx888

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.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions