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

String concatenation with + operator incorrect #2154

Open
piotrszul opened this issue Feb 20, 2025 · 1 comment
Open

String concatenation with + operator incorrect #2154

piotrszul opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working fhirpath Related to fhirpath reference implementation
Milestone

Comments

@piotrszul
Copy link
Collaborator

piotrszul commented Feb 20, 2025

String concatenation with + operator produces incorrect result (the value of the first argument).

(Math 6 exlusions)

Details

Expected: null but got: c ==> expected: <null> but was: <c>

  • 'c' + Patient.name.given[0] [** Null in concatenation is treated as an empty collection (2)]

Expected: onetwo but got: one ==> expected: <onetwo> but was: <one>

  • s5 + s6 [** Can concatenate two strings with +]

(FHIR R4 Exlclusions)
Details

Expected: true but got: false ==> expected: <true> but was: <false>

  • 'a'+'b' = 'ab' [** testPlus4]
@piotrszul piotrszul added bug Something isn't working fhirpath Related to fhirpath reference implementation labels Feb 20, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Pathling Feb 24, 2025
@johngrimes
Copy link
Member

We don't actually support this, so the task is to either:

  1. Make it impossible
  2. Implement it properly as a new feature

@johngrimes johngrimes added this to the v8.0.0 milestone Feb 24, 2025
@johngrimes johngrimes moved this from Backlog to Planned in Pathling Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fhirpath Related to fhirpath reference implementation
Projects
Status: Planned
Development

No branches or pull requests

2 participants