Skip to content

Commit

Permalink
Merge pull request #102 from mozzy11/master
Browse files Browse the repository at this point in the history
since param should be updated every when theres a response
  • Loading branch information
mozzy11 authored Dec 10, 2024
2 parents b13b331 + 8aa4561 commit b2c04d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public boolean getNewMessages(Location currentLocation) {
response = getResponseHttpClient(request);
HL7Service hl7Service = Context.getHL7Service();
if (response != null) {
success = true;
for (NotificationMessageHolderType notification : response.getNotificationMessage()) {
Element el = (Element) notification.getMessage().getAny();
String decodedMessage = new String(Base64.decodeBase64(el.getTextContent().getBytes()));
Expand All @@ -123,7 +124,6 @@ public boolean getNewMessages(Location currentLocation) {
hl7InQueue.setHL7Source(hl7Service.getHL7Source(1));
hl7InQueue.setHL7SourceKey(currentLocation.getName());
hl7Service.saveHL7InQueue(hl7InQueue);
success = true;
}
}
}
Expand Down

0 comments on commit b2c04d0

Please sign in to comment.