Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[26544] dialog on mail change of activated mediorder patient #695

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PatrickDenzler
Copy link
Collaborator

No description provided.

@@ -161,6 +167,21 @@ public String getText(Object element) {

setUnlocked(LocalLockServiceHolder.get().isLocked(pat));

textEmail.addVerifyListener(new VerifyListener() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das müsstest du als Lambda implementieren können, da VerifyListener ein FunctionalInterface ist. Das reduziert den ganzen Boilerplate Code hier ...

@@ -424,14 +437,20 @@ private void addListener(Kontakt kontakt) {
try {
boolean mandatorEditGuard = kontakt.istMandant();

List<ISticker> lSticker = StickerServiceHolder.get().getStickers(kontakt.toIContact().asIPatient());
boolean hasSticker = lSticker.stream().anyMatch(sticker -> sticker.getId().equals("activate_mediorder"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wir haben jetzt schon an ein paar Stellen den literal String activate_mediorder - wir kopieren den immer, das gefällt mir nicht. Hast du einen Vorschlag wie und wo wir den als Konstante in einer Klasse ablegen können?
Dann kannst du das dort dokumentieren, und es ist auch leicht referenzen darauf zu finden?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich würde eine Constants Klasse in ch.elexis.core.ui.mediorder vorschlagen.

@col-panic col-panic self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants