use of org.ehrbase.fhirbridge.ehr.opt.sofacomposition.SOFAComposition in project fhir-bridge by ehrbase.
the class SofaScoreCompositionConverter method convertInternal.
@Override
public SOFAComposition convertInternal(@NonNull Observation observation) {
SOFAComposition result = new SOFAComposition();
result.setKategorie(convertCategory(observation));
result.setSofaScore(sofaScoreObservationConverter.convert(observation));
return result;
}
use of org.ehrbase.fhirbridge.ehr.opt.sofacomposition.SOFAComposition in project fhir-bridge by ehrbase.
the class SofaScoreIT method testMapping.
@Override
public void testMapping(String resourcePath, String paragonPath) throws IOException {
Observation observation = (Observation) super.testFileLoader.loadResource(resourcePath);
SofaScoreCompositionConverter converter = new SofaScoreCompositionConverter();
SOFAComposition composition = converter.convert(observation);
Diff diff = compareCompositions(getJavers(), paragonPath, composition);
assertEquals(0, diff.getChanges().size());
}
Aggregations