diff --git a/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDClientImpl.java b/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDClientImpl.java index 0f2896f4..d1d9fd5a 100644 --- a/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDClientImpl.java +++ b/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDClientImpl.java @@ -156,16 +156,16 @@ public IBaseBundle requestPartDEnrolleesFromServer(FhirVersion version, String c var monthCriterion = new TokenClientParam("_has:Coverage.extension") .exactly() .systemAndIdentifier(monthParameter, contractNumber); - - return bfdClientVersions.getClient(version).search() + var request = bfdClientVersions.getClient(version).search() .forResource(version.getPatientClass()) .where(monthCriterion) .withAdditionalHeader(BFDClient.BFD_HDR_BULK_CLIENTID, contractNumber) .withAdditionalHeader(BFDClient.BFD_HDR_BULK_JOBID, getJobId()) .withAdditionalHeader(INCLUDE_IDENTIFIERS_HEADER, MBI_HEADER_VALUE) .count(contractToBenePageSize) - .usingStyle(SearchStyleEnum.POST) - .returnBundle(version.getBundleClass()) + .usingStyle(SearchStyleEnum.POST); + log.info("Executing request to get Part D Enrollees " + request); + return request.returnBundle(version.getBundleClass()) .encodedJson() .execute(); } @@ -184,8 +184,7 @@ public IBaseBundle requestPartDEnrolleesFromServer(FhirVersion version, String c var yearCriterion = new TokenClientParam("_has:Coverage.rfrncyr") .exactly() .systemAndIdentifier(YEAR_URL_PREFIX, createYearParameter(year)); - - return bfdClientVersions.getClient(version).search() + var request = bfdClientVersions.getClient(version).search() .forResource(version.getPatientClass()) .where(monthCriterion) .and(yearCriterion) @@ -193,8 +192,9 @@ public IBaseBundle requestPartDEnrolleesFromServer(FhirVersion version, String c .withAdditionalHeader(BFDClient.BFD_HDR_BULK_JOBID, getJobId()) .withAdditionalHeader(INCLUDE_IDENTIFIERS_HEADER, MBI_HEADER_VALUE) .count(contractToBenePageSize) - .usingStyle(SearchStyleEnum.POST) - .returnBundle(version.getBundleClass()) + .usingStyle(SearchStyleEnum.POST); + log.info("Executing request to get Part D Enrollees " + request); + return request.returnBundle(version.getBundleClass()) .encodedJson() .execute(); } diff --git a/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDSearchImpl.java b/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDSearchImpl.java index 97fdce84..0c83bb3e 100644 --- a/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDSearchImpl.java +++ b/ab2d-bfd/src/main/java/gov/cms/ab2d/bfd/client/BFDSearchImpl.java @@ -80,6 +80,7 @@ public IBaseBundle searchEOB(long patientId, OffsetDateTime since, OffsetDateTim params.add(new BasicNameValuePair("_count", "" + pageSize)); } request.setEntity(new UrlEncodedFormEntity(params)); + log.info("Executing BFD Search Request " + request); byte[] responseBytes = getEOBSFromBFD(patientId, request); diff --git a/build.gradle b/build.gradle index 229ff91f..1031effa 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ ext { // AB2D libraries fhirVersion='2.1.0' - bfdVersion='2.4.0' + bfdVersion='2.4.1' aggregatorVersion='2.0.0' filtersVersion='2.1.0' eventClientVersion='3.2.0'