{"action":"closed","issue":{"url":"https://api.github.com/repos/openEHR/adl2-core/issues/3","labels_url":"https://api.github.com/repos/openEHR/adl2-core/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/openEHR/adl2-core/issues/3/comments","events_url":"https://api.github.com/repos/openEHR/adl2-core/issues/3/events","html_url":"https://github.com/openEHR/adl2-core/issues/3","id":54618314,"number":3,"title":"Problem with ArchetypeMerge on element with choice","user":{"login":"bjornna","id":300271,"avatar_url":"https://avatars.githubusercontent.com/u/300271?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornna","html_url":"https://github.com/bjornna","followers_url":"https://api.github.com/users/bjornna/followers","following_url":"https://api.github.com/users/bjornna/following{/other_user}","gists_url":"https://api.github.com/users/bjornna/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornna/subscriptions","organizations_url":"https://api.github.com/users/bjornna/orgs","repos_url":"https://api.github.com/users/bjornna/repos","events_url":"https://api.github.com/users/bjornna/events{/privacy}","received_events_url":"https://api.github.com/users/bjornna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-16T20:00:56Z","updated_at":"2015-01-28T12:03:33Z","closed_at":"2015-01-28T12:03:33Z","body":"There is a problem with merge of parent-child archetype. This is related to element with CHOICE. \r\n\r\nOne example is the two archetypes: \r\nopenEHR-EHR-CLUSTER.amount.v1\r\nopenEHR-EHR-CLUSTER.amount-range.v1\r\n\r\nI think the problem is related to the following method in org.openehr.adl.flattener.ArchetypeMerger: \r\n...\r\n@Nullable\r\n    private CObject findSpecializedConstraintOfParentNode\r\n...\r\n\r\nI found a solution for the archetypes above, but that introduced failure on other tests. The proposed fix was to check for both nodeId and rmTypeName. \r\n\r\n I am still looking on this. "}}