Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for polarity (+/-) operator #2152

Open
piotrszul opened this issue Feb 20, 2025 · 0 comments
Open

Add support for polarity (+/-) operator #2152

piotrszul opened this issue Feb 20, 2025 · 0 comments
Labels
fhirpath Related to fhirpath reference implementation new feature New feature or request
Milestone

Comments

@piotrszul
Copy link
Collaborator

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 piotrszul added fhirpath Related to fhirpath reference implementation new feature New feature or request labels Feb 20, 2025
@piotrszul piotrszul added this to the v8.0.0 milestone Feb 20, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Pathling Feb 24, 2025
@johngrimes johngrimes moved this from Backlog to Planned in Pathling Feb 24, 2025
@piotrszul piotrszul moved this from Planned to In progress in Pathling Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fhirpath Related to fhirpath reference implementation new feature New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant