From 71529df036568fab07c3c12f70eb949a9aef0be6 Mon Sep 17 00:00:00 2001 From: adongare Date: Wed, 6 Sep 2023 11:51:40 -0400 Subject: [PATCH] MAT-6107 get unqualified id after setting full urls to resources in bundle --- .../service/EffectiveDataRequirementService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/gov/cms/mat/cql_elm_translation/service/EffectiveDataRequirementService.java b/src/main/java/gov/cms/mat/cql_elm_translation/service/EffectiveDataRequirementService.java index 02236cc8..74ab9f59 100644 --- a/src/main/java/gov/cms/mat/cql_elm_translation/service/EffectiveDataRequirementService.java +++ b/src/main/java/gov/cms/mat/cql_elm_translation/service/EffectiveDataRequirementService.java @@ -147,8 +147,7 @@ public Optional getMeasureLibraryEntry( entry -> StringUtils.equalsIgnoreCase( "Library", entry.getResource().getResourceType().toString()) - && StringUtils.equalsIgnoreCase( - "Library/" + libraryName, entry.getResource().getId())) + && StringUtils.equalsIgnoreCase(libraryName, entry.getResource().getIdPart())) .findFirst(); }