@Test public void testSerializeCodedText() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl14/adl-test-composition.dv_coded_text.test.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); }
@Test public void testSerialize() throws Exception { Archetype archetypeAlert = TestAdlParser.parseAdl("adl15/repository/openEHR-EHR-EVALUATION.alert.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetypeAlert); write(serialized, "TestSerialize-Alert-v1.adls"); }
@Test public void testSerializeAttributes() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl15/openEHR-EHR-COMPOSITION.attributes_a.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestSerializeAttribute.adls"); }
@Test public void testSerializeQuantity() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl14/adl-test-entry.c_dv_quantity_full.test.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestSerializeQuantity.adl"); }
@Test public void testQuantityTuple() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl15/tuples/openEHR-EHR-OBSERVATION.quantity_tuple.v1.adls"); String serialized = ArchetypeSerializer.serialize(archetype); // System.out.println(serialized); }
@Test public void testSerializeDemoArchetype() { Archetype archetype = TestAdlParser.parseAdl("adl14/openEHR-EHR-OBSERVATION.demo.v1.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestDemoArchetype.adl"); Archetype result = TestAdlParser.parseAdlFromString(serialized); assertThat(result).isNotNull(); }
@Test public void testSerializeBloodPressure() { Archetype archetype = TestAdlParser.parseAdl("adl14/openEHR-EHR-OBSERVATION.blood_pressure.v1.adl"); String adl = ArchetypeSerializer.serialize(archetype); write(adl, "openEHR-EHR-OBSERVATION.blood_pressure.v1.adl"); Archetype result = TestAdlParser.parseAdlFromString(adl); assertThat(result).isNotNull(); }
@Test public void testAssumedValueOnQuantituy() throws Exception { Archetype archetype = TestAdlParser.parseAdl("adl14/openEHR-EHR-OBSERVATION.test_assumed.v1.adl"); String serialized = ArchetypeSerializer.serialize(archetype); assertNotNull(serialized); write(serialized, "TestAssumedValueOnQuantity.adl"); }