pathling icon indicating copy to clipboard operation
pathling copied to clipboard

Add support for polarity (+/-) operator

Open piotrszul opened this issue 9 months ago • 0 comments

Currently unary +/- operators are not supported which makes is it impossible (or difficult) use negative literals e.g x < -1 .

(FHIR R4 Exclusions)

Details

au.csiro.pathling.errors.InvalidUserInputError: Polarity operator is not supported

  • -3 != 3 [** testLiteralIntegerNotEqual]
  • -Patient.name.given.count() = -5 [** testPolarityPrecedence]
  • Patient.name.given.count() > -3 [** testLiteralIntegerGreaterThan]
  • 1 < -2 [** testLiteralIntegerLessThanFalse]
  • +1 < +2 [** testLiteralIntegerLessThanPolarityTrue]
  • -1 < 2 [** testLiteralIntegerLessThanPolarityFalse]
  • (-1).toString() [** testNegativeIntegerLiteralToString]

piotrszul avatar Feb 20 '25 05:02 piotrszul