Skip to content

Commit

Permalink
Spotless apply catch
Browse files Browse the repository at this point in the history
  • Loading branch information
saquino0827 committed Feb 9, 2024
1 parent c370427 commit 0585e47
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package gov.hhs.cdc.trustedintermediary.external.hapi;

import gov.hhs.cdc.trustedintermediary.wrappers.Logger;
import javax.inject.Inject;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.MessageHeader;
import org.hl7.fhir.r4.model.Meta;

import gov.hhs.cdc.trustedintermediary.wrappers.Logger;

import javax.inject.Inject;

public class HapiMessageConverterHelper {

private static final HapiMessageConverterHelper INSTANCE = new HapiMessageConverterHelper();
Expand All @@ -35,7 +33,8 @@ public void addEtorTagToBundle(Bundle messageBundle) {
}

public MessageHeader findOrInitializeMessageHeader(Bundle bundle) {
var messageHeader = HapiHelper.resourcesInBundle(bundle, MessageHeader.class).findFirst().orElse(null);
var messageHeader =
HapiHelper.resourcesInBundle(bundle, MessageHeader.class).findFirst().orElse(null);
if (messageHeader == null) {
messageHeader = new MessageHeader();
bundle.addEntry(new Bundle.BundleEntryComponent().setResource(messageHeader));
Expand Down

0 comments on commit 0585e47

Please sign in to comment.