Hi all, I’m coming back to the flattening problem.
I opened an issue for the null parent problem: https://github.com/openEHR/java-libs/issues/1
This is not a blocker but makes code more complex since parent should be passed as param to each method that process an archetype node :-/
As for nodeIDs I will go for changing all the nodeIDs on the flattened archetype and generate a file of mappings to the original codes, this is because I can’t change nodeID format in AOM java-ref-impl adding something to resolve nodeID collissions. This issue was a blocker on previous tries: https://code.google.com/p/openehr-archetype-flattener/.
New code with successful flattening algorithm will be on github soon.