openEHR / archie

OpenEHR library implementing ADL 2, AOM 2, BMM, RM 1.0.4 and many tools
Apache License 2.0
53 stars 25 forks source link

Remove annotations of objects with zero occurrences #613

Open VeraPrinsen opened 4 months ago

VeraPrinsen commented 4 months ago

In the Flattener, on this line https://github.com/openEHR/archie/blob/0f48e8e752647625c113f09c90e92e2f6c8df2d9/tools/src/main/java/com/nedap/archie/flattener/Flattener.java#L182, the objects with zero occurrences are removed from the flattened archetype.

This is however not done with annotations referring to these objects.

These annotations should also be removed in the flattener.