use of com.nedap.archie.rm.composition.Activity in project openEHR_SDK by ehrbase.
the class DtoToCompositionWalker method postHandle.
@Override
protected void postHandle(Context<Map<String, Object>> context) {
super.postHandle(context);
RMObject rmObject = context.getRmObjectDeque().peek();
if (rmObject instanceof Activity) {
context.getObjectDeque().peek().entrySet().stream().filter(e -> e.getKey().endsWith("/action_archetype_id")).map(Map.Entry::getValue).map(String.class::cast).findAny().ifPresent(((Activity) rmObject)::setActionArchetypeId);
}
}