Skip to content

LocatableList does not accept duplication of name #3

@felipedrumond

Description

@felipedrumond

I'm not sure it is really a bug, but worth discussing because it might be a problem others might face as well.

001

I have an Observation of the archetype openEHR-EHR-OBSERVATION.pathology_test-ubr.v1 which contains an archetype Event Series that has a list of Events. The problem is that every single Event node has the same Name, using the same archetype_node_id.

002

When parsing the xml to an Observation instance, the AddItem method at LocatableList.cs has the following code:

if (namedLocatables.Contains(item.Name.Value)) throw new ApplicationException(string.Format("locatable ({0}) name ({1}) already existing in this namedLocatable list", item.ArchetypeNodeId, item.Name.Value));

This code do not allows me add avery Event to the list, because they use the same archetype_node_id and name.

When it is about and Element it does make sense, after all we cannot have

screen shot 2017-08-23 at 12 04 47

Why is that?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions