Skip to content

Commit 395b8dd

Browse files
committed
Fix Sonar error for using deprecated class, fix opioid rec 10 patient view
1 parent 17a7a5a commit 395b8dd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

cqf-fhir-cr-hapi/src/test/java/org/opencds/cqf/fhir/cr/hapi/cdshooks/discovery/CrDiscoveryServiceR4Test.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ void testDiscoveryServiceWithEffectiveDataRequirements() {
244244
var fixture = new CrDiscoveryService(planDefinition.getIdElement(), repository);
245245
var actual = fixture.getPrefetchUrlList(planDefAdapter);
246246
assertNotNull(actual);
247-
ca.uhn.hapi.fhir.cdshooks.svc.cr.discovery.PrefetchUrlList expected =
248-
new ca.uhn.hapi.fhir.cdshooks.svc.cr.discovery.PrefetchUrlList();
247+
var expected = new PrefetchUrlList();
249248
expected.addAll(
250249
List.of(
251250
"Patient?_id={{context.patientId}}",

cqf-fhir-cr/src/test/resources/org/opencds/cqf/fhir/cr/shared/r4/opioid-Rec10-patient-view/tests/MedicationRequest-example-rec-10-patient-view-POS-Cocaine-drugs-context.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"encounter": {
4949
"reference": "Encounter/example-rec-10-patient-view-POS-Cocaine-drugs-prefetch"
5050
},
51-
"authoredOn": "2023-04-28",
51+
"authoredOn": "2024-04-28",
5252
"dosageInstruction": [
5353
{
5454
"timing": {
@@ -73,8 +73,8 @@
7373
],
7474
"dispenseRequest": {
7575
"validityPeriod": {
76-
"start": "2023-04-28",
77-
"end": "2023-07-28"
76+
"start": "2024-04-28",
77+
"end": "2024-07-28"
7878
},
7979
"numberOfRepeatsAllowed": 3,
8080
"expectedSupplyDuration": {

0 commit comments

Comments
 (0)