FHIR Chat · Unary operators? · fhirpath

Stream: fhirpath

Topic: Unary operators?


view this post on Zulip Paul Lynch (May 22 2019 at 14:20):

I was just trying to implement unary "-" (PolarityExpression in the grammar) but I could not find much in the spec about unary - or +. In particular, I am not sure what the result of the following cases should be:

-(7).combine(3)
-((7).combine(3)) # though per the grammar, I think that is the same as the previous case
-'abc'  # or -true, etc.

view this post on Zulip Grahame Grieve (May 22 2019 at 19:47):

-7, 3 error

view this post on Zulip Paul Lynch (May 24 2019 at 21:34):

GF#22504


Last updated: Apr 12 2022 at 19:14 UTC