1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-03 17:52:53 +00:00

Issue #54: Add common EcogService interface

This commit is contained in:
2023-10-10 12:21:27 +02:00
parent f0f09d43a3
commit 14e9fcab1a
9 changed files with 112 additions and 125 deletions

View File

@ -1,5 +1,6 @@
package DNPM.analyzer;
import DNPM.dto.EcogStatusWithDate;
import DNPM.services.systemtherapie.SystemtherapieService;
import de.itc.onkostar.api.*;
import org.junit.jupiter.api.BeforeEach;
@ -54,7 +55,7 @@ class SystemtherapieAnalyzerTest {
final var ecogDate = daysPassed(1);
final var procedureDate = daysPassed(1);
doAnswer(invocationOnMock -> List.of(new SystemtherapieService.EcogStatusWithDate(ecogDate, "0")))
doAnswer(invocationOnMock -> List.of(new EcogStatusWithDate(ecogDate, "0")))
.when(systemtherapieService).ecogStatus(any(Patient.class));
var patient = new Patient(onkostarApi);
@ -114,7 +115,7 @@ class SystemtherapieAnalyzerTest {
final var ecogDate = daysPassed(28);
final var procedureDate = daysPassed(1);
doAnswer(invocationOnMock -> List.of(new SystemtherapieService.EcogStatusWithDate(ecogDate, "0")))
doAnswer(invocationOnMock -> List.of(new EcogStatusWithDate(ecogDate, "0")))
.when(systemtherapieService).ecogStatus(any(Patient.class));
var patient = new Patient(onkostarApi);