Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocatableList does not accept duplication of name #3

Open
felipedrumond opened this issue Aug 23, 2017 · 0 comments
Open

LocatableList does not accept duplication of name #3

felipedrumond opened this issue Aug 23, 2017 · 0 comments

Comments

@felipedrumond
Copy link

felipedrumond commented Aug 23, 2017

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?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant