From 876e691ca4a7a96dd7bc2ee2c087ef1dbabd7c87 Mon Sep 17 00:00:00 2001 From: MahiFentaye <168698136+MahiFentaye@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:19:46 -0500 Subject: [PATCH] BFD-3665 fixing unit tests BFD-3665 fixing unit tests --- .../providers/CarrierClaimTransformerV2.java | 5 ++- .../r4/providers/DMEClaimTransformerV2.java | 5 ++- .../r4/providers/HHAClaimTransformerV2.java | 7 ++- .../providers/HospiceClaimTransformerV2.java | 7 ++- .../InpatientClaimTransformerV2.java | 7 ++- .../OutpatientClaimTransformerV2.java | 5 ++- .../r4/providers/SNFClaimTransformerV2.java | 7 ++- .../providers/pac/FissClaimTransformerV2.java | 5 ++- .../providers/pac/McsClaimTransformerV2.java | 5 ++- .../CarrierClaimTransformerV2Test.java | 8 +++- .../providers/DMEClaimTransformerV2Test.java | 7 ++- .../providers/HHAClaimTransformerV2Test.java | 7 ++- .../HospiceClaimTransformerV2Test.java | 7 ++- .../InpatientClaimTransformerV2Test.java | 7 ++- .../OutpatientClaimTransformerV2Test.java | 9 +++- ...PatientClaimsEobTaskTransformerV2Test.java | 43 ++++++++++++++----- .../providers/SNFClaimTransformerV2Test.java | 7 ++- ...saMatcherR4FromClaimTransformerV2Test.java | 20 ++++++--- .../r4/providers/TransformerTestUtilsV2.java | 26 +++++++---- .../r4/providers/TransformerUtilsV2Test.java | 23 +++++++--- .../pac/FissClaimTransformerV2Test.java | 5 ++- .../pac/McsClaimTransformerV2Test.java | 6 ++- .../R4ClaimSamhsaMatcherTransformerTest.java | 17 ++++++-- .../endpoint-responses/v2/claimFissRead.json | 7 ++- .../v2/claimFissReadWithTaxNumbers.json | 7 ++- .../endpoint-responses/v2/claimMcsRead.json | 7 ++- .../v2/claimMcsReadWithTaxNumbers.json | 7 ++- .../v2/claimResponseFissRead.json | 7 ++- .../v2/claimResponseMcsRead.json | 7 ++- .../v2/claimResponseSearch.json | 14 +++++- .../v2/claimResponseSearchPaginated.json | 7 ++- .../endpoint-responses/v2/claimSearch.json | 14 +++++- .../v2/claimSearchPaginated.json | 7 ++- .../v2/claimSearchWithTaxNumbers.json | 14 +++++- 34 files changed, 277 insertions(+), 66 deletions(-) diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2.java index 592c866c4f..d7f8724906 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2.java @@ -64,14 +64,17 @@ final class CarrierClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * @param metricRegistry the metric registry * @param drugCodeDisplayLookup the drug code display lookup * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ public CarrierClaimTransformerV2( MetricRegistry metricRegistry, FdaDrugCodeDisplayLookup drugCodeDisplayLookup, - NPIOrgLookup npiOrgLookup) { + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); this.drugCodeDisplayLookup = requireNonNull(drugCodeDisplayLookup); + this.lookUpSamhsaSecurityTags = requireNonNull(lookUpSamhsaSecurityTags); } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2.java index fd05e60ab3..5e92059a8d 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2.java @@ -62,14 +62,17 @@ final class DMEClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * @param metricRegistry the metric registry * @param drugCodeDisplayLookup the drug code display lookup * @param npiOrgLookup the npi display lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ DMEClaimTransformerV2( MetricRegistry metricRegistry, FdaDrugCodeDisplayLookup drugCodeDisplayLookup, - NPIOrgLookup npiOrgLookup) { + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.drugCodeDisplayLookup = requireNonNull(drugCodeDisplayLookup); this.npiOrgLookup = npiOrgLookup; + this.lookUpSamhsaSecurityTags = lookUpSamhsaSecurityTags; } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2.java index 8a725cfe82..ddcaf67a21 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2.java @@ -54,10 +54,15 @@ final class HHAClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * * @param metricRegistry the metric registry * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ - public HHAClaimTransformerV2(MetricRegistry metricRegistry, NPIOrgLookup npiOrgLookup) { + public HHAClaimTransformerV2( + MetricRegistry metricRegistry, + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); + this.lookUpSamhsaSecurityTags = requireNonNull(lookUpSamhsaSecurityTags); } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2.java index 810e3efee2..2f888fd125 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2.java @@ -56,10 +56,15 @@ final class HospiceClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * * @param metricRegistry the metric registry * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ - public HospiceClaimTransformerV2(MetricRegistry metricRegistry, NPIOrgLookup npiOrgLookup) { + public HospiceClaimTransformerV2( + MetricRegistry metricRegistry, + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); + this.lookUpSamhsaSecurityTags = requireNonNull(lookUpSamhsaSecurityTags); } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2.java index 89e9924a15..cbd8a42ae5 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2.java @@ -58,10 +58,15 @@ final class InpatientClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * * @param metricRegistry the metric registry * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTag lookup */ - public InpatientClaimTransformerV2(MetricRegistry metricRegistry, NPIOrgLookup npiOrgLookup) { + public InpatientClaimTransformerV2( + MetricRegistry metricRegistry, + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); + this.lookUpSamhsaSecurityTags = lookUpSamhsaSecurityTags; } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2.java index b4ef39cb04..90527591ff 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2.java @@ -63,14 +63,17 @@ final class OutpatientClaimTransformerV2 implements ClaimTransformerInterfaceV2 * @param metricRegistry the metric registry * @param drugCodeDisplayLookup the drug code display lookup * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ public OutpatientClaimTransformerV2( MetricRegistry metricRegistry, FdaDrugCodeDisplayLookup drugCodeDisplayLookup, - NPIOrgLookup npiOrgLookup) { + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); this.drugCodeDisplayLookup = requireNonNull(drugCodeDisplayLookup); + this.lookUpSamhsaSecurityTags = requireNonNull(lookUpSamhsaSecurityTags); } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2.java index 760f541e8c..123ea2c981 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2.java @@ -57,10 +57,15 @@ public class SNFClaimTransformerV2 implements ClaimTransformerInterfaceV2 { * * @param metricRegistry the metric registry * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ - public SNFClaimTransformerV2(MetricRegistry metricRegistry, NPIOrgLookup npiOrgLookup) { + public SNFClaimTransformerV2( + MetricRegistry metricRegistry, + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); this.npiOrgLookup = requireNonNull(npiOrgLookup); + this.lookUpSamhsaSecurityTags = requireNonNull(lookUpSamhsaSecurityTags); } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2.java index 6cd802b629..1158b812aa 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2.java @@ -80,9 +80,12 @@ public class FissClaimTransformerV2 extends AbstractTransformerV2 * called by tests. * * @param metricRegistry the metric registry + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ - public FissClaimTransformerV2(MetricRegistry metricRegistry) { + public FissClaimTransformerV2( + MetricRegistry metricRegistry, LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = requireNonNull(metricRegistry); + this.lookUpSamhsaSecurityTags = lookUpSamhsaSecurityTags; } /** diff --git a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2.java b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2.java index 4e6473e474..a5a7572374 100644 --- a/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2.java +++ b/apps/bfd-server/bfd-server-war/src/main/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2.java @@ -78,9 +78,12 @@ public class McsClaimTransformerV2 extends AbstractTransformerV2 * called by tests. * * @param metricRegistry the metric registry + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup */ - public McsClaimTransformerV2(MetricRegistry metricRegistry) { + public McsClaimTransformerV2( + MetricRegistry metricRegistry, LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { this.metricRegistry = metricRegistry; + this.lookUpSamhsaSecurityTags = lookUpSamhsaSecurityTags; } /** diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2Test.java index 9a7bb7475b..fad8ccf0ce 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/CarrierClaimTransformerV2Test.java @@ -5,6 +5,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @@ -23,6 +24,7 @@ import gov.cms.bfd.server.war.ServerTestUtils; import gov.cms.bfd.server.war.commons.CCWUtils; import gov.cms.bfd.server.war.commons.ClaimType; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.MedicareSegment; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.commons.carin.C4BBClaimProfessionalAndNonClinicianCareTeamRole; @@ -127,10 +129,14 @@ public void before() throws IOException { when(metricsTimer.time()).thenReturn(metricsTimerContext); npiOrgLookup = RDATestUtils.mockNPIOrgLookup(); FdaDrugCodeDisplayLookup drugCodeDisplayLookup = RDATestUtils.fdaFakeDrugCodeDisplayLookup(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); carrierClaimTransformer = new CarrierClaimTransformerV2( - metricRegistry, drugCodeDisplayLookup, NPIOrgLookup.createNpiOrgLookup()); + metricRegistry, + drugCodeDisplayLookup, + NPIOrgLookup.createNpiOrgLookup(), + lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = carrierClaimTransformer.transform(claim, false); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2Test.java index 67b95bcaa1..f1220beecb 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/DMEClaimTransformerV2Test.java @@ -21,6 +21,7 @@ import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; import gov.cms.bfd.server.war.commons.CCWUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; @@ -88,6 +89,9 @@ public final class DMEClaimTransformerV2Test { /** The NPI Org lookup. */ @Mock NPIOrgLookup mockNpiOrgLookup; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** * Generates the Claim object to be used in multiple tests. * @@ -121,7 +125,8 @@ public void before() throws IOException { when(mockNpiOrgLookup.retrieveNPIOrgDisplay(any())) .thenReturn(Optional.of("207X00000X\tOrthopaedic Surgery")); dmeClaimTransformer = - new DMEClaimTransformerV2(metricRegistry, fdaDrugCodeDisplayLookup, mockNpiOrgLookup); + new DMEClaimTransformerV2( + metricRegistry, fdaDrugCodeDisplayLookup, mockNpiOrgLookup, lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = dmeClaimTransformer.transform(claim, false); IParser parser = fhirContext.newJsonParser(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2Test.java index 1f434962f6..fe632a38de 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HHAClaimTransformerV2Test.java @@ -20,6 +20,7 @@ import gov.cms.bfd.model.rif.entities.HHAClaim; import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; @@ -86,6 +87,9 @@ public class HHAClaimTransformerV2Test { /** The metrics registry. */ @Mock MetricRegistry metricRegistry; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The metrics timer. Used for determining the timer was started. */ @Mock Timer metricsTimer; @@ -127,7 +131,8 @@ public void before() throws IOException { npiOrgLookup = RDATestUtils.mockNPIOrgLookup(); hhaClaimTransformer = - new HHAClaimTransformerV2(metricRegistry, NPIOrgLookup.createNpiOrgLookup()); + new HHAClaimTransformerV2( + metricRegistry, NPIOrgLookup.createNpiOrgLookup(), lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = hhaClaimTransformer.transform(claim, false); IParser parser = fhirContext.newJsonParser(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2Test.java index 95f8dc3df2..aa669a3e35 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/HospiceClaimTransformerV2Test.java @@ -22,6 +22,7 @@ import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; import gov.cms.bfd.server.war.commons.ClaimType; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.MedicareSegment; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; @@ -86,6 +87,9 @@ public final class HospiceClaimTransformerV2Test { /** The metrics registry. */ @Mock MetricRegistry metricRegistry; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The metrics timer. Used for determining the timer was started. */ @Mock Timer metricsTimer; @@ -107,7 +111,8 @@ public void generateClaim() throws FHIRException, IOException { npiOrgLookup = RDATestUtils.mockNPIOrgLookup(); hospiceClaimTransformer = - new HospiceClaimTransformerV2(metricRegistry, NPIOrgLookup.createNpiOrgLookup()); + new HospiceClaimTransformerV2( + metricRegistry, NPIOrgLookup.createNpiOrgLookup(), lookUpSamhsaSecurityTags); List parsedRecords = ServerTestUtils.parseData(Arrays.asList(StaticRifResourceGroup.SAMPLE_A.getResources())); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2Test.java index 5e4084658a..93e1ab076c 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/InpatientClaimTransformerV2Test.java @@ -18,6 +18,7 @@ import gov.cms.bfd.model.rif.entities.InpatientClaim; import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; @@ -83,6 +84,9 @@ public final class InpatientClaimTransformerV2Test { /** The metrics registry. */ @Mock MetricRegistry metricRegistry; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The metrics timer. Used for determining the timer was started. */ @Mock Timer metricsTimer; @@ -126,7 +130,8 @@ public void before() throws IOException { npiOrgLookup = RDATestUtils.mockNPIOrgLookup(); inpatientClaimTransformer = - new InpatientClaimTransformerV2(metricRegistry, NPIOrgLookup.createNpiOrgLookup()); + new InpatientClaimTransformerV2( + metricRegistry, NPIOrgLookup.createNpiOrgLookup(), lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = inpatientClaimTransformer.transform(claim, false); IParser parser = fhirContext.newJsonParser(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2Test.java index 982c34df03..b889a8a884 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/OutpatientClaimTransformerV2Test.java @@ -20,6 +20,7 @@ import gov.cms.bfd.model.rif.entities.OutpatientClaim; import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; @@ -83,6 +84,9 @@ public final class OutpatientClaimTransformerV2Test { /** The metrics timer. Used for determining the timer was started. */ @Mock Timer metricsTimer; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The metrics timer context. Used for determining the timer was stopped. */ @Mock Timer.Context metricsTimerContext; @@ -124,7 +128,10 @@ public void before() throws IOException { outpatientClaimTransformer = new OutpatientClaimTransformerV2( - metricRegistry, drugCodeDisplayLookup, NPIOrgLookup.createNpiOrgLookup()); + metricRegistry, + drugCodeDisplayLookup, + NPIOrgLookup.createNpiOrgLookup(), + lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = outpatientClaimTransformer.transform(claim, false); IParser parser = fhirContext.newJsonParser(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/PatientClaimsEobTaskTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/PatientClaimsEobTaskTransformerV2Test.java index aac96fe8e3..0e012e9e99 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/PatientClaimsEobTaskTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/PatientClaimsEobTaskTransformerV2Test.java @@ -30,6 +30,7 @@ import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; import gov.cms.bfd.server.war.commons.ClaimType; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.sharedutils.exceptions.BadCodeMonkeyException; import jakarta.persistence.EntityManager; @@ -77,6 +78,9 @@ class PatientClaimsEobTaskTransformerV2Test { /** The NPI Org lookup. */ @Mock NPIOrgLookup mockNpiOrgLookup; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The FDA drug display lookup. */ @Mock FdaDrugCodeDisplayLookup mockDrugDisplayLookup; @@ -209,7 +213,10 @@ void testTaskTransformerUsingCarrierClaimNoSamhsaFilter() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = new CarrierClaimTransformerV2( - new MetricRegistry(), mockDrugDisplayLookup, mockNpiOrgLookup); + new MetricRegistry(), + mockDrugDisplayLookup, + mockNpiOrgLookup, + lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -243,7 +250,10 @@ void testTaskTransformerUsingCarrierClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = new CarrierClaimTransformerV2( - new MetricRegistry(), mockDrugDisplayLookup, mockNpiOrgLookup); + new MetricRegistry(), + mockDrugDisplayLookup, + mockNpiOrgLookup, + lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -276,7 +286,11 @@ void testTaskTransformerUsingDmeClaimNoSamhsaFilter() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new DMEClaimTransformerV2(new MetricRegistry(), mockDrugDisplayLookup, mockNpiOrgLookup); + new DMEClaimTransformerV2( + new MetricRegistry(), + mockDrugDisplayLookup, + mockNpiOrgLookup, + lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -309,7 +323,11 @@ void testTaskTransformerUsingDmeClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new DMEClaimTransformerV2(new MetricRegistry(), mockDrugDisplayLookup, mockNpiOrgLookup); + new DMEClaimTransformerV2( + new MetricRegistry(), + mockDrugDisplayLookup, + mockNpiOrgLookup, + lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -342,7 +360,7 @@ void testTaskTransformerUsingHhaClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new HHAClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup); + new HHAClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup, lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -376,7 +394,8 @@ void testTaskTransformerUsingHospiceClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new HospiceClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup); + new HospiceClaimTransformerV2( + new MetricRegistry(), mockNpiOrgLookup, lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -410,7 +429,8 @@ void testTaskTransformerUsingInpatientClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new InpatientClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup); + new InpatientClaimTransformerV2( + new MetricRegistry(), mockNpiOrgLookup, lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -445,7 +465,10 @@ void testTaskTransformerUsingOutpatientClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = new OutpatientClaimTransformerV2( - new MetricRegistry(), mockDrugDisplayLookup, mockNpiOrgLookup); + new MetricRegistry(), + mockDrugDisplayLookup, + mockNpiOrgLookup, + lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -513,7 +536,7 @@ void testTaskTransformerUsingSnfClaimWithSamhsa() { // Ignore metrics registry calls on the claim transformer; its not under test here ClaimTransformerInterfaceV2 claimTransformer = - new SNFClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup); + new SNFClaimTransformerV2(new MetricRegistry(), mockNpiOrgLookup, lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); @@ -549,7 +572,7 @@ void testGetFailureFromTaskTransformer() { setupClaimEntity(mockEntityManager, ClaimType.DME, clmMockCriteria, clmRoot); ClaimTransformerInterfaceV2 claimTransformer = - new SNFClaimTransformerV2(metricRegistry, mockNpiOrgLookup); + new SNFClaimTransformerV2(metricRegistry, mockNpiOrgLookup, lookUpSamhsaSecurityTags); PatientClaimsEobTaskTransformerV2 taskTransformer = new PatientClaimsEobTaskTransformerV2( metricRegistry, mockSamhsaMatcher, mockDrugDisplayLookup, mockNpiOrgLookup); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2Test.java index 956e9792eb..073dd7f7cf 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SNFClaimTransformerV2Test.java @@ -19,6 +19,7 @@ import gov.cms.bfd.model.rif.entities.SNFClaim; import gov.cms.bfd.model.rif.samples.StaticRifResourceGroup; import gov.cms.bfd.server.war.ServerTestUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.ProfileConstants; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; @@ -83,6 +84,9 @@ public class SNFClaimTransformerV2Test { /** The metrics registry. */ @Mock MetricRegistry metricRegistry; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** The metrics timer. Used for determining the timer was started. */ @Mock Timer metricsTimer; @@ -126,7 +130,8 @@ public void before() throws IOException { npiOrgLookup = RDATestUtils.mockNPIOrgLookup(); snfClaimTransformer = - new SNFClaimTransformerV2(metricRegistry, NPIOrgLookup.createNpiOrgLookup()); + new SNFClaimTransformerV2( + metricRegistry, NPIOrgLookup.createNpiOrgLookup(), lookUpSamhsaSecurityTags); claim = generateClaim(); ExplanationOfBenefit genEob = snfClaimTransformer.transform(claim, false); IParser parser = fhirContext.newJsonParser(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SamhsaMatcherR4FromClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SamhsaMatcherR4FromClaimTransformerV2Test.java index 4985f5af95..be53c168c6 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SamhsaMatcherR4FromClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/SamhsaMatcherR4FromClaimTransformerV2Test.java @@ -2,6 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.params.provider.Arguments.arguments; +import static org.mockito.Mockito.mock; import com.codahale.metrics.MetricRegistry; import gov.cms.bfd.data.fda.lookup.FdaDrugCodeDisplayLookup; @@ -21,6 +22,7 @@ import gov.cms.bfd.server.war.ServerTestUtils; import gov.cms.bfd.server.war.commons.CCWUtils; import gov.cms.bfd.server.war.commons.IcdCode; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.utils.RDATestUtils; import java.io.IOException; @@ -130,20 +132,24 @@ public static Stream data() throws IOException { FdaDrugCodeDisplayLookup fdaDrugCodeDisplayLookup = new FdaDrugCodeDisplayLookup(npiDataStream); NPIOrgLookup npiOrgLookup = NPIOrgLookup.createNpiOrgLookup(); MetricRegistry metricRegistry = new MetricRegistry(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); DMEClaimTransformerV2 dmeClaimTransformerV2 = - new DMEClaimTransformerV2(metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup); + new DMEClaimTransformerV2( + metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); CarrierClaimTransformerV2 carrierClaimTransformerV2 = - new CarrierClaimTransformerV2(metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup); + new CarrierClaimTransformerV2( + metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); HHAClaimTransformerV2 hhaClaimTransformerV2 = - new HHAClaimTransformerV2(metricRegistry, npiOrgLookup); + new HHAClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); InpatientClaimTransformerV2 inpatientClaimTransformerV2 = - new InpatientClaimTransformerV2(metricRegistry, npiOrgLookup); + new InpatientClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); OutpatientClaimTransformerV2 outpatientClaimTransformerV2 = - new OutpatientClaimTransformerV2(metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup); + new OutpatientClaimTransformerV2( + metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); PartDEventTransformerV2 partDEventTransformer = new PartDEventTransformerV2(metricRegistry, fdaDrugCodeDisplayLookup, npiOrgLookup); SNFClaimTransformerV2 snfClaimTransformerV2 = - new SNFClaimTransformerV2(metricRegistry, npiOrgLookup); + new SNFClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); ExplanationOfBenefit inpatientEob = inpatientClaimTransformerV2.transform(getClaim(InpatientClaim.class), false); @@ -160,7 +166,7 @@ public static Stream data() throws IOException { String hhaClaimType = TransformerUtilsV2.getClaimType(hhaEob).toString(); HospiceClaimTransformerV2 hospiceClaimTransformerV2 = - new HospiceClaimTransformerV2(new MetricRegistry(), npiOrgLookup); + new HospiceClaimTransformerV2(new MetricRegistry(), npiOrgLookup, lookUpSamhsaSecurityTags); ExplanationOfBenefit hospiceEob = hospiceClaimTransformerV2.transform(getClaim(HospiceClaim.class), false); String hospiceClaimType = TransformerUtilsV2.getClaimType(hospiceEob).toString(); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerTestUtilsV2.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerTestUtilsV2.java index fb11c62bea..242dbd82b0 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerTestUtilsV2.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerTestUtilsV2.java @@ -28,6 +28,7 @@ import gov.cms.bfd.server.war.commons.CCWUtils; import gov.cms.bfd.server.war.commons.ClaimType; import gov.cms.bfd.server.war.commons.CommonTransformerUtils; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.MedicareSegment; import gov.cms.bfd.server.war.commons.TransformerConstants; import gov.cms.bfd.server.war.commons.carin.C4BBClaimProfessionalAndNonClinicianCareTeamRole; @@ -1604,6 +1605,7 @@ static void assertExtensionCodingDoesNotExist( * @param includeTaxNumbers if tax numbers should be included in the response * @param drugCodeDisplayLookup the drug code display lookup * @param npiOrgLookup the npi org lookup + * @param lookUpSamhsaSecurityTags SamhsaSecurityTags lookup * @return the transformed {@link ExplanationOfBenefit} for the specified RIF record */ static ExplanationOfBenefit transformRifRecordToEob( @@ -1611,29 +1613,37 @@ static ExplanationOfBenefit transformRifRecordToEob( MetricRegistry metricRegistry, boolean includeTaxNumbers, FdaDrugCodeDisplayLookup drugCodeDisplayLookup, - NPIOrgLookup npiOrgLookup) { + NPIOrgLookup npiOrgLookup, + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags) { ClaimTransformerInterfaceV2 claimTransformerInterface = null; if (rifRecord instanceof CarrierClaim) { claimTransformerInterface = - new CarrierClaimTransformerV2(metricRegistry, drugCodeDisplayLookup, npiOrgLookup); + new CarrierClaimTransformerV2( + metricRegistry, drugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof DMEClaim) { claimTransformerInterface = - new DMEClaimTransformerV2(metricRegistry, drugCodeDisplayLookup, npiOrgLookup); + new DMEClaimTransformerV2( + metricRegistry, drugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof HHAClaim) { - claimTransformerInterface = new HHAClaimTransformerV2(metricRegistry, npiOrgLookup); + claimTransformerInterface = + new HHAClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof HospiceClaim) { - claimTransformerInterface = new HospiceClaimTransformerV2(metricRegistry, npiOrgLookup); + claimTransformerInterface = + new HospiceClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof InpatientClaim) { - claimTransformerInterface = new InpatientClaimTransformerV2(metricRegistry, npiOrgLookup); + claimTransformerInterface = + new InpatientClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof OutpatientClaim) { claimTransformerInterface = - new OutpatientClaimTransformerV2(metricRegistry, drugCodeDisplayLookup, npiOrgLookup); + new OutpatientClaimTransformerV2( + metricRegistry, drugCodeDisplayLookup, npiOrgLookup, lookUpSamhsaSecurityTags); } else if (rifRecord instanceof PartDEvent) { claimTransformerInterface = new PartDEventTransformerV2(metricRegistry, drugCodeDisplayLookup, npiOrgLookup); } else if (rifRecord instanceof SNFClaim) { - claimTransformerInterface = new SNFClaimTransformerV2(metricRegistry, npiOrgLookup); + claimTransformerInterface = + new SNFClaimTransformerV2(metricRegistry, npiOrgLookup, lookUpSamhsaSecurityTags); } else { throw new BadCodeMonkeyException("Unhandled RifRecord type!"); } diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerUtilsV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerUtilsV2Test.java index 572b5ca3e0..7438031d07 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerUtilsV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/TransformerUtilsV2Test.java @@ -29,6 +29,7 @@ import gov.cms.bfd.server.war.commons.C4BBInstutionalClaimSubtypes; import gov.cms.bfd.server.war.commons.CCWUtils; import gov.cms.bfd.server.war.commons.ClaimType; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import gov.cms.bfd.server.war.commons.OffsetLinkBuilder; import gov.cms.bfd.server.war.commons.Profile; import gov.cms.bfd.server.war.commons.ProfileConstants; @@ -71,6 +72,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; import org.mockito.MockedStatic; import org.mockito.junit.jupiter.MockitoExtension; import org.mockito.junit.jupiter.MockitoSettings; @@ -83,6 +85,9 @@ public class TransformerUtilsV2Test { /** The NPI org lookup to use for the test. */ private MockedStatic npiOrgLookup; + /** The SamhsaSecurityTag lookup. */ + @Mock LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; + /** One-time setup of objects that are normally injected. */ @BeforeEach protected void setup() { @@ -896,6 +901,7 @@ public void addCareTeamExtensionWhenEmptyOptionalExpectNoExtensionAdded() { public void createBundleWithoutPagingWithASizeOf2() throws IOException { NPIOrgLookup npiOrgLookup = NPIOrgLookup.createNpiOrgLookup(); + // LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); RequestDetails requestDetails = mock(RequestDetails.class); Map pagingParams = new HashMap(); pagingParams.put(Constants.PARAM_COUNT, new String[] {"2"}); @@ -918,7 +924,7 @@ public void createBundleWithoutPagingWithASizeOf2() throws IOException { FhirContext fhirContext = FhirContext.forR4(); ClaimTransformerInterfaceV2 claimTransformerInterface = - new HHAClaimTransformerV2(new MetricRegistry(), npiOrgLookup); + new HHAClaimTransformerV2(new MetricRegistry(), npiOrgLookup, lookUpSamhsaSecurityTags); ExplanationOfBenefit genEob = claimTransformerInterface.transform(hhaClaim, false); IParser parser = fhirContext.newJsonParser(); String json = parser.encodeResourceToString(genEob); @@ -933,7 +939,8 @@ public void createBundleWithoutPagingWithASizeOf2() throws IOException { .get(); hospiceClaim.setLastUpdated(Instant.now()); - claimTransformerInterface = new HospiceClaimTransformerV2(new MetricRegistry(), npiOrgLookup); + claimTransformerInterface = + new HospiceClaimTransformerV2(new MetricRegistry(), npiOrgLookup, lookUpSamhsaSecurityTags); genEob = claimTransformerInterface.transform(hospiceClaim, false); parser = fhirContext.newJsonParser(); json = parser.encodeResourceToString(genEob); @@ -952,7 +959,10 @@ public void createBundleWithoutPagingWithASizeOf2() throws IOException { .getResourceAsStream(App.FDA_PRODUCTS_RESOURCE); claimTransformerInterface = new DMEClaimTransformerV2( - new MetricRegistry(), new FdaDrugCodeDisplayLookup(npiDataStream), npiOrgLookup); + new MetricRegistry(), + new FdaDrugCodeDisplayLookup(npiDataStream), + npiOrgLookup, + lookUpSamhsaSecurityTags); genEob = claimTransformerInterface.transform(dmeClaim, false); parser = fhirContext.newJsonParser(); json = parser.encodeResourceToString(genEob); @@ -966,7 +976,9 @@ public void createBundleWithoutPagingWithASizeOf2() throws IOException { .get(); inpatientClaim.setLastUpdated(Instant.now()); - claimTransformerInterface = new InpatientClaimTransformerV2(new MetricRegistry(), npiOrgLookup); + claimTransformerInterface = + new InpatientClaimTransformerV2( + new MetricRegistry(), npiOrgLookup, lookUpSamhsaSecurityTags); genEob = claimTransformerInterface.transform(inpatientClaim, false); parser = fhirContext.newJsonParser(); json = parser.encodeResourceToString(genEob); @@ -1093,7 +1105,8 @@ public void createBundleWithoutPaging() throws IOException { FhirContext fhirContext = FhirContext.forR4(); ClaimTransformerInterfaceV2 claimTransformerInterface = - new HHAClaimTransformerV2(new MetricRegistry(), NPIOrgLookup.createNpiOrgLookup()); + new HHAClaimTransformerV2( + new MetricRegistry(), NPIOrgLookup.createNpiOrgLookup(), lookUpSamhsaSecurityTags); ExplanationOfBenefit genEob = claimTransformerInterface.transform(hhaClaim, false); IParser parser = fhirContext.newJsonParser(); String json = parser.encodeResourceToString(genEob); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2Test.java index c61c0670b2..71c59679f9 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/FissClaimTransformerV2Test.java @@ -3,11 +3,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.params.provider.Arguments.arguments; +import static org.mockito.Mockito.mock; import com.codahale.metrics.MetricRegistry; import gov.cms.bfd.model.rda.entities.RdaFissClaim; import gov.cms.bfd.model.rda.entities.RdaFissDiagnosisCode; import gov.cms.bfd.model.rda.entities.RdaFissRevenueLine; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import java.time.Instant; import java.time.LocalDate; import java.util.ArrayList; @@ -130,6 +132,7 @@ public void diagnosisCodeTest( int numberOfRecords) { RdaFissClaim entity = new RdaFissClaim(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); entity.setLastUpdated(Instant.ofEpochMilli(1)); entity.setStmtCovToDate(LocalDate.of(2020, 1, 1)); @@ -155,7 +158,7 @@ public void diagnosisCodeTest( entity.setRevenueLines(Set.of(line)); FissClaimTransformerV2 fissClaimTransformerV2 = - new FissClaimTransformerV2(new MetricRegistry()); + new FissClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); Claim claim = fissClaimTransformerV2.transform(entity, true); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2Test.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2Test.java index bd9595c4ff..4093abc8e8 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2Test.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/McsClaimTransformerV2Test.java @@ -2,11 +2,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.params.provider.Arguments.arguments; +import static org.mockito.Mockito.mock; import com.codahale.metrics.MetricRegistry; import gov.cms.bfd.model.rda.entities.RdaMcsClaim; import gov.cms.bfd.model.rda.entities.RdaMcsDetail; import gov.cms.bfd.model.rda.entities.RdaMcsDiagnosisCode; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import java.time.Instant; import java.time.LocalDate; import java.util.ArrayList; @@ -100,6 +102,7 @@ public void diagnosisCodeTest( int numberOfRecords) { RdaMcsClaim entity = new RdaMcsClaim(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); entity.setLastUpdated(Instant.ofEpochMilli(1)); @@ -141,7 +144,8 @@ public void diagnosisCodeTest( entity.setDiagCodes(diagnoses); entity.setDetails(new HashSet<>(procedures)); - McsClaimTransformerV2 mcsClaimTransformerV2 = new McsClaimTransformerV2(new MetricRegistry()); + McsClaimTransformerV2 mcsClaimTransformerV2 = + new McsClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); Claim claim = mcsClaimTransformerV2.transform(entity, true); assertEquals(numberOfRecords, claim.getDiagnosis().size()); diff --git a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/R4ClaimSamhsaMatcherTransformerTest.java b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/R4ClaimSamhsaMatcherTransformerTest.java index 93c931dcd5..949a1b886a 100644 --- a/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/R4ClaimSamhsaMatcherTransformerTest.java +++ b/apps/bfd-server/bfd-server-war/src/test/java/gov/cms/bfd/server/war/r4/providers/pac/R4ClaimSamhsaMatcherTransformerTest.java @@ -2,6 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.params.provider.Arguments.arguments; +import static org.mockito.Mockito.mock; import com.codahale.metrics.MetricRegistry; import gov.cms.bfd.model.rda.entities.RdaFissClaim; @@ -11,6 +12,7 @@ import gov.cms.bfd.model.rda.entities.RdaMcsClaim; import gov.cms.bfd.model.rda.entities.RdaMcsDetail; import gov.cms.bfd.model.rda.entities.RdaMcsDiagnosisCode; +import gov.cms.bfd.server.war.commons.LookUpSamhsaSecurityTags; import java.time.Instant; import java.time.LocalDate; import java.util.List; @@ -56,6 +58,9 @@ public class R4ClaimSamhsaMatcherTransformerTest { /** A date to use for ICD10 testing. */ private static final LocalDate ICD_10_DATE = LocalDate.of(2020, 1, 1); + // /** The SamhsaSecurityTag lookup. */ + // @Mock + // LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags; /** * Data method for the fissTest. Used automatically via the MethodSource annotation. * @@ -359,6 +364,7 @@ public void fissTest( boolean expectedResult, String errorMessagePostFix) { RdaFissClaim entity = new RdaFissClaim(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); entity.setLastUpdated(Instant.ofEpochMilli(1)); entity.setStmtCovToDate(toDate); @@ -398,8 +404,9 @@ public void fissTest( entity.setProcCodes(procedures); entity.setRevenueLines(Set.of(line)); FissClaimTransformerV2 fissClaimTransformerV2 = - new FissClaimTransformerV2(new MetricRegistry()); - McsClaimTransformerV2 mcsClaimTransformerV2 = new McsClaimTransformerV2(new MetricRegistry()); + new FissClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); + McsClaimTransformerV2 mcsClaimTransformerV2 = + new McsClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); Claim claim = fissClaimTransformerV2.transform(entity, true); @@ -495,6 +502,7 @@ public void mcsTest( boolean expectedResult, String errorMessagePostFix) { RdaMcsClaim entity = new RdaMcsClaim(); + LookUpSamhsaSecurityTags lookUpSamhsaSecurityTags = mock(LookUpSamhsaSecurityTags.class); entity.setLastUpdated(Instant.ofEpochMilli(1)); @@ -535,8 +543,9 @@ public void mcsTest( entity.setDetails(procedures); FissClaimTransformerV2 fissClaimTransformerV2 = - new FissClaimTransformerV2(new MetricRegistry()); - McsClaimTransformerV2 mcsClaimTransformerV2 = new McsClaimTransformerV2(new MetricRegistry()); + new FissClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); + McsClaimTransformerV2 mcsClaimTransformerV2 = + new McsClaimTransformerV2(new MetricRegistry(), lookUpSamhsaSecurityTags); Claim claim = mcsClaimTransformerV2.transform(entity, true); diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissRead.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissRead.json index 65c0347380..200fb8d0a8 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissRead.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissRead.json @@ -2,7 +2,12 @@ "resourceType": "Claim", "id": "f-123456", "meta": { - "lastUpdated": "1970-08-01T00:00:00.000+00:00" + "lastUpdated": "1970-08-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissReadWithTaxNumbers.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissReadWithTaxNumbers.json index bdb9d72692..74f9484e3a 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissReadWithTaxNumbers.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimFissReadWithTaxNumbers.json @@ -2,7 +2,12 @@ "resourceType": "Claim", "id": "f-123456", "meta": { - "lastUpdated": "1970-08-01T00:00:00.000+00:00" + "lastUpdated": "1970-08-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsRead.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsRead.json index 0088f1dd09..cbfff8e774 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsRead.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsRead.json @@ -2,7 +2,12 @@ "resourceType": "Claim", "id": "m-654321", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsReadWithTaxNumbers.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsReadWithTaxNumbers.json index 5e62ccb459..87100ee1ea 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsReadWithTaxNumbers.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimMcsReadWithTaxNumbers.json @@ -2,7 +2,12 @@ "resourceType": "Claim", "id": "m-654321", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseFissRead.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseFissRead.json index a6f3541701..def51caf50 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseFissRead.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseFissRead.json @@ -2,7 +2,12 @@ "resourceType": "ClaimResponse", "id": "f-123456", "meta": { - "lastUpdated": "1970-01-01T00:00:00.000+00:00" + "lastUpdated": "1970-01-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseMcsRead.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseMcsRead.json index 7d2bdcdc3f..0d35dc498f 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseMcsRead.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseMcsRead.json @@ -2,7 +2,12 @@ "resourceType": "ClaimResponse", "id": "m-654321", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearch.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearch.json index 72c27c6440..2564c6dd16 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearch.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearch.json @@ -18,7 +18,12 @@ "resourceType": "ClaimResponse", "id": "f-123456", "meta": { - "lastUpdated": "1970-08-01T00:00:00.000+00:00" + "lastUpdated": "1970-08-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { @@ -186,7 +191,12 @@ "resourceType": "ClaimResponse", "id": "m-654323", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearchPaginated.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearchPaginated.json index 41984fcca6..a16aa51499 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearchPaginated.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimResponseSearchPaginated.json @@ -30,7 +30,12 @@ "resourceType": "ClaimResponse", "id": "m-654323", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearch.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearch.json index c664387ec7..ae69be96f9 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearch.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearch.json @@ -18,7 +18,12 @@ "resourceType": "Claim", "id": "f-123456", "meta": { - "lastUpdated": "1970-08-01T00:00:00.000+00:00" + "lastUpdated": "1970-08-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { @@ -492,7 +497,12 @@ "resourceType": "Claim", "id": "m-654323", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchPaginated.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchPaginated.json index 020913b3a5..b56383fc2f 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchPaginated.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchPaginated.json @@ -30,7 +30,12 @@ "resourceType": "Claim", "id": "m-654323", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { diff --git a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchWithTaxNumbers.json b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchWithTaxNumbers.json index d07062b3c5..1a4611ebe0 100644 --- a/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchWithTaxNumbers.json +++ b/apps/bfd-server/bfd-server-war/src/test/resources/endpoint-responses/v2/claimSearchWithTaxNumbers.json @@ -18,7 +18,12 @@ "resourceType": "Claim", "id": "f-123456", "meta": { - "lastUpdated": "1970-08-01T00:00:00.000+00:00" + "lastUpdated": "1970-08-01T00:00:00.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ { @@ -505,7 +510,12 @@ "resourceType": "Claim", "id": "m-654323", "meta": { - "lastUpdated": "1970-01-01T00:00:04.000+00:00" + "lastUpdated": "1970-01-01T00:00:04.000+00:00", + "security" : [ { + "code" : "Normal", + "display" : "Normal", + "system" : "https://terminology.hl7.org/6.1.0/CodeSystem-v3-Confidentiality.html" + } ] }, "contained": [ {