1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-03 09:42:54 +00:00

Standardmethode zum Ermitteln und Anwenden des Protokollmappers hinzugefügt

This commit is contained in:
2023-04-24 12:22:00 +02:00
parent 2ea45f3e44
commit 4b8d62f7e2
2 changed files with 19 additions and 5 deletions

View File

@ -3,6 +3,7 @@ package DNPM.services.mtb;
import de.itc.onkostar.api.Procedure;
import java.util.List;
import java.util.Optional;
public interface MtbService {
/**
@ -18,4 +19,13 @@ public interface MtbService {
* @return Mapper für diese Prozedur
*/
ProcedureToProtocolMapper procedureToProtocolMapper(Procedure procedure);
/**
* Select mapper using method {@link #procedureToProtocolMapper(Procedure)} and apply procedure
* @param procedure The Procedure to select mapper for and apply
* @return {@link Optional} with protocol or empty {@link Optional}
*/
default Optional<String> selectAndApplyMapper(Procedure procedure) {
return this.procedureToProtocolMapper(procedure).apply(procedure);
}
}