Skip to content

Support for equality for collections of primitives #2164

@piotrszul

Description

@piotrszul

Adding support for equality operators (= and !=) for collections of Fhirpath primitive types and additional Pathling literal types (eg. Coding) according to the Fhirpath spec. Including empty collections.

FHIR R4 Exclusions

Details

au.csiro.pathling.errors.InvalidUserInputError: Operands must be comparable

  • name = name [** testEquality25]
  • name != name [** testNEquality19]

java.lang.RuntimeException: Expected a single value, but found multiple values

  • Patient.name.given != {} [** testCollectionNotEqualEmpty]

java.lang.RuntimeException: Expected a single value, but found multiple values

  • Patient.name.where(given = 'Jim').count() = 1 [** testWhere2]
  • Patient.name.where(given = 'X').count() = 0 [** testWhere3]
  • Patient.name.where($this.given = 'Jim').count() = 1 [** testWhere4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    fhirpathRelated to fhirpath reference implementationnew featureNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions