Search in sources :

Example 1 with Normalizer

use of org.ehrbase.normalizer.Normalizer in project openEHR_SDK by ehrbase.

the class NormalizerTest method normalize.

@Test
public void normalize() throws IOException, XmlException {
    OPERATIONALTEMPLATE template = TemplateDocument.Factory.parse(OperationalTemplateTestData.ALL_TYPES.getStream()).getTemplate();
    OptSkeletonBuilder skeletonBuilder = new OptSkeletonBuilder();
    RMObject rmObject = skeletonBuilder.generate(template);
    Normalizer cut = new Normalizer();
    Composition actual = (Composition) cut.normalize(rmObject);
    assertThat(actual).isNotNull();
    assertThat(actual.getContent()).size().isEqualTo(0);
}
Also used : OPERATIONALTEMPLATE(org.openehr.schemas.v1.OPERATIONALTEMPLATE) Composition(com.nedap.archie.rm.composition.Composition) Normalizer(org.ehrbase.normalizer.Normalizer) OptSkeletonBuilder(org.ehrbase.building.OptSkeletonBuilder) RMObject(com.nedap.archie.rm.RMObject) Test(org.junit.Test)

Aggregations

RMObject (com.nedap.archie.rm.RMObject)1 Composition (com.nedap.archie.rm.composition.Composition)1 OptSkeletonBuilder (org.ehrbase.building.OptSkeletonBuilder)1 Normalizer (org.ehrbase.normalizer.Normalizer)1 Test (org.junit.Test)1 OPERATIONALTEMPLATE (org.openehr.schemas.v1.OPERATIONALTEMPLATE)1