Skip to content

Commit

Permalink
[26187] fix mandant access of medics lab order hl7 action
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Feb 21, 2024
1 parent e6faab8 commit 9b7bd13
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;

import ch.elexis.core.data.activator.CoreHub;
import ch.elexis.core.data.events.ElexisEventDispatcher;
import ch.elexis.core.model.ch.BillingLaw;
import ch.elexis.core.model.util.ElexisIdGenerator;
import ch.elexis.core.services.holder.ContextServiceHolder;
import ch.elexis.core.ui.Hub;
import ch.elexis.core.ui.util.SWTHelper;
import ch.elexis.data.Anwender;
import ch.elexis.data.Fall;
import ch.elexis.data.Kontakt;
import ch.elexis.data.Patient;
Expand Down Expand Up @@ -263,8 +264,8 @@ private String writeHL7File(final Patient patient, final Kontakt rechnungsempfae
String uniqueProcessingID = ElexisIdGenerator.generateId();

HL7Mandant mandant = new HL7Mandant();
mandant.setLabel(ContextServiceHolder.getActiveMandatorOrThrow().getLabel());
mandant.setEan(ContextServiceHolder.getActiveMandatorOrThrow().getXid(DOMAIN_EAN).getDomainId());
mandant.setLabel(CoreHub.actMandant.get(Anwender.FLD_LABEL));
mandant.setEan(CoreHub.actMandant.getXid(DOMAIN_EAN));

HL7_OML_O21 omlO21 = new HL7_OML_O21("CHELEXIS", "PATDATA", Messages.LabOrderAction_receivingApplication,
StringUtils.EMPTY, Messages.LabOrderAction_receivingFacility, uniqueMessageControlID,
Expand Down

0 comments on commit 9b7bd13

Please sign in to comment.