Skip to content

Type operators do not match subtypes (ofType, is, as) #96

Description

@FikriMilano

The engine compares types with exact equality, but the FHIRPath spec says type operators match "the given type or a subclass thereof"
(https://hl7.org/fhirpath/N1/#oftypetype-type-specifier-collection).

This affects complex types and resources. No official test covers it, so the conformance suite stays green.

This should not affect Primitives. The FHIR spec makes them independent types:

"All primitives are considered to be independent types (so markdown is not a subclass of string)"
https://hl7.org/fhir/R5/fhirpath.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions