mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-03 17:52:53 +00:00
Issue #11: Verwende Überschrift für Fragestellung und Empfehlung
This commit is contained in:
@ -21,7 +21,7 @@ public class OsTumorkonferenzToProtocolMapper implements ProcedureToProtocolMapp
|
||||
null != fragestellung && !fragestellung.getString().isBlank()
|
||||
&& null != empfehlung && !empfehlung.getString().isBlank()
|
||||
) {
|
||||
return Optional.of(String.format("%s\n%s", fragestellung.getString(), empfehlung.getString()));
|
||||
return Optional.of(String.format("Fragestellung:\n%s\n\nEmpfehlung:\n%s", fragestellung.getString(), empfehlung.getString()));
|
||||
} else if (null != fragestellung && !fragestellung.getString().isBlank()) {
|
||||
return Optional.of(fragestellung.getString());
|
||||
} else if (null != empfehlung && !empfehlung.getString().isBlank()) {
|
||||
|
@ -24,14 +24,14 @@ public class OsTumorkonferenzVarianteUkwToProtocolMapper implements ProcedureToP
|
||||
null != fragestellung && !fragestellung.getString().isBlank()
|
||||
&& null != empfehlung && !empfehlung.getString().isBlank()
|
||||
) {
|
||||
return String.format("%s\n%s", fragestellung.getString(), empfehlung.getString());
|
||||
return String.format("Fragestellung:\n%s\n\nEmpfehlung:\n%s", fragestellung.getString().trim(), empfehlung.getString().trim());
|
||||
} else if (null != fragestellung && !fragestellung.getString().isBlank()) {
|
||||
return fragestellung.getString();
|
||||
return fragestellung.getString().trim();
|
||||
} else if (null != empfehlung && !empfehlung.getString().isBlank()) {
|
||||
return empfehlung.getString();
|
||||
return empfehlung.getString().trim();
|
||||
}
|
||||
return "";
|
||||
}).collect(Collectors.joining("\n"));
|
||||
}).collect(Collectors.joining("\n\n"));
|
||||
|
||||
if (!result.isBlank()) {
|
||||
return Optional.of(result);
|
||||
|
Reference in New Issue
Block a user