Skip to content

Commit

Permalink
update check for absolute url
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelynJefferson committed Jun 13, 2024
1 parent 3cda48c commit c463bde
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/fhirtypes/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,7 @@ export function replaceReferences<T extends AssignmentRule | CaretValueRule>(
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.`
);
Expand Down

0 comments on commit c463bde

Please sign in to comment.