From c463bde51b2699d23709412fdd8d742d27afb919 Mon Sep 17 00:00:00 2001 From: kjefferson Date: Thu, 13 Jun 2024 12:32:06 -0400 Subject: [PATCH] update check for absolute url --- src/fhirtypes/common.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/fhirtypes/common.ts b/src/fhirtypes/common.ts index 328832332..1941a8fc3 100644 --- a/src/fhirtypes/common.ts +++ b/src/fhirtypes/common.ts @@ -997,11 +997,7 @@ export function replaceReferences( value.reference.indexOf('/') !== value.reference.lastIndexOf('/') ) { // ensure it is not an absolute url - if ( - value.reference.indexOf('http://') == -1 && - value.reference.indexOf('https://') == -1 && - value.reference.indexOf('www.') == -1 - ) { + if (!isUri(value.reference)) { logger.warn( `Cannot find the entity referenced at ${value.reference}. The provided reference value will be used, however, this reference does not conform to the FHIR Reference() format.` );