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

Fix typo in method name

This commit is contained in:
2023-09-25 13:53:09 +02:00
parent 8c35642283
commit 4949bfcc64
7 changed files with 10 additions and 10 deletions

View File

@ -252,7 +252,7 @@ public class DNPMHelper extends BackendService {
}
if (personPoolBasedPermissionEvaluator.hasPermission(SecurityContextHolder.getContext().getAuthentication(), patient, PermissionType.READ)) {
return systemtherapieService.ecogSatus(patient);
return systemtherapieService.ecogStatus(patient);
}
throw new IllegalSecuredObjectAccessException("Kein Zugriff auf diesen Patienten");

View File

@ -89,7 +89,7 @@ public class SystemtherapieAnalyzer extends Analyzer {
return;
}
var ecogFromCompleted = systemtherapieService.ecogSatus(procedure.getPatient())
var ecogFromCompleted = systemtherapieService.ecogStatus(procedure.getPatient())
.stream()
.filter(ecogStatusWithDate -> ecogStatusWithDate.getDate().after(disease.getDiagnosisDate()))
.collect(Collectors.toList());

View File

@ -62,7 +62,7 @@ public class DefaultSystemtherapieService implements SystemtherapieService {
*/
@Override
public Optional<String> latestEcogStatus(Patient patient) {
return ecogSatus(patient).stream()
return ecogStatus(patient).stream()
.max(Comparator.comparing(EcogStatusWithDate::getDate))
.map(EcogStatusWithDate::getStatus);
}
@ -74,7 +74,7 @@ public class DefaultSystemtherapieService implements SystemtherapieService {
* @return Eine Liste mit Datum und ECOG-Status als String
*/
@Override
public List<EcogStatusWithDate> ecogSatus(Patient patient) {
public List<EcogStatusWithDate> ecogStatus(Patient patient) {
return patient.getDiseases().stream()
.flatMap(disease -> onkostarApi.getProceduresForDiseaseByForm(disease.getId(), getFormName()).stream())
.filter(procedure -> procedure.getEditState() == ProcedureEditStateType.COMPLETED)

View File

@ -41,7 +41,7 @@ public interface SystemtherapieService {
* @param patient Der zu verwendende Patient
* @return Eine Liste mit Datum und ECOG-Status als String
*/
List<EcogStatusWithDate> ecogSatus(Patient patient);
List<EcogStatusWithDate> ecogStatus(Patient patient);
/**
* Datenklasse zum Abbilden des ECOG-Status und Datum