1
0
mirror of https://github.com/pcvolkmer/onkostar-plugin-dnpm.git synced 2025-07-03 17:52:53 +00:00

Zusätzliche Prüfung auf Formularname vor Consentübernahme hinzugefügt

Diese zusätzliche Prüfung ermöglicht die Erkennung, ob der aktuell ausgewählte
ConsentManagerService die entsprechende Prozedur bearbeiten und Consent-Daten
in das Formular "DNPM-Klinik/Anamnese" übernehmen kann.

Die Standardimplementierung prüft dabei nur, ob die Prozedur nicht `null` ist.
This commit is contained in:
2023-04-04 16:04:54 +02:00
parent c4d9abdf0c
commit 541d2e3a03
5 changed files with 42 additions and 2 deletions

View File

@ -23,6 +23,11 @@ public class UkwConsentManagerService implements ConsentManagerService {
this.onkostarApi = onkostarApi;
}
@Override
public boolean canApply(Procedure procedure) {
return null != procedure && procedure.getFormName().equals("Excel-Formular");
}
/**
* Wende Consent an, wenn dieses Consent-Formular gespeichert wird
*