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

toString() should work on all literal types #2148

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

toString() should work on all literal types #2148

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

`toString()' fails for Boolean and Quantity collections.
Also it should produce {} for not literal types.

(Literal exclusions)

Details

java.lang.RuntimeException: Error invoking method-defined function

  • attrtrue.toString() [** bool to string]

(FHIR R4 Exclusions)

Details

java.lang.RuntimeException: Error invoking method-defined function

  • true.toString() [** testBooleanLiteralToString]

Details

java.lang.RuntimeException: Error invoking method-defined function

  • 1 'wk'.toString() [** testQuantityLiteralWkToString]
@piotrszul piotrszul added bug Something isn't working fhirpath Related to fhirpath reference implementation labels Feb 20, 2025
@piotrszul piotrszul changed the title Boolean not convertible to string toString() should work on all literal types Feb 20, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Pathling Feb 24, 2025
@johngrimes
Copy link
Member

I think toString is actually a new feature that has not been implemented completely, and we should go ahead and complete the implementation.

@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