mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-05 02:22:54 +00:00
Fix typo in method name
This commit is contained in:
@ -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");
|
||||
|
@ -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());
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user