summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2023-09-25 13:53:09 +0200
committerPaul-Christian Volkmer2023-09-25 13:53:09 +0200
commit4949bfcc64fe7323458884121f10d2fdf95b1a73 (patch)
tree7a4ed0455f9223f6db1ab522d165ddb0db40fb0b /src/main/java
parent8c35642283a2bc27f66dea62db452f8f3b67ece4 (diff)
Fix typo in method name
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/DNPM/analyzer/DNPMHelper.java2
-rw-r--r--src/main/java/DNPM/analyzer/SystemtherapieAnalyzer.java2
-rw-r--r--src/main/java/DNPM/services/systemtherapie/DefaultSystemtherapieService.java4
-rw-r--r--src/main/java/DNPM/services/systemtherapie/SystemtherapieService.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/DNPM/analyzer/DNPMHelper.java b/src/main/java/DNPM/analyzer/DNPMHelper.java
index 9bfa04a..c6d3d47 100644
--- a/src/main/java/DNPM/analyzer/DNPMHelper.java
+++ b/src/main/java/DNPM/analyzer/DNPMHelper.java
@@ -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");
diff --git a/src/main/java/DNPM/analyzer/SystemtherapieAnalyzer.java b/src/main/java/DNPM/analyzer/SystemtherapieAnalyzer.java
index af7fb9d..f886f3d 100644
--- a/src/main/java/DNPM/analyzer/SystemtherapieAnalyzer.java
+++ b/src/main/java/DNPM/analyzer/SystemtherapieAnalyzer.java
@@ -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());
diff --git a/src/main/java/DNPM/services/systemtherapie/DefaultSystemtherapieService.java b/src/main/java/DNPM/services/systemtherapie/DefaultSystemtherapieService.java
index 377e3d9..58b2b78 100644
--- a/src/main/java/DNPM/services/systemtherapie/DefaultSystemtherapieService.java
+++ b/src/main/java/DNPM/services/systemtherapie/DefaultSystemtherapieService.java
@@ -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)
diff --git a/src/main/java/DNPM/services/systemtherapie/SystemtherapieService.java b/src/main/java/DNPM/services/systemtherapie/SystemtherapieService.java
index a664c05..ea26c0c 100644
--- a/src/main/java/DNPM/services/systemtherapie/SystemtherapieService.java
+++ b/src/main/java/DNPM/services/systemtherapie/SystemtherapieService.java
@@ -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