com.nedap.archie.serializer.adl.ADLOperationalTemplateSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aom Show documentation
Show all versions of aom Show documentation
An OpenEHR archetype object model implementation, plus parser
package com.nedap.archie.serializer.adl;
import com.nedap.archie.aom.Archetype;
import com.nedap.archie.aom.OperationalTemplate;
import com.nedap.archie.rminfo.RMObjectMapperProvider;
import java.util.function.Function;
/**
* @author markopi
*/
class ADLOperationalTemplateSerializer extends ADLAuthoredArchetypeSerializer {
public ADLOperationalTemplateSerializer(OperationalTemplate archetype, Function flatArchetypeProvider, RMObjectMapperProvider rmObjectMapperProvider) {
super(archetype, flatArchetypeProvider, rmObjectMapperProvider);
}
@Override
protected String serialize() {
super.serialize();
builder.newline().append("component_terminologies").newIndentedLine()
.append("component_terminologies = < ") //todo: this should perhaps be in the ODIN serializer?
.indent()
.odin(archetype.getComponentTerminologies())
.unindent()
.append("> ")
.unindent();
return builder.toString();
}
@Override
protected String headTag() {
return "operational_template";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy