Search in sources :

Example 6 with TermMapping

use of com.nedap.archie.rm.datavalues.TermMapping in project ehrbase by ehrbase.

the class PersistentTermMapping method termMappingRepresentation.

public String[] termMappingRepresentation(List<TermMapping> termMappings) {
    List<String> dvCodedTextTermMappingRecords = new ArrayList<>();
    for (TermMapping termMapping : termMappings) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(new PersistentTermMapping(termMapping).encodeAsString());
        dvCodedTextTermMappingRecords.add(stringBuilder.toString());
    }
    return dvCodedTextTermMappingRecords.toArray(new String[] {});
}
Also used : TermMapping(com.nedap.archie.rm.datavalues.TermMapping) ArrayList(java.util.ArrayList)

Aggregations

TermMapping (com.nedap.archie.rm.datavalues.TermMapping)6 CodePhrase (com.nedap.archie.rm.datatypes.CodePhrase)4 DvCodedText (com.nedap.archie.rm.datavalues.DvCodedText)3 DvText (com.nedap.archie.rm.datavalues.DvText)3 TerminologyId (com.nedap.archie.rm.support.identification.TerminologyId)3 TermMappingTest (care.better.platform.web.template.TermMappingTest)2 Composition (com.nedap.archie.rm.composition.Composition)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)2 Tuple (org.assertj.core.groups.Tuple)2 Helper.getFlatJson (org.ehrbase.conformance_test.extern.Helper.getFlatJson)2 FlatFormat (org.ehrbase.serialisation.flatencoding.FlatFormat)2 CanonicalJson (org.ehrbase.serialisation.jsonencoding.CanonicalJson)2 Test (org.junit.jupiter.api.Test)2 Map (java.util.Map)1 Set (java.util.Set)1 EventContextRecord (org.ehrbase.jooq.pg.tables.records.EventContextRecord)1 CodePhraseRecord (org.ehrbase.jooq.pg.udt.records.CodePhraseRecord)1 DvCodedTextRecord (org.ehrbase.jooq.pg.udt.records.DvCodedTextRecord)1