Details
-
Change Request
-
Resolution: Retracted
-
Medium
-
FHIR Core (FHIR)
-
R5
-
NamingSystem
-
Description
nsd-3 constraint in https://hl7.org/fhir/R5/namingsystem.html#invs starts with {{}}
uniqueId.where(authoritative = 'true')
{}'true' is a string literal and NamingSystem.uniqueId. authoritative property is boolean. Thus the comparison
authoritative = 'true'
}} is always evaluated to {{false as a boolean can't be implicitly converted to a string and vice versa(see https://hl7.org/fhirpath/N1/#conversion boolean <-> string requires an explicit conversion).
To fix the nsd-3 expression 'true' needs to be replaced with true (without single quotes). So the final expression will look like
uniqueId.where(authoritative = true).select(type.toString() & period.start.toString() & period.end.toString()).isDistinct()