Skip to content

Runtime type behavior of FHIR types is not polymorphic #867

@brynrhodes

Description

@brynrhodes

Given the following Expressions:

define TestCodeType: code { value: 'STATE' }
define TestStringType: string { value: 'STATE' }
define TestCodeTypeEqualStringType: TestCodeType = TestStringType

TestCodeTypeEqualStringType should return true because a FHIR.code is a FHIR.string, but it returns false because the provider's EqualEvaluator implementation does not respect type hierarchy in determining equality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions