Skip to content

Support for equality of collections of primitives #2164

Open
@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

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions