1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-05 02:22:54 +00:00

Issue #29: Backend-Service für ECOG-Status hinzugefügt

This commit is contained in:
2023-07-12 10:11:11 +02:00
parent 21c02ac068
commit a6238c14e3
2 changed files with 36 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class DNPMHelper implements IProcedureAnalyzer {
@Override
public String getVersion() {
return "0.3.0";
return "0.4.0";
}
@Override
@ -249,4 +249,21 @@ public class DNPMHelper implements IProcedureAnalyzer {
}
}
// TODO Achtung, keine Sicherheitsprüfung, darüber kann für jeden Patienten die Liste mit ECOG-Status abgerufen werden!
public List<SystemtherapieService.EcogStatusWithDate> getEcogStatus(final Map<String, Object> input) {
var pid = AnalyzerUtils.getRequiredId(input, "PatientId");
if (pid.isEmpty()) {
logger.error("Kein Parameter 'PatientId' angegeben, gebe leere Liste zurück");
return List.of();
}
var patient = onkostarApi.getPatient(pid.get());
if (null == patient) {
logger.error("Patient nicht gefunden, gebe leere Liste zurück");
return List.of();
}
return systemtherapieService.ecogSatus(patient);
}
}