Search in sources :

Example 1 with Activity

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);
    }
}
Also used : Activity(com.nedap.archie.rm.composition.Activity) RMObject(com.nedap.archie.rm.RMObject)

Aggregations

RMObject (com.nedap.archie.rm.RMObject)1 Activity (com.nedap.archie.rm.composition.Activity)1